aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/video-buf-dvb.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-08-23 15:37:49 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 21:14:55 -0400
commitc1accaa21bdef38ec0f36eaaf7ce3384fff9d0c5 (patch)
tree3a2c8206555af6c9e2eecdb20b052be70e6b93dd /drivers/media/video/video-buf-dvb.c
parent7a7d9a89d0307b1743d782197e2c5fc5ddf183f3 (diff)
V4L/DVB (6252): Adapt drivers to use the newer videobuf modules
PCI-dependent videobuf_foo methods were renamed as videobuf_pci_foo. Also, videobuf_dmabuf is now part of videobuf-dma-sg private struct. So, to access it, a subroutine call is needed. This patch renames all occurences of those function calls to be consistent with the video-buf split. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> http://thread.gmane.org/gmane.comp.video.video4linux/34978/focus=34981 Reviewed-by: Ricardo Cerqueira <v4l@cerqueira.org>
Diffstat (limited to 'drivers/media/video/video-buf-dvb.c')
-rw-r--r--drivers/media/video/video-buf-dvb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/video-buf-dvb.c b/drivers/media/video/video-buf-dvb.c
index d2af82dc8faf..9631ead297ee 100644
--- a/drivers/media/video/video-buf-dvb.c
+++ b/drivers/media/video/video-buf-dvb.c
@@ -22,7 +22,7 @@
22#include <linux/file.h> 22#include <linux/file.h>
23#include <linux/freezer.h> 23#include <linux/freezer.h>
24 24
25#include <media/video-buf.h> 25#include <media/videobuf-dma-sg.h>
26#include <media/video-buf-dvb.h> 26#include <media/video-buf-dvb.h>
27 27
28/* ------------------------------------------------------------------ */ 28/* ------------------------------------------------------------------ */
@@ -45,6 +45,7 @@ static int videobuf_dvb_thread(void *data)
45 struct videobuf_buffer *buf; 45 struct videobuf_buffer *buf;
46 unsigned long flags; 46 unsigned long flags;
47 int err; 47 int err;
48 struct videobuf_dmabuf *dma;
48 49
49 dprintk("dvb thread started\n"); 50 dprintk("dvb thread started\n");
50 set_freezable(); 51 set_freezable();
@@ -65,8 +66,9 @@ static int videobuf_dvb_thread(void *data)
65 try_to_freeze(); 66 try_to_freeze();
66 67
67 /* feed buffer data to demux */ 68 /* feed buffer data to demux */
69 dma=videobuf_to_dma(buf);
68 if (buf->state == STATE_DONE) 70 if (buf->state == STATE_DONE)
69 dvb_dmx_swfilter(&dvb->demux, buf->dma.vmalloc, 71 dvb_dmx_swfilter(&dvb->demux, dma->vmalloc,
70 buf->size); 72 buf->size);
71 73
72 /* requeue buffer */ 74 /* requeue buffer */