diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-08-23 15:37:49 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 21:14:55 -0400 |
commit | c1accaa21bdef38ec0f36eaaf7ce3384fff9d0c5 (patch) | |
tree | 3a2c8206555af6c9e2eecdb20b052be70e6b93dd /drivers/media/video/saa7134/saa7134-ts.c | |
parent | 7a7d9a89d0307b1743d782197e2c5fc5ddf183f3 (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/saa7134/saa7134-ts.c')
-rw-r--r-- | drivers/media/video/saa7134/saa7134-ts.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/saa7134/saa7134-ts.c b/drivers/media/video/saa7134/saa7134-ts.c index 7780b2cce80d..5b1d1dafb5a5 100644 --- a/drivers/media/video/saa7134/saa7134-ts.c +++ b/drivers/media/video/saa7134/saa7134-ts.c | |||
@@ -92,6 +92,8 @@ static int buffer_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb, | |||
92 | } | 92 | } |
93 | 93 | ||
94 | if (STATE_NEEDS_INIT == buf->vb.state) { | 94 | if (STATE_NEEDS_INIT == buf->vb.state) { |
95 | struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb); | ||
96 | |||
95 | buf->vb.width = llength; | 97 | buf->vb.width = llength; |
96 | buf->vb.height = lines; | 98 | buf->vb.height = lines; |
97 | buf->vb.size = size; | 99 | buf->vb.size = size; |
@@ -101,8 +103,8 @@ static int buffer_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb, | |||
101 | if (err) | 103 | if (err) |
102 | goto oops; | 104 | goto oops; |
103 | err = saa7134_pgtable_build(dev->pci,buf->pt, | 105 | err = saa7134_pgtable_build(dev->pci,buf->pt, |
104 | buf->vb.dma.sglist, | 106 | dma->sglist, |
105 | buf->vb.dma.sglen, | 107 | dma->sglen, |
106 | saa7134_buffer_startpage(buf)); | 108 | saa7134_buffer_startpage(buf)); |
107 | if (err) | 109 | if (err) |
108 | goto oops; | 110 | goto oops; |