media: rockchip: cif: fixed vc err in linear mode, if sensor driver not had vc config

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I5f0e383d8493958abfee7b62cdbd4ceb74f84b28
This commit is contained in:
Zefa Chen
2021-08-11 15:14:52 +08:00
committed by Tao Huang
parent 7b7373e368
commit 08097421e4

View File

@@ -1717,7 +1717,7 @@ static int rkcif_csi_channel_init(struct rkcif_stream *stream,
channel->data_type = get_data_type(stream->cif_fmt_in->mbus_code,
channel->cmd_mode_en);
if (dev->hdr.mode == NO_HDR ||
if ((dev->hdr.mode == NO_HDR && stream->vc >= 0) ||
(dev->hdr.mode == HDR_X2 && stream->vc > 1) ||
(dev->hdr.mode == HDR_X3 && stream->vc > 2))
channel->vc = stream->vc;