msm: mdss: add display thread for DCM mode
During DCM mode it is needed to keep display thread to process display commands. Change-Id: I39e56b79dc484f328a046a397f7416769453df3d Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
This commit is contained in:
parent
f74ed544d2
commit
acd7b2ddcd
1 changed files with 8 additions and 0 deletions
|
@ -2885,6 +2885,11 @@ int mdss_fb_dcm(struct msm_fb_data_type *mfd, int req_state)
|
|||
case DCM_UNBLANK:
|
||||
if (mfd->dcm_state == DCM_UNINIT &&
|
||||
mdss_fb_is_power_off(mfd) && mfd->mdp.on_fnc) {
|
||||
if (mfd->disp_thread == NULL) {
|
||||
ret = mdss_fb_start_disp_thread(mfd);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
}
|
||||
ret = mfd->mdp.on_fnc(mfd);
|
||||
if (ret == 0) {
|
||||
mfd->panel_power_state = MDSS_PANEL_POWER_ON;
|
||||
|
@ -2919,6 +2924,9 @@ int mdss_fb_dcm(struct msm_fb_data_type *mfd, int req_state)
|
|||
mfd->dcm_state = DCM_UNINIT;
|
||||
else
|
||||
pr_err("DCM_BLANK failed\n");
|
||||
|
||||
if (mfd->disp_thread)
|
||||
mdss_fb_stop_disp_thread(mfd);
|
||||
}
|
||||
break;
|
||||
case DTM_ENTER:
|
||||
|
|
Loading…
Add table
Reference in a new issue