media: rockchip: ispp: fix scl config error

Change-Id: I88825ec754e479c555fc3036e3e8a7b67828f530
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
Cai YiWei
2020-03-13 17:56:19 +08:00
committed by Tao Huang
parent 48965bb30d
commit c73e36c730

View File

@@ -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,