media: rockchip: vicap disable dma adapter when use hdmi input

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I20a47ca718242eb253797c851b85189b5fcf1829
This commit is contained in:
Zefa Chen
2024-03-29 16:31:26 +08:00
committed by Tao Huang
parent 4fddfc26ca
commit 2d4661c496

View File

@@ -4221,6 +4221,12 @@ static int rkcif_csi_channel_set_v1(struct rkcif_stream *stream,
}
rkcif_write_register_or(dev, CIF_REG_GLB_CTRL, val);
if (dev->terminal_sensor.hdmi_input_en) {
if (dev->chip_id == CHIP_RK3562_CIF ||
dev->chip_id == CHIP_RK3576_CIF)
rkcif_write_register_and(dev, CIF_REG_GLB_CTRL, ~(u32)BIT(16));
}
rkcif_write_register_and(dev, CIF_REG_MIPI_LVDS_INTSTAT,
~(CSI_START_INTSTAT(channel->id) |
CSI_DMA_END_INTSTAT(channel->id) |