diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-02 15:53:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-02 15:53:57 -0400 |
commit | b043b673dc8a73daa233d5d92cf70b32e7351314 (patch) | |
tree | d17fd0616420886adca7eb1bc19ba7a55a789fa8 /drivers/media/video/video-buf.c | |
parent | cd5e25d93e6efeb93db7b6731b0a674495270621 (diff) | |
parent | fb9c280d4c6d4586670e3dfd041d8258db36b330 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/mchehab/v4l-dvb
* master.kernel.org:/pub/scm/linux/kernel/git/mchehab/v4l-dvb: (49 commits)
V4L/DVB (3667b): cpia2: fix function prototype
V4L/DVB (3702): Make msp3400 routing defines more consistent
V4L/DVB (3700): Remove obsolete commands from tvp5150.c
V4L/DVB (3697): More msp3400 and bttv fixes
V4L/DVB (3696): Previous change for cx2341X boards broke the remote support
V4L/DVB (3693): Fix msp3400c and bttv stereo/mono/bilingual detection/handling
V4L/DVB (3692): Keep experimental SLICED_VBI defines under an #if 0
V4L/DVB (3689): Kconfig: fix VP-3054 Secondary I2C Bus build configuration menu dependencies
V4L/DVB (3673): Fix budget-av CAM reset
V4L/DVB (3672): Fix memory leak in dvr open
V4L/DVB (3671): New module parameter 'tv_standard' (dvb-ttpci driver)
V4L/DVB (3670): Fix typo in comment
V4L/DVB (3669): Configurable dma buffer size for saa7146-based budget dvb cards
V4L/DVB (3653h): Move usb v4l docs into Documentation/video4linux
V4L/DVB (3667a): Fix SAP + stereo mode at msp3400
V4L/DVB (3666): Remove trailing newlines
V4L/DVB (3665): Add new NEC uPD64031A and uPD64083 i2c drivers
V4L/DVB (3663): Fix msp3400c wait time and better audio mode fallbacks
V4L/DVB (3662): Don't set msp3400c-non-existent register
V4L/DVB (3661): Add wm8739 stereo audio ADC i2c driver
...
Diffstat (limited to 'drivers/media/video/video-buf.c')
-rw-r--r-- | drivers/media/video/video-buf.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/media/video/video-buf.c b/drivers/media/video/video-buf.c index d2ca0f08d0df..acc5ea936687 100644 --- a/drivers/media/video/video-buf.c +++ b/drivers/media/video/video-buf.c | |||
@@ -399,19 +399,25 @@ void videobuf_queue_pci(struct videobuf_queue* q) | |||
399 | int videobuf_pci_dma_map(struct pci_dev *pci,struct videobuf_dmabuf *dma) | 399 | int videobuf_pci_dma_map(struct pci_dev *pci,struct videobuf_dmabuf *dma) |
400 | { | 400 | { |
401 | struct videobuf_queue q; | 401 | struct videobuf_queue q; |
402 | struct videobuf_queue_ops qops; | ||
402 | 403 | ||
403 | q.dev=pci; | 404 | q.dev=pci; |
404 | q.ops->vb_map_sg=(vb_map_sg_t *)pci_unmap_sg; | 405 | qops.vb_map_sg=(vb_map_sg_t *)pci_map_sg; |
406 | qops.vb_unmap_sg=(vb_map_sg_t *)pci_unmap_sg; | ||
407 | q.ops = &qops; | ||
405 | 408 | ||
406 | return (videobuf_dma_unmap(&q,dma)); | 409 | return (videobuf_dma_map(&q,dma)); |
407 | } | 410 | } |
408 | 411 | ||
409 | int videobuf_pci_dma_unmap(struct pci_dev *pci,struct videobuf_dmabuf *dma) | 412 | int videobuf_pci_dma_unmap(struct pci_dev *pci,struct videobuf_dmabuf *dma) |
410 | { | 413 | { |
411 | struct videobuf_queue q; | 414 | struct videobuf_queue q; |
415 | struct videobuf_queue_ops qops; | ||
412 | 416 | ||
413 | q.dev=pci; | 417 | q.dev=pci; |
414 | q.ops->vb_map_sg=(vb_map_sg_t *)pci_unmap_sg; | 418 | qops.vb_map_sg=(vb_map_sg_t *)pci_map_sg; |
419 | qops.vb_unmap_sg=(vb_map_sg_t *)pci_unmap_sg; | ||
420 | q.ops = &qops; | ||
415 | 421 | ||
416 | return (videobuf_dma_unmap(&q,dma)); | 422 | return (videobuf_dma_unmap(&q,dma)); |
417 | } | 423 | } |
@@ -923,7 +929,7 @@ ssize_t videobuf_read_one(struct videobuf_queue *q, | |||
923 | /* need to capture a new frame */ | 929 | /* need to capture a new frame */ |
924 | retval = -ENOMEM; | 930 | retval = -ENOMEM; |
925 | q->read_buf = videobuf_alloc(q->msize); | 931 | q->read_buf = videobuf_alloc(q->msize); |
926 | dprintk(1,"video alloc=0x%08x\n",(unsigned int) q->read_buf); | 932 | dprintk(1,"video alloc=0x%p\n", q->read_buf); |
927 | if (NULL == q->read_buf) | 933 | if (NULL == q->read_buf) |
928 | goto done; | 934 | goto done; |
929 | q->read_buf->memory = V4L2_MEMORY_USERPTR; | 935 | q->read_buf->memory = V4L2_MEMORY_USERPTR; |