aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-10-04 04:28:45 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 23:03:09 -0400
commit409d84f85a8d523ecd108cbe2c0e722682da95ff (patch)
tree18a0e96011e2e2eaaaa3afe10c300f01b3d8def3 /drivers/media
parent5a3ebe8755e88cd765f75121665c0d38004f8f37 (diff)
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: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/cx23885/cx23885-core.c10
-rw-r--r--drivers/media/video/cx23885/cx23885.h4
2 files changed, 8 insertions, 6 deletions
diff --git a/drivers/media/video/cx23885/cx23885-core.c b/drivers/media/video/cx23885/cx23885-core.c
index 51879961e3ea..4d0614093ad6 100644
--- a/drivers/media/video/cx23885/cx23885-core.c
+++ b/drivers/media/video/cx23885/cx23885-core.c
@@ -1008,10 +1008,12 @@ int cx23885_risc_stopper(struct pci_dev *pci, struct btcx_riscmem *risc,
1008 1008
1009void cx23885_free_buffer(struct videobuf_queue *q, struct cx23885_buffer *buf) 1009void cx23885_free_buffer(struct videobuf_queue *q, struct cx23885_buffer *buf)
1010{ 1010{
1011 struct videobuf_dmabuf *dma = videobuf_to_dma(&buf->vb);
1012
1011 BUG_ON(in_interrupt()); 1013 BUG_ON(in_interrupt());
1012 videobuf_waiton(&buf->vb, 0, 0); 1014 videobuf_waiton(&buf->vb, 0, 0);
1013 videobuf_dma_unmap(q, &buf->vb.dma); 1015 videobuf_dma_unmap(q, dma);
1014 videobuf_dma_free(&buf->vb.dma); 1016 videobuf_dma_free(dma);
1015 btcx_riscmem_free((struct pci_dev *)q->dev, &buf->risc); 1017 btcx_riscmem_free((struct pci_dev *)q->dev, &buf->risc);
1016 buf->vb.state = STATE_NEEDS_INIT; 1018 buf->vb.state = STATE_NEEDS_INIT;
1017} 1019}
@@ -1176,8 +1178,8 @@ int cx23885_buf_prepare(struct videobuf_queue *q, struct cx23885_tsport *port,
1176 if (0 != (rc = videobuf_iolock(q, &buf->vb, NULL))) 1178 if (0 != (rc = videobuf_iolock(q, &buf->vb, NULL)))
1177 goto fail; 1179 goto fail;
1178 cx23885_risc_databuffer(dev->pci, &buf->risc, 1180 cx23885_risc_databuffer(dev->pci, &buf->risc,
1179 buf->vb.dma.sglist, 1181 videobuf_to_dma(&buf->vb)->sglist,
1180 buf->vb.width, buf->vb.height); 1182 buf->vb.width, buf->vb.height);
1181 } 1183 }
1182 buf->vb.state = STATE_PREPARED; 1184 buf->vb.state = STATE_PREPARED;
1183 return 0; 1185 return 0;
diff --git a/drivers/media/video/cx23885/cx23885.h b/drivers/media/video/cx23885/cx23885.h
index 3d4fae565e35..dec4dc2fcbb4 100644
--- a/drivers/media/video/cx23885/cx23885.h
+++ b/drivers/media/video/cx23885/cx23885.h
@@ -27,8 +27,8 @@
27#include <media/v4l2-common.h> 27#include <media/v4l2-common.h>
28#include <media/tuner.h> 28#include <media/tuner.h>
29#include <media/tveeprom.h> 29#include <media/tveeprom.h>
30#include <media/video-buf.h> 30#include <media/videobuf-dma-sg.h>
31#include <media/video-buf-dvb.h> 31#include <media/videobuf-dvb.h>
32 32
33#include "btcx-risc.h" 33#include "btcx-risc.h"
34#include "cx23885-reg.h" 34#include "cx23885-reg.h"