aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88/cx88-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/video/cx88/cx88-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/video/cx88/cx88-vbi.c')
-rw-r--r--drivers/media/video/cx88/cx88-vbi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/video/cx88/cx88-vbi.c b/drivers/media/video/cx88/cx88-vbi.c
index babb08556406..d96ecfcf393a 100644
--- a/drivers/media/video/cx88/cx88-vbi.c
+++ b/drivers/media/video/cx88/cx88-vbi.c
@@ -130,7 +130,7 @@ void cx8800_vbi_timeout(unsigned long data)
130 while (!list_empty(&q->active)) { 130 while (!list_empty(&q->active)) {
131 buf = list_entry(q->active.next, struct cx88_buffer, vb.queue); 131 buf = list_entry(q->active.next, struct cx88_buffer, vb.queue);
132 list_del(&buf->vb.queue); 132 list_del(&buf->vb.queue);
133 buf->vb.state = STATE_ERROR; 133 buf->vb.state = VIDEOBUF_ERROR;
134 wake_up(&buf->vb.done); 134 wake_up(&buf->vb.done);
135 printk("%s/0: [%p/%d] timeout - dma=0x%08lx\n", dev->core->name, 135 printk("%s/0: [%p/%d] timeout - dma=0x%08lx\n", dev->core->name,
136 buf, buf->vb.i, (unsigned long)buf->risc.dma); 136 buf, buf->vb.i, (unsigned long)buf->risc.dma);
@@ -168,7 +168,7 @@ vbi_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb,
168 if (0 != buf->vb.baddr && buf->vb.bsize < size) 168 if (0 != buf->vb.baddr && buf->vb.bsize < size)
169 return -EINVAL; 169 return -EINVAL;
170 170
171 if (STATE_NEEDS_INIT == buf->vb.state) { 171 if (VIDEOBUF_NEEDS_INIT == buf->vb.state) {
172 struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb); 172 struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb);
173 buf->vb.width = VBI_LINE_LENGTH; 173 buf->vb.width = VBI_LINE_LENGTH;
174 buf->vb.height = VBI_LINE_COUNT; 174 buf->vb.height = VBI_LINE_COUNT;
@@ -183,7 +183,7 @@ vbi_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb,
183 buf->vb.width, 0, 183 buf->vb.width, 0,
184 buf->vb.height); 184 buf->vb.height);
185 } 185 }
186 buf->vb.state = STATE_PREPARED; 186 buf->vb.state = VIDEOBUF_PREPARED;
187 return 0; 187 return 0;
188 188
189 fail: 189 fail:
@@ -207,7 +207,7 @@ vbi_queue(struct videobuf_queue *vq, struct videobuf_buffer *vb)
207 if (list_empty(&q->active)) { 207 if (list_empty(&q->active)) {
208 list_add_tail(&buf->vb.queue,&q->active); 208 list_add_tail(&buf->vb.queue,&q->active);
209 cx8800_start_vbi_dma(dev, q, buf); 209 cx8800_start_vbi_dma(dev, q, buf);
210 buf->vb.state = STATE_ACTIVE; 210 buf->vb.state = VIDEOBUF_ACTIVE;
211 buf->count = q->count++; 211 buf->count = q->count++;
212 mod_timer(&q->timeout, jiffies+BUFFER_TIMEOUT); 212 mod_timer(&q->timeout, jiffies+BUFFER_TIMEOUT);
213 dprintk(2,"[%p/%d] vbi_queue - first active\n", 213 dprintk(2,"[%p/%d] vbi_queue - first active\n",
@@ -216,7 +216,7 @@ vbi_queue(struct videobuf_queue *vq, struct videobuf_buffer *vb)
216 } else { 216 } else {
217 prev = list_entry(q->active.prev, struct cx88_buffer, vb.queue); 217 prev = list_entry(q->active.prev, struct cx88_buffer, vb.queue);
218 list_add_tail(&buf->vb.queue,&q->active); 218 list_add_tail(&buf->vb.queue,&q->active);
219 buf->vb.state = STATE_ACTIVE; 219 buf->vb.state = VIDEOBUF_ACTIVE;
220 buf->count = q->count++; 220 buf->count = q->count++;
221 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); 221 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma);
222 dprintk(2,"[%p/%d] buffer_queue - append to active\n", 222 dprintk(2,"[%p/%d] buffer_queue - append to active\n",