aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/bt8xx/bttv-driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/bt8xx/bttv-driver.c')
-rw-r--r--drivers/media/video/bt8xx/bttv-driver.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/media/video/bt8xx/bttv-driver.c b/drivers/media/video/bt8xx/bttv-driver.c
index db0e4b78e7dd..eb2c12eb2fc8 100644
--- a/drivers/media/video/bt8xx/bttv-driver.c
+++ b/drivers/media/video/bt8xx/bttv-driver.c
@@ -1638,7 +1638,7 @@ bttv_switch_overlay(struct bttv *btv, struct bttv_fh *fh,
1638 1638
1639 dprintk("switch_overlay: enter [new=%p]\n",new); 1639 dprintk("switch_overlay: enter [new=%p]\n",new);
1640 if (new) 1640 if (new)
1641 new->vb.state = STATE_DONE; 1641 new->vb.state = VIDEOBUF_DONE;
1642 spin_lock_irqsave(&btv->s_lock,flags); 1642 spin_lock_irqsave(&btv->s_lock,flags);
1643 old = btv->screen; 1643 old = btv->screen;
1644 btv->screen = new; 1644 btv->screen = new;
@@ -1749,7 +1749,7 @@ static int bttv_prepare_buffer(struct videobuf_queue *q,struct bttv *btv,
1749 } 1749 }
1750 1750
1751 /* alloc risc memory */ 1751 /* alloc risc memory */
1752 if (STATE_NEEDS_INIT == buf->vb.state) { 1752 if (VIDEOBUF_NEEDS_INIT == buf->vb.state) {
1753 redo_dma_risc = 1; 1753 redo_dma_risc = 1;
1754 if (0 != (rc = videobuf_iolock(q,&buf->vb,&btv->fbuf))) 1754 if (0 != (rc = videobuf_iolock(q,&buf->vb,&btv->fbuf)))
1755 goto fail; 1755 goto fail;
@@ -1759,7 +1759,7 @@ static int bttv_prepare_buffer(struct videobuf_queue *q,struct bttv *btv,
1759 if (0 != (rc = bttv_buffer_risc(btv,buf))) 1759 if (0 != (rc = bttv_buffer_risc(btv,buf)))
1760 goto fail; 1760 goto fail;
1761 1761
1762 buf->vb.state = STATE_PREPARED; 1762 buf->vb.state = VIDEOBUF_PREPARED;
1763 return 0; 1763 return 0;
1764 1764
1765 fail: 1765 fail:
@@ -1798,7 +1798,7 @@ buffer_queue(struct videobuf_queue *q, struct videobuf_buffer *vb)
1798 struct bttv_fh *fh = q->priv_data; 1798 struct bttv_fh *fh = q->priv_data;
1799 struct bttv *btv = fh->btv; 1799 struct bttv *btv = fh->btv;
1800 1800
1801 buf->vb.state = STATE_QUEUED; 1801 buf->vb.state = VIDEOBUF_QUEUED;
1802 list_add_tail(&buf->vb.queue,&btv->capture); 1802 list_add_tail(&buf->vb.queue,&btv->capture);
1803 if (!btv->curr.frame_irq) { 1803 if (!btv->curr.frame_irq) {
1804 btv->loop_irq |= 1; 1804 btv->loop_irq |= 1;
@@ -3102,8 +3102,8 @@ static unsigned int bttv_poll(struct file *file, poll_table *wait)
3102 } 3102 }
3103 3103
3104 poll_wait(file, &buf->vb.done, wait); 3104 poll_wait(file, &buf->vb.done, wait);
3105 if (buf->vb.state == STATE_DONE || 3105 if (buf->vb.state == VIDEOBUF_DONE ||
3106 buf->vb.state == STATE_ERROR) 3106 buf->vb.state == VIDEOBUF_ERROR)
3107 return POLLIN|POLLRDNORM; 3107 return POLLIN|POLLRDNORM;
3108 return 0; 3108 return 0;
3109} 3109}
@@ -3699,20 +3699,20 @@ static void bttv_irq_timeout(unsigned long data)
3699 bttv_set_dma(btv, 0); 3699 bttv_set_dma(btv, 0);
3700 3700
3701 /* wake up */ 3701 /* wake up */
3702 bttv_irq_wakeup_video(btv, &old, &new, STATE_ERROR); 3702 bttv_irq_wakeup_video(btv, &old, &new, VIDEOBUF_ERROR);
3703 bttv_irq_wakeup_vbi(btv, ovbi, STATE_ERROR); 3703 bttv_irq_wakeup_vbi(btv, ovbi, VIDEOBUF_ERROR);
3704 3704
3705 /* cancel all outstanding capture / vbi requests */ 3705 /* cancel all outstanding capture / vbi requests */
3706 while (!list_empty(&btv->capture)) { 3706 while (!list_empty(&btv->capture)) {
3707 item = list_entry(btv->capture.next, struct bttv_buffer, vb.queue); 3707 item = list_entry(btv->capture.next, struct bttv_buffer, vb.queue);
3708 list_del(&item->vb.queue); 3708 list_del(&item->vb.queue);
3709 item->vb.state = STATE_ERROR; 3709 item->vb.state = VIDEOBUF_ERROR;
3710 wake_up(&item->vb.done); 3710 wake_up(&item->vb.done);
3711 } 3711 }
3712 while (!list_empty(&btv->vcapture)) { 3712 while (!list_empty(&btv->vcapture)) {
3713 item = list_entry(btv->vcapture.next, struct bttv_buffer, vb.queue); 3713 item = list_entry(btv->vcapture.next, struct bttv_buffer, vb.queue);
3714 list_del(&item->vb.queue); 3714 list_del(&item->vb.queue);
3715 item->vb.state = STATE_ERROR; 3715 item->vb.state = VIDEOBUF_ERROR;
3716 wake_up(&item->vb.done); 3716 wake_up(&item->vb.done);
3717 } 3717 }
3718 3718
@@ -3735,7 +3735,7 @@ bttv_irq_wakeup_top(struct bttv *btv)
3735 3735
3736 do_gettimeofday(&wakeup->vb.ts); 3736 do_gettimeofday(&wakeup->vb.ts);
3737 wakeup->vb.field_count = btv->field_count; 3737 wakeup->vb.field_count = btv->field_count;
3738 wakeup->vb.state = STATE_DONE; 3738 wakeup->vb.state = VIDEOBUF_DONE;
3739 wake_up(&wakeup->vb.done); 3739 wake_up(&wakeup->vb.done);
3740 spin_unlock(&btv->s_lock); 3740 spin_unlock(&btv->s_lock);
3741} 3741}
@@ -3784,7 +3784,7 @@ bttv_irq_switch_video(struct bttv *btv)
3784 } 3784 }
3785 3785
3786 /* wake up finished buffers */ 3786 /* wake up finished buffers */
3787 bttv_irq_wakeup_video(btv, &old, &new, STATE_DONE); 3787 bttv_irq_wakeup_video(btv, &old, &new, VIDEOBUF_DONE);
3788 spin_unlock(&btv->s_lock); 3788 spin_unlock(&btv->s_lock);
3789} 3789}
3790 3790
@@ -3817,7 +3817,7 @@ bttv_irq_switch_vbi(struct bttv *btv)
3817 bttv_buffer_activate_vbi(btv, new); 3817 bttv_buffer_activate_vbi(btv, new);
3818 bttv_set_dma(btv, 0); 3818 bttv_set_dma(btv, 0);
3819 3819
3820 bttv_irq_wakeup_vbi(btv, old, STATE_DONE); 3820 bttv_irq_wakeup_vbi(btv, old, VIDEOBUF_DONE);
3821 spin_unlock(&btv->s_lock); 3821 spin_unlock(&btv->s_lock);
3822} 3822}
3823 3823