msm: mdss: Set dither matrix len to 0 for default configuration

When default dither is configured at boot, the default dither matrix
should be used. In order to use the default dither matrix, the len
parameter should be set to 0.

CRs-Fixed: 1010839
Change-Id: I2ed58d3e61ca4c64cf72569541fc6ee7f6ba651f
Signed-off-by: Benet Clark <benetc@codeaurora.org>
This commit is contained in:
Benet Clark 2016-05-02 19:35:32 -07:00 committed by Kyle Yan
parent 1d4e56bab0
commit 7c71a4d3c7

View file

@ -4298,6 +4298,10 @@ static int mdss_mdp_panel_default_dither_config(struct msm_fb_data_type *mfd,
dither_data.g_y_depth = 8;
dither_data.r_cr_depth = 8;
dither_data.b_cb_depth = 8;
/*
* Use default dither table by setting len to 0
*/
dither_data.len = 0;
dither.cfg_payload = &dither_data;
break;
case mdp_pp_legacy:
@ -4316,6 +4320,10 @@ static int mdss_mdp_panel_default_dither_config(struct msm_fb_data_type *mfd,
dither_data.g_y_depth = 6;
dither_data.r_cr_depth = 6;
dither_data.b_cb_depth = 6;
/*
* Use default dither table by setting len to 0
*/
dither_data.len = 0;
dither.cfg_payload = &dither_data;
break;
case mdp_pp_legacy: