msm_fb: display: empty queue at suspend
Change-Id: Iafdf469c6cdbf5d469c9dee114555a8d1adb9c66 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
This commit is contained in:
committed by
Iliyan Malchev
parent
94f97545b1
commit
3aa5b914d3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user