diff options
Diffstat (limited to 'drivers/media/video/cx88/cx88-vbi.c')
-rw-r--r-- | drivers/media/video/cx88/cx88-vbi.c | 10 |
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", |