media: rockchip: cif: fix lost frame when sof occurs twice at the same time

frm start int don't be set, current & next frame start occur simultaneously

Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I49f28a6d49e8a726f3f8a4c290444792a497876f
This commit is contained in:
Allon Huang
2020-07-29 20:55:18 +08:00
committed by Tao Huang
parent 325c2db47b
commit b1fea1a6c4

View File

@@ -1353,9 +1353,8 @@ static int rkcif_csi_channel_set(struct rkcif_stream *stream,
CSI_DMA_END_INTSTAT(channel->id) |
CSI_LINE_INTSTAT(channel->id)));
/* enable mipi id0 frame start int for sof(long frame) */
if (dev->hdr.mode != NO_HDR &&
channel->id == RKCIF_STREAM_MIPI_ID0)
/* enable id0 frame start int for sof(long frame, for hdr) */
if (channel->id == RKCIF_STREAM_MIPI_ID0)
rkcif_write_register_or(dev, CIF_REG_MIPI_LVDS_INTEN,
CSI_START_INTEN(channel->id));