Skip to contentSkip to conversation

media: vivid: use vb2_start_streaming_called() helper

PATCH New Lad, Prabhakar 1 participant 2 messages Nov 10, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 media: vivid: use vb2_start_streaming_called() helper

this patch adds support for using vb2_start_streaming_called() for vivid driver.

---
 drivers/media/platform/vivid/vivid-ctrls.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/media/platform/vivid/vivid-ctrls.c +5 -5
index d5cbf00..c04d4a9 100644
@@ -792,15 +792,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:
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/2 media: cx88: use vb2_start_streaming_called() helper

this patch adds support for using vb2_start_streaming_called() for cx88-blackbird driver.

---
 drivers/media/pci/cx88/cx88-blackbird.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/pci/cx88/cx88-blackbird.c +1 -1
index ff79782..4160ca4 100644
@@ -881,7 +881,7 @@ static int vidioc_s_frequency (struct file *file, void *priv,
 		return -EINVAL;
 	if (unlikely(f->tuner != 0))
 		return -EINVAL;
-	streaming = dev->vb2_mpegq.start_streaming_called;
+	streaming = vb2_start_streaming_called(&dev->vb2_mpegq);
 	if (streaming)
 		blackbird_stop_codec(dev);
 
Signature · 1 line
1.9.1