Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4289e1f authored by Benet Clark's avatar Benet Clark Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarBenet Clark <benetc@codeaurora.org>
parent 80dd573e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -4292,6 +4292,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:
@@ -4310,6 +4314,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: