diff mbox

[RFC] V4L2: Allow rotation between stream off-on

Message ID E0D41E29EB0DAC4E9F3FF173962E9E940254299E37@dbde02.ent.ti.com (mailing list archive)
State RFC
Headers show

Commit Message

Y, Kishore Nov. 17, 2009, 2:48 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/media/video/omap/omap_vout.c b/drivers/media/video/omap/omap_vout.c
index c39c8a7..6118665 100644
--- a/drivers/media/video/omap/omap_vout.c
+++ b/drivers/media/video/omap/omap_vout.c
@@ -1800,6 +1800,7 @@  static int vidioc_streamon(struct file *file, void *fh,
 	struct omap_vout_device *vout = fh;
 	struct videobuf_queue *q = &vout->vbq;
 	u32 addr = 0;
+	unsigned int count;
 	int r = 0;
 	int t;
 	struct omapvideo_info *ovid = &vout->vid_info;
@@ -1837,6 +1838,9 @@  static int vidioc_streamon(struct file *file, void *fh,
 
 	vout->first_int = 1;
 
+	count = vout->buffer_allocated;
+	omap_vout_vrfb_buffer_setup(vout, &count, 0);
+
 	if (omap_vout_calculate_offset(vout)) {
 		mutex_unlock(&vout->lock);
 		return -EINVAL;