Merge "msm: mdss: modify userspace src format during MSMFB_SET on rotator"

This commit is contained in:
Linux Build Service Account 2014-07-08 16:08:17 -07:00 committed by Gerrit - the friendly Code Review server
commit b1c9709057
1 changed files with 8 additions and 0 deletions

View File

@ -537,6 +537,14 @@ int mdss_mdp_rotator_setup(struct msm_fb_data_type *mfd,
if (rot && (req->id == MSMFB_NEW_REQUEST))
mdss_mdp_rotator_finish(rot);
}
/*
* overwrite the src format for rotator to dst format
* for use by the user. On subsequent set calls, the
* user is expected to proivde the original src format
*/
req->src.format = mdss_mdp_get_rotator_dst_format(req->src.format,
req->flags & MDP_ROT_90, req->flags & MDP_BWC_EN);
mutex_unlock(&rotator_lock);
return ret;
}