diff options
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 | ||