mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user