mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
media: i2c: rk628: fix rk628d should not reset txdata when stream on
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com> Change-Id: I7e1e793882bbc214da7a9591efd32fd4a09c0c8a
This commit is contained in:
@@ -956,7 +956,8 @@ static void enable_stream(struct v4l2_subdev *sd, bool en)
|
||||
enable_csitx(sd);
|
||||
|
||||
rk628_hdmirx_vid_enable(sd, true);
|
||||
if (csi->plat_data->tx_mode == CSI_MODE) {
|
||||
if (csi->plat_data->tx_mode == CSI_MODE &&
|
||||
csi->rk628->version >= RK628F_VERSION) {
|
||||
msleep(20);
|
||||
rk628_mipi_txdata_reset(sd);
|
||||
rk628_csi_enable_csi_interrupts(sd, true);
|
||||
@@ -968,8 +969,10 @@ static void enable_stream(struct v4l2_subdev *sd, bool en)
|
||||
GCPFORCE_CLRAVMUTE_MASK, GCPFORCE_CLRAVMUTE(0));
|
||||
} else {
|
||||
if (csi->plat_data->tx_mode == CSI_MODE) {
|
||||
rk628_csi_enable_csi_interrupts(sd, false);
|
||||
msleep(20);
|
||||
if (csi->rk628->version >= RK628F_VERSION) {
|
||||
rk628_csi_enable_csi_interrupts(sd, false);
|
||||
msleep(20);
|
||||
}
|
||||
rk628_hdmirx_vid_enable(sd, false);
|
||||
rk628_csi_disable_stream(sd);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user