From patchwork Thu Feb 7 16:48:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 2112091 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 5A444DFB7B for ; Thu, 7 Feb 2013 16:49:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758961Ab3BGQtV (ORCPT ); Thu, 7 Feb 2013 11:49:21 -0500 Received: from mail-ie0-f176.google.com ([209.85.223.176]:65012 "EHLO mail-ie0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758830Ab3BGQtU (ORCPT ); Thu, 7 Feb 2013 11:49:20 -0500 Received: by mail-ie0-f176.google.com with SMTP id k13so3710172iea.7 for ; Thu, 07 Feb 2013 08:49:20 -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=XuQXGyb8PIV0IA8sMy6YGfFc3uU0GvWPkI1OEHQJwMg=; b=SSfgDRyAj1hyLRuc9RIcC3Gw3Uh+1BD6WykqkTkGs9vAaD7/dH5+pX6OqlmDl9YuNV gV1r595BPMKslyVbDzEvPH4VOXY43Hsf0NYh7kMk+Sjy3YRjxTz8aBeQYyBfTYnXxr9E AK7NaTKCt2pBuuGVtSfBoSgrcLQoa4X/+e98pzDXEw4xmhUkqSVQPU48oA8/PwVA33p6 VJq2FXYtwci6QemLxv84YFfTQrx6RGHs1GtA85rtflxjd1doxdfp70lGFGRwFWqo73LA IKn2XAY1agjRYdgFjSrzY5sMvb0BIzas3t80pJWWN/F8Ufb2EwAFb+96mPd8t2b+j7p0 IeXA== X-Received: by 10.43.110.132 with SMTP id ek4mr3554872icc.32.1360255759911; Thu, 07 Feb 2013 08:49:19 -0800 (PST) Received: from localhost.localdomain ([112.79.41.94]) by mx.google.com with ESMTPS id u4sm10238894igw.6.2013.02.07.08.49.09 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 07 Feb 2013 08:49:18 -0800 (PST) From: Prabhakar Lad To: LMML Cc: Hans Verkuil , LDOC , LKML , Laurent Pinchart , Sakari Ailus , DLOS , Manjunath Hadli , "Lad, Prabhakar" , Rob Landley , Mauro Carvalho Chehab Subject: [PATCH v3] media: add support for decoder as one of media entity types Date: Thu, 7 Feb 2013 22:18:51 +0530 Message-Id: <1360255731-3504-1-git-send-email-prabhakar.lad@ti.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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: Rob Landley Cc: Mauro Carvalho Chehab Reviewed-by: Sylwester Nawrocki --- Changes for v3: 1: Fixed Nit pointed by Sylwester. 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..ed49574 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) +/* A converter of analogue video to its digital representation. */ +#define MEDIA_ENT_T_V4L2_SUBDEV_DECODER (MEDIA_ENT_T_V4L2_SUBDEV + 4) #define MEDIA_ENT_FL_DEFAULT (1 << 0)