From 7c71a4d3c74964e21e221aade77716734d91d71c Mon Sep 17 00:00:00 2001 From: Benet Clark Date: Mon, 2 May 2016 19:35:32 -0700 Subject: [PATCH] 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 --- drivers/video/fbdev/msm/mdss_mdp_pp.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/video/fbdev/msm/mdss_mdp_pp.c b/drivers/video/fbdev/msm/mdss_mdp_pp.c index 68ab530f3583..715f4428e81a 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_pp.c +++ b/drivers/video/fbdev/msm/mdss_mdp_pp.c @@ -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: