Message ID | 1359097268-22779-2-git-send-email-prabhakar.lad@ti.com (mailing list archive) |
---|---|
State | RFC, archived |
Headers |
Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from <linux-media-owner@vger.kernel.org>) id 1TydIk-0002r0-Jb; Fri, 25 Jan 2013 08:02:14 +0100 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.75/mailfrontend-4) with esmtp id 1TydIj-0002eK-Cl; Fri, 25 Jan 2013 08:02:14 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751727Ab3AYHBq (ORCPT <rfc822;mkrufky@linuxtv.org> + 1 other); Fri, 25 Jan 2013 02:01:46 -0500 Received: from mail-pb0-f49.google.com ([209.85.160.49]:62525 "EHLO mail-pb0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751063Ab3AYHBo (ORCPT <rfc822;linux-media@vger.kernel.org>); Fri, 25 Jan 2013 02:01:44 -0500 Received: by mail-pb0-f49.google.com with SMTP id xa12so40725pbc.8 for <multiple recipients>; Thu, 24 Jan 2013 23:01:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=HflRg9ayIGv/S2mAQ/BIJJcGq/le12X02OKL84QXY/k=; b=dj4shHU/fDKWT2h68WQVtS82W+4vXZCiO6kycJjijJP4MDBNhY903Ee4IZ2yNMDVEl NHwnYCpsQldnhk/Tbhh9MU8I1zr8EXMUSDW0k3+ufuZJivQZ9ijYSk9Xc9OvOmsEErn8 81wKB6mkRj6TRVh5SBmMAAnuxR400vdgzl3MScfDRDQtV5qDvsNwa0aIBnl8XSUUDEtR pL1NHYZEr1CTxc3YC9zXlsa8sTELbM4rAXxzt2dEdeTtldNvEixzm46/HkdHOqQtqOW6 3RhfY4jFFunjnfrTvxpMN8LPjHhU0jjqbwAFAlxPgj89lajhMIs39ASCE9JIfki6/V0f CQqg== X-Received: by 10.68.235.1 with SMTP id ui1mr11759753pbc.138.1359097303663; Thu, 24 Jan 2013 23:01:43 -0800 (PST) Received: from localhost.localdomain ([122.166.13.141]) by mx.google.com with ESMTPS id l5sm313253pax.10.2013.01.24.23.01.39 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 24 Jan 2013 23:01:42 -0800 (PST) From: Prabhakar Lad <prabhakar.csengg@gmail.com> To: LMML <linux-media@vger.kernel.org> Cc: LKML <linux-kernel@vger.kernel.org>, Mauro Carvalho Chehab <mchehab@redhat.com>, Hans Verkuil <hans.verkuil@cisco.com>, DLOS <davinci-linux-open-source@linux.davincidsp.com>, Manjunath Hadli <manjunath.hadli@ti.com>, "Lad, Prabhakar" <prabhakar.lad@ti.com> Subject: [PATCH 1/2] media: add support for decoder subdevs along with sensor and others Date: Fri, 25 Jan 2013 12:31:07 +0530 Message-Id: <1359097268-22779-2-git-send-email-prabhakar.lad@ti.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1359097268-22779-1-git-send-email-prabhakar.lad@ti.com> References: <1359097268-22779-1-git-send-email-prabhakar.lad@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 X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2013.1.25.65115 X-PMX-Spam: Gauge=IIIIIIIII, Probability=9%, Report=' FORGED_FROM_GMAIL 0.1, MULTIPLE_RCPTS 0.1, HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1300_1399 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, DKIM_SIGNATURE 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_MEDIA_BODY 0, __CP_URI_IN_BODY 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FROM_GMAIL 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __MIME_TEXT_ONLY 0, __MULTIPLE_RCPTS_CC_X2 0, __PHISH_SPEAR_STRUCTURE_1 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __SXL_RIP_ERROR_SERVFAIL , __SXL_SIG_ERROR_SERVFAIL , __SXL_URI_ERROR_SERVFAIL , __TO_MALFORMED_2 0, __URI_NO_WWW 0, __URI_NS , __YOUTUBE_RCVD 0' |
Commit Message
Lad, Prabhakar
Jan. 25, 2013, 7:01 a.m. UTC
From: Manjunath Hadli <manjunath.hadli@ti.com> A lot of SOCs including Texas Instruments Davinci family mainly use video decoders as input devices. Here the initial subdevice node from where the input really comes is this decoder, for which support is needed as part of the Media Controller infrastructure. This patch adds an additional flag to include the decoders along with others, such as the sensor and lens. Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com> Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com> --- include/uapi/linux/media.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Comments
Hi Prahakar, On 01/25/2013 08:01 AM, Prabhakar Lad wrote: > From: Manjunath Hadli<manjunath.hadli@ti.com> > > A lot of SOCs including Texas Instruments Davinci family mainly use > video decoders as input devices. Here the initial subdevice node > from where the input really comes is this decoder, for which support > is needed as part of the Media Controller infrastructure. This patch > adds an additional flag to include the decoders along with others, > such as the sensor and lens. > > Signed-off-by: Manjunath Hadli<manjunath.hadli@ti.com> > Signed-off-by: Lad, Prabhakar<prabhakar.lad@ti.com> > --- > include/uapi/linux/media.h | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h > index 0ef8833..fa44ed9 100644 > --- a/include/uapi/linux/media.h > +++ b/include/uapi/linux/media.h > @@ -56,6 +56,7 @@ struct media_device_info { > #define MEDIA_ENT_T_V4L2_SUBDEV_SENSOR (MEDIA_ENT_T_V4L2_SUBDEV + 1) > #define MEDIA_ENT_T_V4L2_SUBDEV_FLASH (MEDIA_ENT_T_V4L2_SUBDEV + 2) > #define MEDIA_ENT_T_V4L2_SUBDEV_LENS (MEDIA_ENT_T_V4L2_SUBDEV + 3) > +#define MEDIA_ENT_T_V4L2_SUBDEV_DECODER (MEDIA_ENT_T_V4L2_SUBDEV + 4) Such a new entity type needs to be documented in the media DocBook [1]. It probably also deserves a comment here, as DECODER isn't that obvious like the other already existing entity types. I heard people referring to a device that encodes analog (composite) video signal into its digital representation as an ENCODER. :) [1] http://hverkuil.home.xs4all.nl/spec/media.html#media-ioc-enum-entities -- Regards, Sylwester -- 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
Hi Sylwester, On Sat, Jan 26, 2013 at 1:24 AM, Sylwester Nawrocki <sylvester.nawrocki@gmail.com> wrote: > Hi Prahakar, > > > On 01/25/2013 08:01 AM, Prabhakar Lad wrote: >> >> From: Manjunath Hadli<manjunath.hadli@ti.com> >> >> A lot of SOCs including Texas Instruments Davinci family mainly use >> video decoders as input devices. Here the initial subdevice node >> from where the input really comes is this decoder, for which support >> is needed as part of the Media Controller infrastructure. This patch >> adds an additional flag to include the decoders along with others, >> such as the sensor and lens. >> >> Signed-off-by: Manjunath Hadli<manjunath.hadli@ti.com> >> Signed-off-by: Lad, Prabhakar<prabhakar.lad@ti.com> >> --- >> include/uapi/linux/media.h | 1 + >> 1 files changed, 1 insertions(+), 0 deletions(-) >> >> diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h >> index 0ef8833..fa44ed9 100644 >> --- a/include/uapi/linux/media.h >> +++ b/include/uapi/linux/media.h >> @@ -56,6 +56,7 @@ struct media_device_info { >> #define MEDIA_ENT_T_V4L2_SUBDEV_SENSOR (MEDIA_ENT_T_V4L2_SUBDEV + >> 1) >> #define MEDIA_ENT_T_V4L2_SUBDEV_FLASH (MEDIA_ENT_T_V4L2_SUBDEV + 2) >> #define MEDIA_ENT_T_V4L2_SUBDEV_LENS (MEDIA_ENT_T_V4L2_SUBDEV + 3) >> +#define MEDIA_ENT_T_V4L2_SUBDEV_DECODER (MEDIA_ENT_T_V4L2_SUBDEV + >> 4) > > > Such a new entity type needs to be documented in the media DocBook [1]. > It probably also deserves a comment here, as DECODER isn't that obvious > like the other already existing entity types. I heard people referring > to a device that encodes analog (composite) video signal into its digital > representation as an ENCODER. :) > > Thanks for pointing it :), I'll document it and post a v2. Regards, --Prabhakar Lad > [1] http://hverkuil.home.xs4all.nl/spec/media.html#media-ioc-enum-entities > > -- > > Regards, > Sylwester -- 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/include/uapi/linux/media.h b/include/uapi/linux/media.h index 0ef8833..fa44ed9 100644 --- a/include/uapi/linux/media.h +++ b/include/uapi/linux/media.h @@ -56,6 +56,7 @@ struct media_device_info { #define MEDIA_ENT_T_V4L2_SUBDEV_SENSOR (MEDIA_ENT_T_V4L2_SUBDEV + 1) #define MEDIA_ENT_T_V4L2_SUBDEV_FLASH (MEDIA_ENT_T_V4L2_SUBDEV + 2) #define MEDIA_ENT_T_V4L2_SUBDEV_LENS (MEDIA_ENT_T_V4L2_SUBDEV + 3) +#define MEDIA_ENT_T_V4L2_SUBDEV_DECODER (MEDIA_ENT_T_V4L2_SUBDEV + 4) #define MEDIA_ENT_FL_DEFAULT (1 << 0)