mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-24 23:04:17 +08:00
media: imx-pxp: fix duplicated if condition
Fix a copy&paste error to make RGB -> BT.2020 YUV conversion actually
selectable. Fixes the following warning:
drivers/media/platform/imx-pxp.c:683:24: warning: duplicated ‘if’ condition [-Wduplicated-cond]
Fixes: 51abcf7fdb
("media: imx-pxp: add i.MX Pixel Pipeline driver")
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
d889376243
commit
801efd0f75
@ -680,7 +680,7 @@ static void pxp_setup_csc(struct pxp_ctx *ctx)
|
||||
csc2_coef = csc2_coef_rec709_full;
|
||||
else
|
||||
csc2_coef = csc2_coef_rec709_lim;
|
||||
} else if (ycbcr_enc == V4L2_YCBCR_ENC_709) {
|
||||
} else if (ycbcr_enc == V4L2_YCBCR_ENC_BT2020) {
|
||||
if (quantization == V4L2_QUANTIZATION_FULL_RANGE)
|
||||
csc2_coef = csc2_coef_bt2020_full;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user