aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88/cx88-mpeg.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-mpeg.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-mpeg.c')
-rw-r--r--drivers/media/video/cx88/cx88-mpeg.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/video/cx88/cx88-mpeg.c b/drivers/media/video/cx88/cx88-mpeg.c
index 60ac4234d84c..339a88a64f54 100644
--- a/drivers/media/video/cx88/cx88-mpeg.c
+++ b/drivers/media/video/cx88/cx88-mpeg.c
@@ -195,7 +195,7 @@ static int cx8802_restart_queue(struct cx8802_dev *dev,
195 list_del(&buf->vb.queue); 195 list_del(&buf->vb.queue);
196 list_add_tail(&buf->vb.queue,&q->active); 196 list_add_tail(&buf->vb.queue,&q->active);
197 cx8802_start_dma(dev, q, buf); 197 cx8802_start_dma(dev, q, buf);
198 buf->vb.state = STATE_ACTIVE; 198 buf->vb.state = VIDEOBUF_ACTIVE;
199 buf->count = q->count++; 199 buf->count = q->count++;
200 mod_timer(&q->timeout, jiffies+BUFFER_TIMEOUT); 200 mod_timer(&q->timeout, jiffies+BUFFER_TIMEOUT);
201 dprintk(1,"[%p/%d] restart_queue - first active\n", 201 dprintk(1,"[%p/%d] restart_queue - first active\n",
@@ -206,7 +206,7 @@ static int cx8802_restart_queue(struct cx8802_dev *dev,
206 prev->fmt == buf->fmt) { 206 prev->fmt == buf->fmt) {
207 list_del(&buf->vb.queue); 207 list_del(&buf->vb.queue);
208 list_add_tail(&buf->vb.queue,&q->active); 208 list_add_tail(&buf->vb.queue,&q->active);
209 buf->vb.state = STATE_ACTIVE; 209 buf->vb.state = VIDEOBUF_ACTIVE;
210 buf->count = q->count++; 210 buf->count = q->count++;
211 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); 211 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma);
212 dprintk(1,"[%p/%d] restart_queue - move to active\n", 212 dprintk(1,"[%p/%d] restart_queue - move to active\n",
@@ -242,7 +242,7 @@ int cx8802_buf_prepare(struct videobuf_queue *q, struct cx8802_dev *dev,
242 if (0 != buf->vb.baddr && buf->vb.bsize < size) 242 if (0 != buf->vb.baddr && buf->vb.bsize < size)
243 return -EINVAL; 243 return -EINVAL;
244 244
245 if (STATE_NEEDS_INIT == buf->vb.state) { 245 if (VIDEOBUF_NEEDS_INIT == buf->vb.state) {
246 buf->vb.width = dev->ts_packet_size; 246 buf->vb.width = dev->ts_packet_size;
247 buf->vb.height = dev->ts_packet_count; 247 buf->vb.height = dev->ts_packet_count;
248 buf->vb.size = size; 248 buf->vb.size = size;
@@ -254,7 +254,7 @@ int cx8802_buf_prepare(struct videobuf_queue *q, struct cx8802_dev *dev,
254 dma->sglist, 254 dma->sglist,
255 buf->vb.width, buf->vb.height, 0); 255 buf->vb.width, buf->vb.height, 0);
256 } 256 }
257 buf->vb.state = STATE_PREPARED; 257 buf->vb.state = VIDEOBUF_PREPARED;
258 return 0; 258 return 0;
259 259
260 fail: 260 fail:
@@ -276,7 +276,7 @@ void cx8802_buf_queue(struct cx8802_dev *dev, struct cx88_buffer *buf)
276 dprintk( 1, "queue is empty - first active\n" ); 276 dprintk( 1, "queue is empty - first active\n" );
277 list_add_tail(&buf->vb.queue,&cx88q->active); 277 list_add_tail(&buf->vb.queue,&cx88q->active);
278 cx8802_start_dma(dev, cx88q, buf); 278 cx8802_start_dma(dev, cx88q, buf);
279 buf->vb.state = STATE_ACTIVE; 279 buf->vb.state = VIDEOBUF_ACTIVE;
280 buf->count = cx88q->count++; 280 buf->count = cx88q->count++;
281 mod_timer(&cx88q->timeout, jiffies+BUFFER_TIMEOUT); 281 mod_timer(&cx88q->timeout, jiffies+BUFFER_TIMEOUT);
282 dprintk(1,"[%p/%d] %s - first active\n", 282 dprintk(1,"[%p/%d] %s - first active\n",
@@ -286,7 +286,7 @@ void cx8802_buf_queue(struct cx8802_dev *dev, struct cx88_buffer *buf)
286 dprintk( 1, "queue is not empty - append to active\n" ); 286 dprintk( 1, "queue is not empty - append to active\n" );
287 prev = list_entry(cx88q->active.prev, struct cx88_buffer, vb.queue); 287 prev = list_entry(cx88q->active.prev, struct cx88_buffer, vb.queue);
288 list_add_tail(&buf->vb.queue,&cx88q->active); 288 list_add_tail(&buf->vb.queue,&cx88q->active);
289 buf->vb.state = STATE_ACTIVE; 289 buf->vb.state = VIDEOBUF_ACTIVE;
290 buf->count = cx88q->count++; 290 buf->count = cx88q->count++;
291 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); 291 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma);
292 dprintk( 1, "[%p/%d] %s - append to active\n", 292 dprintk( 1, "[%p/%d] %s - append to active\n",
@@ -306,7 +306,7 @@ static void do_cancel_buffers(struct cx8802_dev *dev, char *reason, int restart)
306 while (!list_empty(&q->active)) { 306 while (!list_empty(&q->active)) {
307 buf = list_entry(q->active.next, struct cx88_buffer, vb.queue); 307 buf = list_entry(q->active.next, struct cx88_buffer, vb.queue);
308 list_del(&buf->vb.queue); 308 list_del(&buf->vb.queue);
309 buf->vb.state = STATE_ERROR; 309 buf->vb.state = VIDEOBUF_ERROR;
310 wake_up(&buf->vb.done); 310 wake_up(&buf->vb.done);
311 dprintk(1,"[%p/%d] %s - dma=0x%08lx\n", 311 dprintk(1,"[%p/%d] %s - dma=0x%08lx\n",
312 buf, buf->vb.i, reason, (unsigned long)buf->risc.dma); 312 buf, buf->vb.i, reason, (unsigned long)buf->risc.dma);