]> git.hungrycats.org Git - linux/commitdiff
[PATCH] v4l: saa7146 driver update
authorGerd Knorr <kraxel@bytesex.org>
Tue, 7 Oct 2003 00:54:02 +0000 (17:54 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 7 Oct 2003 00:54:02 +0000 (17:54 -0700)
This adapts the saa7146 driver to the videobuf changes

drivers/media/common/saa7146_vbi.c
drivers/media/common/saa7146_video.c

index fba63a1ac348723da4fa0c0ded4882877675febf..19612d2fbe6edc555f67cbf51ef53ba580c5bb0a 100644 (file)
@@ -235,7 +235,7 @@ static int buffer_prepare(struct file *file, struct videobuf_buffer *vb,enum v4l
                saa7146_pgtable_free(dev->pci, &buf->pt[2]);
                saa7146_pgtable_alloc(dev->pci, &buf->pt[2]);
 
-               err = videobuf_iolock(dev->pci,&buf->vb);
+               err = videobuf_iolock(dev->pci,&buf->vb,NULL);
                if (err)
                        goto oops;
                saa7146_pgtable_build_single(dev->pci, &buf->pt[2], buf->vb.dma.sglist, buf->vb.dma.sglen);
index 15ceab5805abe02e0a1e3b8445eaa5dc65a09e31..f027f6ce20802c9d943e55b41ef99edd073d00fa 100644 (file)
@@ -1090,7 +1090,8 @@ int saa7146_video_do_ioctl(struct inode *inode, struct file *file, unsigned int
 
                q = &fh->video_q;
                down(&q->lock);
-               err = videobuf_mmap_setup(file,q,gbuffers,gbufsize); // ,V4L2_MEMORY_MMAP);
+               err = videobuf_mmap_setup(file,q,gbuffers,gbufsize,
+                                         V4L2_MEMORY_MMAP);
                if (err < 0) {
                        up(&q->lock);
                        return err;
@@ -1185,7 +1186,7 @@ static int buffer_prepare(struct file *file, struct videobuf_buffer *vb, enum v4
                        saa7146_pgtable_alloc(dev->pci, &buf->pt[0]);
                }
                
-               err = videobuf_iolock(dev->pci,&buf->vb);
+               err = videobuf_iolock(dev->pci,&buf->vb,NULL);
                if (err)
                        goto oops;
                err = saa7146_pgtable_build(dev,buf);