aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/common/saa7146_vbi.c
diff options
context:
space:
mode:
authorBrandon Philips <brandon@ifup.org>2007-11-06 18:02:36 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:02:11 -0500
commit0fc0686e64d21a6abded96af2b1a895dfa8b2530 (patch)
tree6c7a696c13bccb98e9b4a95e995b7992605ed419 /drivers/media/common/saa7146_vbi.c
parent1414becf15da1701b0c45e9c82b1f120cb676a36 (diff)
V4L/DVB (6600): V4L: videobuf: don't chew up namespace STATE_.*, convert to VIDEOBUF_
s/STATE_NEEDS_INIT/VIDEOBUF_NEEDS_INIT/g s/STATE_PREPARED/VIDEOBUF_PREPARED/g s/STATE_QUEUED/VIDEOBUF_QUEUED/g s/STATE_ACTIVE/VIDEOBUF_ACTIVE/g s/STATE_DONE/VIDEOBUF_DONE/g s/STATE_ERROR/VIDEOBUF_ERROR/g s/STATE_IDLE/VIDEOBUF_IDLE/g Signed-off-by: Brandon Philips <bphilips@suse.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/common/saa7146_vbi.c')
-rw-r--r--drivers/media/common/saa7146_vbi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/common/saa7146_vbi.c b/drivers/media/common/saa7146_vbi.c
index 6103484e4442..c32dda973e92 100644
--- a/drivers/media/common/saa7146_vbi.c
+++ b/drivers/media/common/saa7146_vbi.c
@@ -205,7 +205,7 @@ static int buffer_activate(struct saa7146_dev *dev,
205 struct saa7146_buf *next) 205 struct saa7146_buf *next)
206{ 206{
207 struct saa7146_vv *vv = dev->vv_data; 207 struct saa7146_vv *vv = dev->vv_data;
208 buf->vb.state = STATE_ACTIVE; 208 buf->vb.state = VIDEOBUF_ACTIVE;
209 209
210 DEB_VBI(("dev:%p, buf:%p, next:%p\n",dev,buf,next)); 210 DEB_VBI(("dev:%p, buf:%p, next:%p\n",dev,buf,next));
211 saa7146_set_vbi_capture(dev,buf,next); 211 saa7146_set_vbi_capture(dev,buf,next);
@@ -238,7 +238,7 @@ static int buffer_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb,e
238 if (buf->vb.size != size) 238 if (buf->vb.size != size)
239 saa7146_dma_free(dev,q,buf); 239 saa7146_dma_free(dev,q,buf);
240 240
241 if (STATE_NEEDS_INIT == buf->vb.state) { 241 if (VIDEOBUF_NEEDS_INIT == buf->vb.state) {
242 struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb); 242 struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb);
243 243
244 buf->vb.width = llength; 244 buf->vb.width = llength;
@@ -257,7 +257,7 @@ static int buffer_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb,e
257 if (0 != err) 257 if (0 != err)
258 return err; 258 return err;
259 } 259 }
260 buf->vb.state = STATE_PREPARED; 260 buf->vb.state = VIDEOBUF_PREPARED;
261 buf->activate = buffer_activate; 261 buf->activate = buffer_activate;
262 262
263 return 0; 263 return 0;
@@ -335,7 +335,7 @@ static void vbi_stop(struct saa7146_fh *fh, struct file *file)
335 saa7146_write(dev, MC1, MASK_20); 335 saa7146_write(dev, MC1, MASK_20);
336 336
337 if (vv->vbi_q.curr) { 337 if (vv->vbi_q.curr) {
338 saa7146_buffer_finish(dev,&vv->vbi_q,STATE_DONE); 338 saa7146_buffer_finish(dev,&vv->vbi_q,VIDEOBUF_DONE);
339 } 339 }
340 340
341 videobuf_queue_cancel(&fh->vbi_q); 341 videobuf_queue_cancel(&fh->vbi_q);
@@ -458,7 +458,7 @@ static void vbi_irq_done(struct saa7146_dev *dev, unsigned long status)
458 /* this must be += 2, one count for each field */ 458 /* this must be += 2, one count for each field */
459 vv->vbi_fieldcount+=2; 459 vv->vbi_fieldcount+=2;
460 vv->vbi_q.curr->vb.field_count = vv->vbi_fieldcount; 460 vv->vbi_q.curr->vb.field_count = vv->vbi_fieldcount;
461 saa7146_buffer_finish(dev,&vv->vbi_q,STATE_DONE); 461 saa7146_buffer_finish(dev,&vv->vbi_q,VIDEOBUF_DONE);
462 } else { 462 } else {
463 DEB_VBI(("dev:%p\n",dev)); 463 DEB_VBI(("dev:%p\n",dev));
464 } 464 }