mdss: rotator: Downscaler doesn't support asymmetrical down scale

During validate, prevent asymmetrical downscale factor work
from being accepted.

Change-Id: Idc2989cbd5ced5cdb93e74e22446d3519f4c0813
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
This commit is contained in:
Terence Hampson 2015-02-09 17:05:31 -05:00 committed by David Keitel
parent 8ca8a77ffe
commit f79792db8e

View file

@ -591,6 +591,11 @@ static int mdss_rotator_config_dnsc_factor(struct mdss_rot_mgr *mgr,
}
dnsc_err:
/* Downscaler does not support asymmetrical dnsc */
if (entry->dnsc_factor_w != entry->dnsc_factor_h)
ret = -EINVAL;
if (ret) {
pr_err("Invalid rotator downscale ratio %dx%d->%dx%d\n",
src_w, src_h, dst_w, dst_h);