Commit 409d84f8 authored by Trent Piepho's avatar Trent Piepho Committed by Mauro Carvalho Chehab

V4L/DVB (6284): cx23885: Update to new videobuf code

cx23885 was still uses the old video-buf includes and code, which would only
`work' if one happened to be compiling against a kernel that had the old
headers.  Even then, it wouldn't actually work, it would just compile without
errors.
Signed-off-by: default avatarTrent Piepho <xyzzy@speakeasy.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 5a3ebe87
...@@ -1008,10 +1008,12 @@ int cx23885_risc_stopper(struct pci_dev *pci, struct btcx_riscmem *risc, ...@@ -1008,10 +1008,12 @@ int cx23885_risc_stopper(struct pci_dev *pci, struct btcx_riscmem *risc,
void cx23885_free_buffer(struct videobuf_queue *q, struct cx23885_buffer *buf) void cx23885_free_buffer(struct videobuf_queue *q, struct cx23885_buffer *buf)
{ {
struct videobuf_dmabuf *dma = videobuf_to_dma(&buf->vb);
BUG_ON(in_interrupt()); BUG_ON(in_interrupt());
videobuf_waiton(&buf->vb, 0, 0); videobuf_waiton(&buf->vb, 0, 0);
videobuf_dma_unmap(q, &buf->vb.dma); videobuf_dma_unmap(q, dma);
videobuf_dma_free(&buf->vb.dma); videobuf_dma_free(dma);
btcx_riscmem_free((struct pci_dev *)q->dev, &buf->risc); btcx_riscmem_free((struct pci_dev *)q->dev, &buf->risc);
buf->vb.state = STATE_NEEDS_INIT; buf->vb.state = STATE_NEEDS_INIT;
} }
...@@ -1176,7 +1178,7 @@ int cx23885_buf_prepare(struct videobuf_queue *q, struct cx23885_tsport *port, ...@@ -1176,7 +1178,7 @@ int cx23885_buf_prepare(struct videobuf_queue *q, struct cx23885_tsport *port,
if (0 != (rc = videobuf_iolock(q, &buf->vb, NULL))) if (0 != (rc = videobuf_iolock(q, &buf->vb, NULL)))
goto fail; goto fail;
cx23885_risc_databuffer(dev->pci, &buf->risc, cx23885_risc_databuffer(dev->pci, &buf->risc,
buf->vb.dma.sglist, videobuf_to_dma(&buf->vb)->sglist,
buf->vb.width, buf->vb.height); buf->vb.width, buf->vb.height);
} }
buf->vb.state = STATE_PREPARED; buf->vb.state = STATE_PREPARED;
......
...@@ -27,8 +27,8 @@ ...@@ -27,8 +27,8 @@
#include <media/v4l2-common.h> #include <media/v4l2-common.h>
#include <media/tuner.h> #include <media/tuner.h>
#include <media/tveeprom.h> #include <media/tveeprom.h>
#include <media/video-buf.h> #include <media/videobuf-dma-sg.h>
#include <media/video-buf-dvb.h> #include <media/videobuf-dvb.h>
#include "btcx-risc.h" #include "btcx-risc.h"
#include "cx23885-reg.h" #include "cx23885-reg.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment