|
@@ -95,7 +95,7 @@ static int vbi_workaround(struct saa7146_dev *dev)
|
|
|
|
|
|
/* prepare to wait to be woken up by the irq-handler */
|
|
/* prepare to wait to be woken up by the irq-handler */
|
|
add_wait_queue(&vv->vbi_wq, &wait);
|
|
add_wait_queue(&vv->vbi_wq, &wait);
|
|
- current->state = TASK_INTERRUPTIBLE;
|
|
|
|
|
|
+ set_current_state(TASK_INTERRUPTIBLE);
|
|
|
|
|
|
/* start rps1 to enable workaround */
|
|
/* start rps1 to enable workaround */
|
|
saa7146_write(dev, RPS_ADDR1, dev->d_rps1.dma_handle);
|
|
saa7146_write(dev, RPS_ADDR1, dev->d_rps1.dma_handle);
|
|
@@ -106,7 +106,7 @@ static int vbi_workaround(struct saa7146_dev *dev)
|
|
DEB_VBI("brs bug workaround %d/1\n", i);
|
|
DEB_VBI("brs bug workaround %d/1\n", i);
|
|
|
|
|
|
remove_wait_queue(&vv->vbi_wq, &wait);
|
|
remove_wait_queue(&vv->vbi_wq, &wait);
|
|
- current->state = TASK_RUNNING;
|
|
|
|
|
|
+ __set_current_state(TASK_RUNNING);
|
|
|
|
|
|
/* disable rps1 irqs */
|
|
/* disable rps1 irqs */
|
|
SAA7146_IER_DISABLE(dev,MASK_28);
|
|
SAA7146_IER_DISABLE(dev,MASK_28);
|