msm: vidc: skip scaling check for decoder

Scaling check is not required for decoder as clients may not
set both input and output resolutions for decoder
in which case input and output resolution will be different
and scaling check fails if enabled.

Change-Id: Iccdbad63bd8f975df4f57cad0250557119cf788d
Signed-off-by: Karthikeyan Periasamy <kperiasa@codeaurora.org>
This commit is contained in:
Karthikeyan Periasamy 2020-01-14 16:17:55 -08:00 committed by Gerrit - the friendly Code Review server
parent 720369dfcf
commit 855ad95f05

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
*/
#include <soc/qcom/subsystem_restart.h>
@ -5521,8 +5521,8 @@ int msm_vidc_check_scaling_supported(struct msm_vidc_inst *inst)
u32 input_height, input_width, output_height, output_width;
struct v4l2_format *f;
if (is_grid_session(inst)) {
s_vpr_h(inst->sid, "Skip scaling check for HEIC\n");
if (is_grid_session(inst) || is_decode_session(inst)) {
s_vpr_h(inst->sid, "Skip scaling check\n");
return 0;
}