mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
media: rockchip: isp: fix dmatx loss first buf
Change-Id: I7355529f6ff4f39cba7206b3201d434d110bd4a6 Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
@@ -366,7 +366,7 @@ void rkisp_config_dmatx_valid_buf(struct rkisp_device *dev)
|
||||
continue;
|
||||
for (j = RKISP_STREAM_DMATX0; j < RKISP_MAX_STREAM; j++) {
|
||||
stream = &isp->cap_dev.stream[j];
|
||||
if (!stream->linked || stream->u.dmatx.is_config)
|
||||
if (!stream->linked || stream->curr_buf || stream->next_buf)
|
||||
continue;
|
||||
mi_set_y_addr(stream, hw->dummy_buf.dma_addr);
|
||||
}
|
||||
|
||||
@@ -2737,7 +2737,7 @@ static void rkisp_global_update_mi(struct rkisp_device *dev)
|
||||
if (stream->id == RKISP_STREAM_VIR ||
|
||||
stream->id == RKISP_STREAM_LUMA)
|
||||
continue;
|
||||
if (stream->streaming)
|
||||
if (stream->streaming && !stream->next_buf)
|
||||
stream->ops->frame_end(stream);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user