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/common/saa7146_fops.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/common/saa7146_fops.c')
-rw-r--r-- | drivers/media/common/saa7146_fops.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/common/saa7146_fops.c b/drivers/media/common/saa7146_fops.c index b4770aecc01d..67d1b1b1b254 100644 --- a/drivers/media/common/saa7146_fops.c +++ b/drivers/media/common/saa7146_fops.c | |||
@@ -53,13 +53,14 @@ void saa7146_res_free(struct saa7146_fh *fh, unsigned int bits) | |||
53 | void saa7146_dma_free(struct saa7146_dev *dev,struct videobuf_queue *q, | 53 | void saa7146_dma_free(struct saa7146_dev *dev,struct videobuf_queue *q, |
54 | struct saa7146_buf *buf) | 54 | struct saa7146_buf *buf) |
55 | { | 55 | { |
56 | struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb); | ||
56 | DEB_EE(("dev:%p, buf:%p\n",dev,buf)); | 57 | DEB_EE(("dev:%p, buf:%p\n",dev,buf)); |
57 | 58 | ||
58 | BUG_ON(in_interrupt()); | 59 | BUG_ON(in_interrupt()); |
59 | 60 | ||
60 | videobuf_waiton(&buf->vb,0,0); | 61 | videobuf_waiton(&buf->vb,0,0); |
61 | videobuf_dma_unmap(q, &buf->vb.dma); | 62 | videobuf_dma_unmap(q, dma); |
62 | videobuf_dma_free(&buf->vb.dma); | 63 | videobuf_dma_free(dma); |
63 | buf->vb.state = STATE_NEEDS_INIT; | 64 | buf->vb.state = STATE_NEEDS_INIT; |
64 | } | 65 | } |
65 | 66 | ||