mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
media: platform: rockchip: cif: distinguish multi id mode 2 & 4
According test, if sensor output 2mux mode, cif needs to be configured BT656_1120_MULTI_ID_MODE_2, nor no interrupts will be triggered. So BT656_1120_MULTI_ID_MODE_2 & BT656_1120_MULTI_ID_MODE_4 is different, distinguish it. Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com> Change-Id: I8e1959131708d2cab87ab086e03023a718f5b807
This commit is contained in:
committed by
Tao Huang
parent
cf63f776c9
commit
d30fa0e575
@@ -2442,10 +2442,10 @@ static int rkcif_stream_start(struct rkcif_stream *stream)
|
||||
else
|
||||
multi_id_sel = BT656_1120_MULTI_ID_SEL_MSB;
|
||||
|
||||
if (((bt1120_flags & RKMODULE_CAMERA_BT656_CHANNELS) >> 2) > 1)
|
||||
if (((bt1120_flags & RKMODULE_CAMERA_BT656_CHANNELS) >> 2) > 3)
|
||||
multi_id_mode = BT656_1120_MULTI_ID_MODE_4;
|
||||
else
|
||||
multi_id_mode = BT656_1120_MULTI_ID_MODE_1;
|
||||
else if (((bt1120_flags & RKMODULE_CAMERA_BT656_CHANNELS) >> 2) > 1)
|
||||
multi_id_mode = BT656_1120_MULTI_ID_MODE_2;
|
||||
|
||||
multi_id = DVP_SW_MULTI_ID(stream->id, stream->id, bt1120_info.id_en_bits);
|
||||
rkcif_write_register_or(dev, CIF_REG_DVP_MULTI_ID, multi_id);
|
||||
|
||||
Reference in New Issue
Block a user