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

Commit 8a8811db authored by Ch Ganesh Kumar's avatar Ch Ganesh Kumar
Browse files

fbdev:msm: Handle PA DITHER support



PA Dither is not supported in fb driver. This change will
handle PA dither version query gracefully.

Change-Id: I4c518741d9b1d73ee2859b667ad27581cb4cc57d
Signed-off-by: default avatarCh Ganesh Kumar <chganesh@codeaurora.org>
parent c9738304
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -7209,6 +7209,13 @@ int mdss_mdp_pp_get_version(struct mdp_pp_feature_version *version)
		ret = -EINVAL;
		goto exit_version;
	}
	/* PA dither is not supported by driver */
	if (version->pp_feature == PA_DITHER) {
		pr_warn("unsupported feature %d\n", version->pp_feature);
		version->version_info = 0;
		ret = 0;
		goto exit_version;
	}
	if (version->pp_feature >= PP_FEATURE_MAX) {
		pr_err("invalid feature passed %d\n", version->pp_feature);
		ret = -EINVAL;