[media] media: vivid: use vb2_start_streaming_called() helper
authorPrabhakar Lad <prabhakar.csengg@gmail.com>
Mon, 10 Nov 2014 16:55:53 +0000 (13:55 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 14 Nov 2014 20:16:26 +0000 (18:16 -0200)
this patch adds support for using vb2_start_streaming_called()
for vivid driver.

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vivid/vivid-ctrls.c

index d5847736792bb7b334b6b8aaf03690784eca8b0c..ad8df5ce823ced0ba204145dd59127128aed2cc7 100644 (file)
@@ -831,15 +831,15 @@ static int vivid_streaming_s_ctrl(struct v4l2_ctrl *ctrl)
                dev->start_streaming_error = true;
                break;
        case VIVID_CID_QUEUE_ERROR:
-               if (dev->vb_vid_cap_q.start_streaming_called)
+               if (vb2_start_streaming_called(&dev->vb_vid_cap_q))
                        vb2_queue_error(&dev->vb_vid_cap_q);
-               if (dev->vb_vbi_cap_q.start_streaming_called)
+               if (vb2_start_streaming_called(&dev->vb_vbi_cap_q))
                        vb2_queue_error(&dev->vb_vbi_cap_q);
-               if (dev->vb_vid_out_q.start_streaming_called)
+               if (vb2_start_streaming_called(&dev->vb_vid_out_q))
                        vb2_queue_error(&dev->vb_vid_out_q);
-               if (dev->vb_vbi_out_q.start_streaming_called)
+               if (vb2_start_streaming_called(&dev->vb_vbi_out_q))
                        vb2_queue_error(&dev->vb_vbi_out_q);
-               if (dev->vb_sdr_cap_q.start_streaming_called)
+               if (vb2_start_streaming_called(&dev->vb_sdr_cap_q))
                        vb2_queue_error(&dev->vb_sdr_cap_q);
                break;
        case VIVID_CID_SEQ_WRAP: