media: rockchip: isp: clear rdbk fifo at dmarx stop

Change-Id: If26ebfa218da49d272c1e4aa0a2e8c7e4361ba5f
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
Cai YiWei
2021-06-25 18:08:54 +08:00
committed by Tao Huang
parent a46f59ac2d
commit 8d1aabfe34

View File

@@ -560,6 +560,10 @@ static void dmarx_stop_streaming(struct vb2_queue *queue)
dmarx_stop(stream);
destroy_buf_queue(stream, VB2_BUF_STATE_ERROR);
if (stream->id == RKISP_STREAM_RAWRD2 &&
(stream->ispdev->isp_ver == ISP_V20 || stream->ispdev->isp_ver == ISP_V21))
kfifo_reset(&stream->ispdev->rdbk_kfifo);
}
static int dmarx_start_streaming(struct vb2_queue *queue,