aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88/cx88-vbi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/cx88/cx88-vbi.c')
-rw-r--r--drivers/media/video/cx88/cx88-vbi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/cx88/cx88-vbi.c b/drivers/media/video/cx88/cx88-vbi.c
index 72c1d19fa79f..aa40505c4b3a 100644
--- a/drivers/media/video/cx88/cx88-vbi.c
+++ b/drivers/media/video/cx88/cx88-vbi.c
@@ -172,6 +172,7 @@ vbi_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb,
172 return -EINVAL; 172 return -EINVAL;
173 173
174 if (STATE_NEEDS_INIT == buf->vb.state) { 174 if (STATE_NEEDS_INIT == buf->vb.state) {
175 struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb);
175 buf->vb.width = VBI_LINE_LENGTH; 176 buf->vb.width = VBI_LINE_LENGTH;
176 buf->vb.height = VBI_LINE_COUNT; 177 buf->vb.height = VBI_LINE_COUNT;
177 buf->vb.size = size; 178 buf->vb.size = size;
@@ -180,7 +181,7 @@ vbi_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb,
180 if (0 != (rc = videobuf_iolock(q,&buf->vb,NULL))) 181 if (0 != (rc = videobuf_iolock(q,&buf->vb,NULL)))
181 goto fail; 182 goto fail;
182 cx88_risc_buffer(dev->pci, &buf->risc, 183 cx88_risc_buffer(dev->pci, &buf->risc,
183 buf->vb.dma.sglist, 184 dma->sglist,
184 0, buf->vb.width * buf->vb.height, 185 0, buf->vb.width * buf->vb.height,
185 buf->vb.width, 0, 186 buf->vb.width, 0,
186 buf->vb.height); 187 buf->vb.height);