From 3aa5b914d3ced98741e8dea16f06e53c2bf528a2 Mon Sep 17 00:00:00 2001 From: Naseer Ahmed Date: Tue, 25 Sep 2012 22:55:42 -0400 Subject: [PATCH] msm_fb: display: empty queue at suspend Change-Id: Iafdf469c6cdbf5d469c9dee114555a8d1adb9c66 Signed-off-by: Kuogee Hsieh Signed-off-by: Naseer Ahmed --- drivers/video/msm/mdp4_overlay_dtv.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/video/msm/mdp4_overlay_dtv.c b/drivers/video/msm/mdp4_overlay_dtv.c index 36fcc51ce2c..1a68268f15b 100644 --- a/drivers/video/msm/mdp4_overlay_dtv.c +++ b/drivers/video/msm/mdp4_overlay_dtv.c @@ -563,8 +563,10 @@ int mdp4_dtv_off(struct platform_device *pdev) struct msm_fb_data_type *mfd; int ret = 0; int cndx = 0; + int undx; struct vsycn_ctrl *vctrl; struct mdp4_overlay_pipe *pipe; + struct vsync_update *vp; mfd = (struct msm_fb_data_type *)platform_get_drvdata(pdev); @@ -575,6 +577,10 @@ int mdp4_dtv_off(struct platform_device *pdev) while (vctrl->wait_vsync_cnt) msleep(20); /* >= 17 ms */ + undx = vctrl->update_ndx; + vp = &vctrl->vlist[undx]; + vp->update_cnt = 0; /* empty queue */ + pipe = vctrl->base_pipe; if (pipe != NULL) { mdp4_dtv_stop(mfd);