msm: mdss: Fix disabling destination scalar using 4K panel
4K panel uses split control path setup, so there is no need to correct
the panel width when updating the mixer width resolution during
destination scalar disabling.
CRs-Fixed: 1093549
Change-Id: I064987534124e025abaccec05ab70acf93538bce
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
This commit is contained in:
parent
9a20006c20
commit
5ddbf6aedc
1 changed files with 4 additions and 1 deletions
|
@ -71,6 +71,7 @@ static void mdss_mdp_disable_destination_scaler_setup(struct mdss_mdp_ctl *ctl)
|
|||
{
|
||||
struct mdss_data_type *mdata = ctl->mdata;
|
||||
struct mdss_panel_info *pinfo = &ctl->panel_data->panel_info;
|
||||
struct mdss_mdp_ctl *split_ctl;
|
||||
|
||||
if (test_bit(MDSS_CAPS_DEST_SCALER, mdata->mdss_caps_map)) {
|
||||
if (ctl->mixer_left && ctl->mixer_right &&
|
||||
|
@ -80,9 +81,11 @@ static void mdss_mdp_disable_destination_scaler_setup(struct mdss_mdp_ctl *ctl)
|
|||
/*
|
||||
* DUAL mode disable
|
||||
*/
|
||||
split_ctl = mdss_mdp_get_split_ctl(ctl);
|
||||
ctl->mixer_left->width = get_panel_width(ctl);
|
||||
ctl->mixer_left->height = get_panel_yres(pinfo);
|
||||
ctl->mixer_left->width /= 2;
|
||||
if (!split_ctl)
|
||||
ctl->mixer_left->width /= 2;
|
||||
ctl->mixer_right->width = ctl->mixer_left->width;
|
||||
ctl->mixer_right->height = ctl->mixer_left->height;
|
||||
ctl->mixer_left->roi = (struct mdss_rect) { 0, 0,
|
||||
|
|
Loading…
Add table
Reference in a new issue