From c73e36c730f989cb02ca9a8dfe4f45c00eface67 Mon Sep 17 00:00:00 2001 From: Cai YiWei Date: Fri, 13 Mar 2020 17:56:19 +0800 Subject: [PATCH] media: rockchip: ispp: fix scl config error Change-Id: I88825ec754e479c555fc3036e3e8a7b67828f530 Signed-off-by: Cai YiWei --- drivers/media/platform/rockchip/ispp/stream.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/rockchip/ispp/stream.c b/drivers/media/platform/rockchip/ispp/stream.c index 2e571731ee49..606dbcd26cd4 100644 --- a/drivers/media/platform/rockchip/ispp/stream.c +++ b/drivers/media/platform/rockchip/ispp/stream.c @@ -867,9 +867,9 @@ static int config_scl(struct rkispp_stream *stream) set_vir_stride(stream, ALIGN(stream->out_fmt.width * mult, 16) >> 2); set_scl_factor(stream, vy_fac << 16 | hy_fac); value = SW_SCL_ENABLE | bypass | fmt->wr_fmt << 3 | - (fmt->fourcc != V4L2_PIX_FMT_GREY) ? 0 : SW_SCL_WR_UV_DIS | - (stream->out_fmt.quantization != V4L2_QUANTIZATION_LIM_RANGE) ? - 0 : SW_SCL_WR_YUV_LIMIT; + ((fmt->fourcc != V4L2_PIX_FMT_GREY) ? 0 : SW_SCL_WR_UV_DIS) | + ((stream->out_fmt.quantization != V4L2_QUANTIZATION_LIM_RANGE) ? + 0 : SW_SCL_WR_YUV_LIMIT); set_ctrl(stream, value); v4l2_dbg(1, rkispp_debug, &dev->v4l2_dev,