This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/media_tree.git tree:

Subject: [media] media: fsl-viu: fix support for streaming with mmap method
Author:  Anatolij Gustschin <[email protected]>
Date:    Fri Dec 17 06:40:50 2010 -0300

Streaming using mmap didn't work in the VIU driver. We need to
start/stop DMA in streamon/streamoff and free the buffers on
release. Add appropriate driver extension now.

Signed-off-by: Anatolij Gustschin <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/video/fsl-viu.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

---

http://git.linuxtv.org/media_tree.git?a=commitdiff;h=643b83f581df5944a5eab4537534bf49c1db78d1

diff --git a/drivers/media/video/fsl-viu.c b/drivers/media/video/fsl-viu.c
index b8faff2..693e9c0 100644
--- a/drivers/media/video/fsl-viu.c
+++ b/drivers/media/video/fsl-viu.c
@@ -915,6 +915,8 @@ static int vidioc_streamon(struct file *file, void *priv, 
enum v4l2_buf_type i)
        if (fh->type != i)
                return -EINVAL;
 
+       viu_start_dma(fh->dev);
+
        return videobuf_streamon(&fh->vb_vidq);
 }
 
@@ -927,6 +929,8 @@ static int vidioc_streamoff(struct file *file, void *priv, 
enum v4l2_buf_type i)
        if (fh->type != i)
                return -EINVAL;
 
+       viu_stop_dma(fh->dev);
+
        return videobuf_streamoff(&fh->vb_vidq);
 }
 
@@ -1331,6 +1335,7 @@ static int viu_release(struct file *file)
 
        viu_stop_dma(dev);
        videobuf_stop(&fh->vb_vidq);
+       videobuf_mmap_free(&fh->vb_vidq);
 
        kfree(fh);
 

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to