diff options
author | Brandon Philips <brandon@ifup.org> | 2007-11-06 18:02:36 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:02:11 -0500 |
commit | 0fc0686e64d21a6abded96af2b1a895dfa8b2530 (patch) | |
tree | 6c7a696c13bccb98e9b4a95e995b7992605ed419 /drivers/media/common/saa7146_video.c | |
parent | 1414becf15da1701b0c45e9c82b1f120cb676a36 (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_video.c')
-rw-r--r-- | drivers/media/common/saa7146_video.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/common/saa7146_video.c b/drivers/media/common/saa7146_video.c index ae36d101006b..c31ab480d8e1 100644 --- a/drivers/media/common/saa7146_video.c +++ b/drivers/media/common/saa7146_video.c | |||
@@ -1235,7 +1235,7 @@ static int buffer_activate (struct saa7146_dev *dev, | |||
1235 | { | 1235 | { |
1236 | struct saa7146_vv *vv = dev->vv_data; | 1236 | struct saa7146_vv *vv = dev->vv_data; |
1237 | 1237 | ||
1238 | buf->vb.state = STATE_ACTIVE; | 1238 | buf->vb.state = VIDEOBUF_ACTIVE; |
1239 | saa7146_set_capture(dev,buf,next); | 1239 | saa7146_set_capture(dev,buf,next); |
1240 | 1240 | ||
1241 | mod_timer(&vv->video_q.timeout, jiffies+BUFFER_TIMEOUT); | 1241 | mod_timer(&vv->video_q.timeout, jiffies+BUFFER_TIMEOUT); |
@@ -1281,7 +1281,7 @@ static int buffer_prepare(struct videobuf_queue *q, | |||
1281 | saa7146_dma_free(dev,q,buf); | 1281 | saa7146_dma_free(dev,q,buf); |
1282 | } | 1282 | } |
1283 | 1283 | ||
1284 | if (STATE_NEEDS_INIT == buf->vb.state) { | 1284 | if (VIDEOBUF_NEEDS_INIT == buf->vb.state) { |
1285 | struct saa7146_format *sfmt; | 1285 | struct saa7146_format *sfmt; |
1286 | 1286 | ||
1287 | buf->vb.bytesperline = fh->video_fmt.bytesperline; | 1287 | buf->vb.bytesperline = fh->video_fmt.bytesperline; |
@@ -1314,7 +1314,7 @@ static int buffer_prepare(struct videobuf_queue *q, | |||
1314 | if (err) | 1314 | if (err) |
1315 | goto oops; | 1315 | goto oops; |
1316 | } | 1316 | } |
1317 | buf->vb.state = STATE_PREPARED; | 1317 | buf->vb.state = VIDEOBUF_PREPARED; |
1318 | buf->activate = buffer_activate; | 1318 | buf->activate = buffer_activate; |
1319 | 1319 | ||
1320 | return 0; | 1320 | return 0; |
@@ -1453,7 +1453,7 @@ static void video_irq_done(struct saa7146_dev *dev, unsigned long st) | |||
1453 | 1453 | ||
1454 | /* only finish the buffer if we have one... */ | 1454 | /* only finish the buffer if we have one... */ |
1455 | if( NULL != q->curr ) { | 1455 | if( NULL != q->curr ) { |
1456 | saa7146_buffer_finish(dev,q,STATE_DONE); | 1456 | saa7146_buffer_finish(dev,q,VIDEOBUF_DONE); |
1457 | } | 1457 | } |
1458 | saa7146_buffer_next(dev,q,0); | 1458 | saa7146_buffer_next(dev,q,0); |
1459 | 1459 | ||