aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/common/saa7146_fops.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_fops.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_fops.c')
-rw-r--r--drivers/media/common/saa7146_fops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/common/saa7146_fops.c b/drivers/media/common/saa7146_fops.c
index 67d1b1b1b254..b40bf2306fbc 100644
--- a/drivers/media/common/saa7146_fops.c
+++ b/drivers/media/common/saa7146_fops.c
@@ -61,7 +61,7 @@ void saa7146_dma_free(struct saa7146_dev *dev,struct videobuf_queue *q,
61 videobuf_waiton(&buf->vb,0,0); 61 videobuf_waiton(&buf->vb,0,0);
62 videobuf_dma_unmap(q, dma); 62 videobuf_dma_unmap(q, dma);
63 videobuf_dma_free(dma); 63 videobuf_dma_free(dma);
64 buf->vb.state = STATE_NEEDS_INIT; 64 buf->vb.state = VIDEOBUF_NEEDS_INIT;
65} 65}
66 66
67 67
@@ -83,7 +83,7 @@ int saa7146_buffer_queue(struct saa7146_dev *dev,
83 buf->activate(dev,buf,NULL); 83 buf->activate(dev,buf,NULL);
84 } else { 84 } else {
85 list_add_tail(&buf->vb.queue,&q->queue); 85 list_add_tail(&buf->vb.queue,&q->queue);
86 buf->vb.state = STATE_QUEUED; 86 buf->vb.state = VIDEOBUF_QUEUED;
87 DEB_D(("adding buffer %p to queue. (active buffer present)\n", buf)); 87 DEB_D(("adding buffer %p to queue. (active buffer present)\n", buf));
88 } 88 }
89 return 0; 89 return 0;
@@ -174,7 +174,7 @@ void saa7146_buffer_timeout(unsigned long data)
174 spin_lock_irqsave(&dev->slock,flags); 174 spin_lock_irqsave(&dev->slock,flags);
175 if (q->curr) { 175 if (q->curr) {
176 DEB_D(("timeout on %p\n", q->curr)); 176 DEB_D(("timeout on %p\n", q->curr));
177 saa7146_buffer_finish(dev,q,STATE_ERROR); 177 saa7146_buffer_finish(dev,q,VIDEOBUF_ERROR);
178 } 178 }
179 179
180 /* we don't restart the transfer here like other drivers do. when 180 /* we don't restart the transfer here like other drivers do. when
@@ -366,7 +366,7 @@ static unsigned int fops_poll(struct file *file, struct poll_table_struct *wait)
366 } 366 }
367 367
368 poll_wait(file, &buf->done, wait); 368 poll_wait(file, &buf->done, wait);
369 if (buf->state == STATE_DONE || buf->state == STATE_ERROR) { 369 if (buf->state == VIDEOBUF_DONE || buf->state == VIDEOBUF_ERROR) {
370 DEB_D(("poll succeeded!\n")); 370 DEB_D(("poll succeeded!\n"));
371 return POLLIN|POLLRDNORM; 371 return POLLIN|POLLRDNORM;
372 } 372 }