media: rockchip: ispp: limit max width 2080 for scl0 yuv420

hardware support max width is 2080 for scl0 yuv420
vertical scale down output.

Change-Id: Ifead97e0bbba417a4e35bea3e4eba3e33ea8d407
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
Cai YiWei
2020-08-10 11:23:12 +08:00
committed by Tao Huang
parent 7d53c9d734
commit 66c8c24cfe

View File

@@ -1171,7 +1171,12 @@ static int limit_check_scl(struct rkispp_stream *stream,
return ret;
if (stream->id == STREAM_S0) {
max_width = 3264;
u32 fmt = stream->out_cap_fmt.wr_fmt;
if (*h == sdev->out_fmt.height || (fmt & FMT_YUV422))
max_width = 3264;
else
max_width = 2080;
min_ratio = 1;
}