mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
media: rockchip: isp: fix group aov no working for isp32
Change-Id: Ice9d129c32691c1822cd424785dd3f59d2ae74cb Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
@@ -233,11 +233,17 @@ static void rkisp_params_vb2_buf_queue(struct vb2_buffer *vb)
|
||||
if (!(params->module_cfg_update & ISP32_MODULE_RTT_FST))
|
||||
return;
|
||||
spin_lock_irqsave(¶ms_vdev->config_lock, flags);
|
||||
while (!list_empty(¶ms_vdev->params)) {
|
||||
buf = list_first_entry(¶ms_vdev->params,
|
||||
struct rkisp_buffer, queue);
|
||||
if (buf == params_buf)
|
||||
break;
|
||||
if (params->module_cfg_update & ~ISP32_MODULE_RTT_FST) {
|
||||
while (!list_empty(¶ms_vdev->params)) {
|
||||
buf = list_first_entry(¶ms_vdev->params,
|
||||
struct rkisp_buffer, queue);
|
||||
if (buf == params_buf)
|
||||
break;
|
||||
list_del(&buf->queue);
|
||||
vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE);
|
||||
}
|
||||
} else {
|
||||
buf = list_last_entry(¶ms_vdev->params, struct rkisp_buffer, queue);
|
||||
list_del(&buf->queue);
|
||||
vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user