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/video/saa7134/saa7134-vbi.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/video/saa7134/saa7134-vbi.c')
-rw-r--r-- | drivers/media/video/saa7134/saa7134-vbi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/saa7134/saa7134-vbi.c b/drivers/media/video/saa7134/saa7134-vbi.c index 81a2aedeff5c..f0d5ed9c2b06 100644 --- a/drivers/media/video/saa7134/saa7134-vbi.c +++ b/drivers/media/video/saa7134/saa7134-vbi.c | |||
@@ -85,7 +85,7 @@ static int buffer_activate(struct saa7134_dev *dev, | |||
85 | unsigned long control,base; | 85 | unsigned long control,base; |
86 | 86 | ||
87 | dprintk("buffer_activate [%p]\n",buf); | 87 | dprintk("buffer_activate [%p]\n",buf); |
88 | buf->vb.state = STATE_ACTIVE; | 88 | buf->vb.state = VIDEOBUF_ACTIVE; |
89 | buf->top_seen = 0; | 89 | buf->top_seen = 0; |
90 | 90 | ||
91 | task_init(dev,buf,TASK_A); | 91 | task_init(dev,buf,TASK_A); |
@@ -136,7 +136,7 @@ static int buffer_prepare(struct videobuf_queue *q, | |||
136 | if (buf->vb.size != size) | 136 | if (buf->vb.size != size) |
137 | saa7134_dma_free(q,buf); | 137 | saa7134_dma_free(q,buf); |
138 | 138 | ||
139 | if (STATE_NEEDS_INIT == buf->vb.state) { | 139 | if (VIDEOBUF_NEEDS_INIT == buf->vb.state) { |
140 | struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb); | 140 | struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb); |
141 | 141 | ||
142 | buf->vb.width = llength; | 142 | buf->vb.width = llength; |
@@ -154,7 +154,7 @@ static int buffer_prepare(struct videobuf_queue *q, | |||
154 | if (err) | 154 | if (err) |
155 | goto oops; | 155 | goto oops; |
156 | } | 156 | } |
157 | buf->vb.state = STATE_PREPARED; | 157 | buf->vb.state = VIDEOBUF_PREPARED; |
158 | buf->activate = buffer_activate; | 158 | buf->activate = buffer_activate; |
159 | buf->vb.field = field; | 159 | buf->vb.field = field; |
160 | return 0; | 160 | return 0; |
@@ -240,7 +240,7 @@ void saa7134_irq_vbi_done(struct saa7134_dev *dev, unsigned long status) | |||
240 | goto done; | 240 | goto done; |
241 | 241 | ||
242 | dev->vbi_q.curr->vb.field_count = dev->vbi_fieldcount; | 242 | dev->vbi_q.curr->vb.field_count = dev->vbi_fieldcount; |
243 | saa7134_buffer_finish(dev,&dev->vbi_q,STATE_DONE); | 243 | saa7134_buffer_finish(dev,&dev->vbi_q,VIDEOBUF_DONE); |
244 | } | 244 | } |
245 | saa7134_buffer_next(dev,&dev->vbi_q); | 245 | saa7134_buffer_next(dev,&dev->vbi_q); |
246 | 246 | ||