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:
parent
8ca8a77ffe
commit
f79792db8e
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue