From patchwork Mon Jan 28 11:50:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 2055671 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by patchwork2.kernel.org (Postfix) with ESMTP id 8FC8FE00C6 for ; Mon, 28 Jan 2013 11:55:43 +0000 (UTC) Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id r0SBpY5q003150; Mon, 28 Jan 2013 05:51:34 -0600 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id r0SBpYfs006063; Mon, 28 Jan 2013 05:51:34 -0600 Received: from dlelxv24.itg.ti.com (172.17.1.199) by dfle72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.1.323.3; Mon, 28 Jan 2013 05:51:34 -0600 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlelxv24.itg.ti.com (8.13.8/8.13.8) with ESMTP id r0SBpYWV005570; Mon, 28 Jan 2013 05:51:34 -0600 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 0ACBB80627; Mon, 28 Jan 2013 05:51:34 -0600 (CST) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp53.itg.ti.com (dflp53.itg.ti.com [128.247.5.6]) by linux.omap.com (Postfix) with ESMTP id 04EF780626 for ; Mon, 28 Jan 2013 05:51:31 -0600 (CST) Received: from medina.ext.ti.com (medina.ext.ti.com [192.91.81.31]) by dflp53.itg.ti.com (8.13.8/8.13.8) with ESMTP id r0SBpUO8029556 for ; Mon, 28 Jan 2013 05:51:30 -0600 (CST) Received: from mail6.bemta8.messagelabs.com (mail6.bemta8.messagelabs.com [216.82.243.55]) by medina.ext.ti.com (8.13.7/8.13.7) with ESMTP id r0SBpUmf012356 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 28 Jan 2013 05:51:30 -0600 Received: from [216.82.242.131:65257] by server-14.bemta-8.messagelabs.com id CC/35-15665-24666015; Mon, 28 Jan 2013 11:51:30 +0000 X-Env-Sender: prabhakar.csengg@gmail.com X-Msg-Ref: server-8.tower-76.messagelabs.com!1359373886!29957795!1 X-Originating-IP: [209.85.210.45] X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG, ML_RADAR_SPEW_LINKS_14,spamassassin: X-StarScan-Received: X-StarScan-Version: 6.7; banners=-,-,- X-VirusChecked: Checked Received: (qmail 8958 invoked from network); 28 Jan 2013 11:51:28 -0000 Received: from mail-da0-f45.google.com (HELO mail-da0-f45.google.com) (209.85.210.45) by server-8.tower-76.messagelabs.com with RC4-SHA encrypted SMTP; 28 Jan 2013 11:51:28 -0000 Received: by mail-da0-f45.google.com with SMTP id w4so1219512dam.32 for ; Mon, 28 Jan 2013 03:51:26 -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; bh=FJR5+BzHPoPHRVIdOp9TARxSmfGljd4TYDHxeObWpPs=; b=OWj/xq9qOQ9EIO2Whr2i4hTVr7g2DHxNN8NqPvbKeizjPizE7lWckzUWd/d0AD+sWG F9Qsbs65xYLp4LFbmQF7LayClCAJGpQeBjnlHXM9Hgxv1a9FrmY96cJxn642CxNLSOns d5jO8wjQNj6LnfqcJw5xMNALacoIze7kpupMZUasF2ZHuTnk+Xl7kckzrADxxBFsQjCH e8u3l6ySBbYgboDaFzlOAhkCN7D4Q9q7etnDP+dcAOWx8ApnwebSMFWvx/AEQmBHh8uR LH/DaeJSoCgwopmcZWmLVeu7FFXBlGOxTXLN0i5dYTH0F2AJP7ssX+FanRyknSiTAFs+ 01+w== X-Received: by 10.68.186.197 with SMTP id fm5mr10873873pbc.60.1359373886454; Mon, 28 Jan 2013 03:51:26 -0800 (PST) Received: from localhost.localdomain ([117.200.104.84]) by mx.google.com with ESMTPS id nw9sm6196343pbb.42.2013.01.28.03.51.20 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 28 Jan 2013 03:51:25 -0800 (PST) From: Prabhakar Lad To: LMML Subject: [PATCH v2] media: add support for decoder as one of media entity types Date: Mon, 28 Jan 2013 17:20:43 +0530 Message-ID: <1359373843-15956-1-git-send-email-prabhakar.lad@ti.com> X-Mailer: git-send-email 1.7.4.1 CC: DLOS , Mauro Carvalho Chehab , LDOC , LKML , Rob Landley , Sylwester Nawrocki X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com From: Manjunath Hadli A lot of SOCs including Texas Instruments Davinci family mainly use video decoders as input devices. This patch adds a flag 'MEDIA_ENT_T_V4L2_SUBDEV_DECODER' media entity type for decoder's. Along side updates the documentation for this media entity type. Signed-off-by: Manjunath Hadli Signed-off-by: Lad, Prabhakar Cc: Sylwester Nawrocki Cc: Rob Landley Cc: Mauro Carvalho Chehab Reviewed-by: Sylwester Nawrocki --- Changes for v2: 1: Sending as a separate patch. 2: Added documentation for the added media entity type. 3: Improved the commit message. .../DocBook/media/v4l/media-ioc-enum-entities.xml | 10 ++++++++++ include/uapi/linux/media.h | 2 ++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/Documentation/DocBook/media/v4l/media-ioc-enum-entities.xml b/Documentation/DocBook/media/v4l/media-ioc-enum-entities.xml index 576b68b..116c301 100644 --- a/Documentation/DocBook/media/v4l/media-ioc-enum-entities.xml +++ b/Documentation/DocBook/media/v4l/media-ioc-enum-entities.xml @@ -272,6 +272,16 @@ MEDIA_ENT_T_V4L2_SUBDEV_LENS Lens controller + + MEDIA_ENT_T_V4L2_SUBDEV_DECODER + Video decoder, the basic function of the video decoder is to + accept analogue video from a wide variety of sources such as + broadcast, DVD players, cameras and video cassette recorders, in + either NTSC, PAL or HD format and still occasionally SECAM, separate + it into its component parts, luminance and chrominance, and output + it in some digital video standard, with appropriate embedded timing + signals. + diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h index 0ef8833..dac06d7 100644 --- a/include/uapi/linux/media.h +++ b/include/uapi/linux/media.h @@ -56,6 +56,8 @@ 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) +/* DECODER: Converts analogue video to digital */ +#define MEDIA_ENT_T_V4L2_SUBDEV_DECODER (MEDIA_ENT_T_V4L2_SUBDEV + 4) #define MEDIA_ENT_FL_DEFAULT (1 << 0)