|
@@ -451,13 +451,18 @@ static void sh_mobile_ceu_stop_streaming(struct vb2_queue *q)
|
|
|
struct soc_camera_host *ici = to_soc_camera_host(icd->parent);
|
|
|
struct sh_mobile_ceu_dev *pcdev = ici->priv;
|
|
|
struct list_head *buf_head, *tmp;
|
|
|
+ struct vb2_v4l2_buffer *vbuf;
|
|
|
|
|
|
spin_lock_irq(&pcdev->lock);
|
|
|
|
|
|
pcdev->active = NULL;
|
|
|
|
|
|
- list_for_each_safe(buf_head, tmp, &pcdev->capture)
|
|
|
+ list_for_each_safe(buf_head, tmp, &pcdev->capture) {
|
|
|
+ vbuf = &list_entry(buf_head, struct sh_mobile_ceu_buffer,
|
|
|
+ queue)->vb;
|
|
|
+ vb2_buffer_done(&vbuf->vb2_buf, VB2_BUF_STATE_DONE);
|
|
|
list_del_init(buf_head);
|
|
|
+ }
|
|
|
|
|
|
spin_unlock_irq(&pcdev->lock);
|
|
|
|