mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
media: rockchip: cif fixed err when get vc fail
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com> Change-Id: Ib7a6158dfaafbca49ac8df6374c708be9926814e
This commit is contained in:
@@ -3394,7 +3394,11 @@ static int rkcif_sanity_check_fmt(struct rkcif_stream *stream,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
stream->vc = vc;
|
||||
if (vc >= 0 && vc < RKCIF_MAX_STREAM_MIPI)
|
||||
stream->vc = vc;
|
||||
else
|
||||
stream->vc = stream->id;
|
||||
|
||||
if (stream->cif_fmt_in->mbus_code == MEDIA_BUS_FMT_EBD_1X8 ||
|
||||
stream->cif_fmt_in->mbus_code == MEDIA_BUS_FMT_SPD_2X8) {
|
||||
stream->crop_enable = false;
|
||||
|
||||
Reference in New Issue
Block a user