diff options
Diffstat (limited to 'drivers/media/pci')
-rw-r--r-- | drivers/media/pci/cx23885/cx23885-core.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/media/pci/cx23885/cx23885-core.c b/drivers/media/pci/cx23885/cx23885-core.c index 697728f09430..4189d6431d3c 100644 --- a/drivers/media/pci/cx23885/cx23885-core.c +++ b/drivers/media/pci/cx23885/cx23885-core.c | |||
@@ -1516,8 +1516,7 @@ int cx23885_restart_queue(struct cx23885_tsport *port, | |||
1516 | buf = list_entry(q->queued.next, struct cx23885_buffer, | 1516 | buf = list_entry(q->queued.next, struct cx23885_buffer, |
1517 | vb.queue); | 1517 | vb.queue); |
1518 | if (NULL == prev) { | 1518 | if (NULL == prev) { |
1519 | list_del(&buf->vb.queue); | 1519 | list_move_tail(&buf->vb.queue, &q->active); |
1520 | list_add_tail(&buf->vb.queue, &q->active); | ||
1521 | cx23885_start_dma(port, q, buf); | 1520 | cx23885_start_dma(port, q, buf); |
1522 | buf->vb.state = VIDEOBUF_ACTIVE; | 1521 | buf->vb.state = VIDEOBUF_ACTIVE; |
1523 | buf->count = q->count++; | 1522 | buf->count = q->count++; |
@@ -1528,8 +1527,7 @@ int cx23885_restart_queue(struct cx23885_tsport *port, | |||
1528 | } else if (prev->vb.width == buf->vb.width && | 1527 | } else if (prev->vb.width == buf->vb.width && |
1529 | prev->vb.height == buf->vb.height && | 1528 | prev->vb.height == buf->vb.height && |
1530 | prev->fmt == buf->fmt) { | 1529 | prev->fmt == buf->fmt) { |
1531 | list_del(&buf->vb.queue); | 1530 | list_move_tail(&buf->vb.queue, &q->active); |
1532 | list_add_tail(&buf->vb.queue, &q->active); | ||
1533 | buf->vb.state = VIDEOBUF_ACTIVE; | 1531 | buf->vb.state = VIDEOBUF_ACTIVE; |
1534 | buf->count = q->count++; | 1532 | buf->count = q->count++; |
1535 | prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); | 1533 | prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); |