From patchwork Fri Jan 25 07:01:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 2041501 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from comal.ext.ti.com (comal.ext.ti.com [198.47.26.152]) by patchwork1.kernel.org (Postfix) with ESMTP id 159943FD86 for ; Fri, 25 Jan 2013 07:07:22 +0000 (UTC) Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id r0P73UL2012373; Fri, 25 Jan 2013 01:03:31 -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 r0P73UPU013896; Fri, 25 Jan 2013 01:03:30 -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; Fri, 25 Jan 2013 01:03:30 -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 r0P73SW9009547; Fri, 25 Jan 2013 01:03:28 -0600 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 3E10E80626; Fri, 25 Jan 2013 01:03:28 -0600 (CST) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp51.itg.ti.com (dflp51.itg.ti.com [128.247.22.94]) by linux.omap.com (Postfix) with ESMTP id C6C9B80639 for ; Fri, 25 Jan 2013 01:01:45 -0600 (CST) Received: from medina.ext.ti.com (medina.ext.ti.com [192.91.81.31]) by dflp51.itg.ti.com (8.13.7/8.13.8) with ESMTP id r0P71jgQ014306 for ; Fri, 25 Jan 2013 01:01:45 -0600 (CST) Received: from mail6.bemta7.messagelabs.com (mail6.bemta7.messagelabs.com [216.82.255.55]) by medina.ext.ti.com (8.13.7/8.13.7) with ESMTP id r0P71iIZ016927 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 25 Jan 2013 01:01:45 -0600 Received: from [216.82.253.147:23740] by server-14.bemta-7.messagelabs.com id 11/31-15475-8DD22015; Fri, 25 Jan 2013 07:01:44 +0000 X-Env-Sender: prabhakar.csengg@gmail.com X-Msg-Ref: server-14.tower-165.messagelabs.com!1359097303!10795055!1 X-Originating-IP: [209.85.220.46] 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 14134 invoked from network); 25 Jan 2013 07:01:44 -0000 Received: from mail-pa0-f46.google.com (HELO mail-pa0-f46.google.com) (209.85.220.46) by server-14.tower-165.messagelabs.com with RC4-SHA encrypted SMTP; 25 Jan 2013 07:01:44 -0000 Received: by mail-pa0-f46.google.com with SMTP id kp14so86697pab.19 for ; 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 To: LMML 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> CC: DLOS , Mauro Carvalho Chehab , LKML , Hans Verkuil 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. 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 Signed-off-by: Lad, Prabhakar --- 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) #define MEDIA_ENT_FL_DEFAULT (1 << 0)