Message ID | 1262613782-20463-4-git-send-email-hvaibhav@ti.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers |
Return-path: <linux-media-owner@vger.kernel.org> Envelope-to: mchehab@infradead.org Delivery-date: Mon, 04 Jan 2010 14:03:29 +0000 Received: from bombadil.infradead.org [18.85.46.34] by pedra with IMAP (fetchmail-6.3.6) for <mchehab@localhost> (single-drop); Tue, 05 Jan 2010 12:05:55 -0200 (BRST) Received: from vger.kernel.org ([209.132.180.67]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1NRnWr-0008CB-N3; Mon, 04 Jan 2010 14:03:29 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753442Ab0ADOD0 (ORCPT <rfc822; kmpark@infradead.org> + 1 other); Mon, 4 Jan 2010 09:03:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753429Ab0ADODQ (ORCPT <rfc822;linux-media-outgoing>); Mon, 4 Jan 2010 09:03:16 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:45606 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753301Ab0ADODN (ORCPT <rfc822;linux-media@vger.kernel.org>); Mon, 4 Jan 2010 09:03:13 -0500 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id o04E3AA5013742 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 4 Jan 2010 08:03:12 -0600 Received: from localhost.localdomain (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id o04E32WS015051; Mon, 4 Jan 2010 19:33:04 +0530 (IST) From: hvaibhav@ti.com To: linux-media@vger.kernel.org Cc: linux-omap@vger.kernel.org, hverkuil@xs4all.nl, davinci-linux-open-source@linux.davincidsp.com, m-karicheri2@ti.com, Vaibhav Hiremath <hvaibhav@ti.com> Subject: [PATCH 3/9] tvp514x: add YUYV format support Date: Mon, 4 Jan 2010 19:32:56 +0530 Message-Id: <1262613782-20463-4-git-send-email-hvaibhav@ti.com> X-Mailer: git-send-email 1.6.2.4 In-Reply-To: <hvaibhav@ti.com> References: <hvaibhav@ti.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org |
Commit Message
Hiremath, Vaibhav
Jan. 4, 2010, 2:02 p.m. UTC
From: Vaibhav Hiremath <hvaibhav@ti.com> Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com> --- drivers/media/video/tvp514x.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
Comments
Vaibhav, On Mon, Jan 4, 2010 at 9:02 AM, <hvaibhav@ti.com> wrote: > From: Vaibhav Hiremath <hvaibhav@ti.com> > > > Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com> > --- > drivers/media/video/tvp514x.c | 7 +++++++ > 1 files changed, 7 insertions(+), 0 deletions(-) > > diff --git a/drivers/media/video/tvp514x.c b/drivers/media/video/tvp514x.c > index 4cf3593..b344b58 100644 > --- a/drivers/media/video/tvp514x.c > +++ b/drivers/media/video/tvp514x.c > @@ -212,6 +212,13 @@ static const struct v4l2_fmtdesc tvp514x_fmt_list[] = { > .description = "8-bit UYVY 4:2:2 Format", > .pixelformat = V4L2_PIX_FMT_UYVY, > }, > + { > + .index = 1, > + .type = V4L2_BUF_TYPE_VIDEO_CAPTURE, > + .flags = 0, > + .description = "8-bit YUYV 4:2:2 Format", > + .pixelformat = V4L2_PIX_FMT_YUYV, > + }, > }; As per data sheet I can see only CbYCrY format output from the tvp5146 which translate to UYVY. How are you configuring tvp to output YUYV? I don;t see any change to the code to configure this format. CCDC can switch the CbCr order and also can swap Y/C order. So if you are achieving this via ccdc configuration, there is no need to add this format to tvp5146 IMO. -Murali > > /** > -- > 1.6.2.4 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-media" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >
> -----Original Message----- > From: Muralidharan Karicheri [mailto:mkaricheri@gmail.com] > Sent: Wednesday, February 24, 2010 5:15 AM > To: Hiremath, Vaibhav > Cc: linux-media@vger.kernel.org; linux-omap@vger.kernel.org; > hverkuil@xs4all.nl; davinci-linux-open-source@linux.davincidsp.com; > Karicheri, Muralidharan > Subject: Re: [PATCH 3/9] tvp514x: add YUYV format support > > Vaibhav, > > > On Mon, Jan 4, 2010 at 9:02 AM, <hvaibhav@ti.com> wrote: > > From: Vaibhav Hiremath <hvaibhav@ti.com> > > > > > > Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com> > > --- > > drivers/media/video/tvp514x.c | 7 +++++++ > > 1 files changed, 7 insertions(+), 0 deletions(-) > > > > diff --git a/drivers/media/video/tvp514x.c b/drivers/media/video/tvp514x.c > > index 4cf3593..b344b58 100644 > > --- a/drivers/media/video/tvp514x.c > > +++ b/drivers/media/video/tvp514x.c > > @@ -212,6 +212,13 @@ static const struct v4l2_fmtdesc tvp514x_fmt_list[] = > { > > .description = "8-bit UYVY 4:2:2 Format", > > .pixelformat = V4L2_PIX_FMT_UYVY, > > }, > > + { > > + .index = 1, > > + .type = V4L2_BUF_TYPE_VIDEO_CAPTURE, > > + .flags = 0, > > + .description = "8-bit YUYV 4:2:2 Format", > > + .pixelformat = V4L2_PIX_FMT_YUYV, > > + }, > > }; > > As per data sheet I can see only CbYCrY format output from the tvp5146 > which translate to UYVY. How are you configuring tvp to output YUYV? I > don;t see any change to the code to configure this format. > [Hiremath, Vaibhav] Yes you are right, actually this is dummy format created to support YUYV. > CCDC can switch the CbCr order and also can swap Y/C order. So if you > are achieving > this via ccdc configuration, there is no need to add this format to tvp5146 > IMO. > [Hiremath, Vaibhav] I think it makes sense to handle this is master driver, since we are handling this in CCDC. It could possible in the future TVP5146 might get used with SoC which don't have this capability. Thanks, Vaibhav > -Murali > > > > > /** > > -- > > 1.6.2.4 > > > > -- > > To unsubscribe from this list: send the line "unsubscribe linux-media" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > > > > > > -- > Murali Karicheri > mkaricheri@gmail.com -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/media/video/tvp514x.c b/drivers/media/video/tvp514x.c index 4cf3593..b344b58 100644 --- a/drivers/media/video/tvp514x.c +++ b/drivers/media/video/tvp514x.c @@ -212,6 +212,13 @@ static const struct v4l2_fmtdesc tvp514x_fmt_list[] = { .description = "8-bit UYVY 4:2:2 Format", .pixelformat = V4L2_PIX_FMT_UYVY, }, + { + .index = 1, + .type = V4L2_BUF_TYPE_VIDEO_CAPTURE, + .flags = 0, + .description = "8-bit YUYV 4:2:2 Format", + .pixelformat = V4L2_PIX_FMT_YUYV, + }, }; /**