From patchwork Tue Nov 17 14:48:20 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Y, Kishore" X-Patchwork-Id: 60650 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAHEjuSX019013 for ; Tue, 17 Nov 2009 14:45:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752580AbZKQOps (ORCPT ); Tue, 17 Nov 2009 09:45:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752712AbZKQOps (ORCPT ); Tue, 17 Nov 2009 09:45:48 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:59524 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752488AbZKQOpr convert rfc822-to-8bit (ORCPT ); Tue, 17 Nov 2009 09:45:47 -0500 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id nAHEjohR023294 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 17 Nov 2009 08:45:53 -0600 Received: from dbde71.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id nAHEjnJY013440; Tue, 17 Nov 2009 20:15:50 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde71.ent.ti.com ([172.24.170.149]) with mapi; Tue, 17 Nov 2009 20:15:50 +0530 From: "Y, Kishore" To: "linux-media@vger.kernel.org" CC: "linux-omap@vger.kernel.org" Date: Tue, 17 Nov 2009 20:18:20 +0530 Subject: [RFC] [PATCH] V4L2: Allow rotation between stream off-on Thread-Topic: [RFC] [PATCH] V4L2: Allow rotation between stream off-on Thread-Index: AcpnlQE/DzMPH5YgRFejtkbRWSiVxQ== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org 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;