From patchwork Fri Mar 20 16:52:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamil Debski X-Patchwork-Id: 6058301 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E19DCBF90F for ; Fri, 20 Mar 2015 16:54:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EFB1F2052F for ; Fri, 20 Mar 2015 16:54:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D4FA920529 for ; Fri, 20 Mar 2015 16:54:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751783AbbCTQyd (ORCPT ); Fri, 20 Mar 2015 12:54:33 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:22721 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751784AbbCTQy3 (ORCPT ); Fri, 20 Mar 2015 12:54:29 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NLI00A7ZSAR8U60@mailout2.samsung.com>; Sat, 21 Mar 2015 01:54:27 +0900 (KST) X-AuditID: cbfee61a-f79c06d000004e71-68-550c50c3a7e5 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 00.05.20081.3C05C055; Sat, 21 Mar 2015 01:54:27 +0900 (KST) Received: from AMDC1342.digital.local ([106.116.147.39]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NLI0059HS7XA7B0@mmp2.samsung.com>; Sat, 21 Mar 2015 01:54:27 +0900 (KST) From: Kamil Debski To: dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org Cc: m.szyprowski@samsung.com, k.debski@samsung.com, mchehab@osg.samsung.com, hverkuil@xs4all.nl, kyungmin.park@samsung.com, thomas@tommie-lie.de, sean@mess.org, dmitry.torokhov@gmail.com, linux-input@vger.kernel.org, Hans Verkuil Subject: [RFC v3 6/9] v4l2-subdev: add cec ops. Date: Fri, 20 Mar 2015 17:52:40 +0100 Message-id: <1426870363-18839-7-git-send-email-k.debski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1426870363-18839-1-git-send-email-k.debski@samsung.com> References: <1426870363-18839-1-git-send-email-k.debski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrLLMWRmVeSWpSXmKPExsVy+t9jQd3DATyhBqf2qlscXvSC0eLK1/ds Fh8mzmS0ODX5GZPFj9cX2CzONr1ht7j56RurRc+GrawWa4/cZbdY/azCYuHT7ywWC5e1sznw eEz5vZHVY+esu+we97uPM3kseWPtsaUfyOvbsorR49GlOcwenzfJeZz6+pk9gDOKyyYlNSez LLVI3y6BK6Px0AWWgl/cFXfW1zYwNnN1MXJySAiYSJxbv58FwhaTuHBvPVsXIxeHkMB0RonH 816xQzgdTBIPGlYzdTFycLAJaEqsuucB0iAi4CAxbeMPJpAaZoEGJokNf08wgiSEBfQllt07 wgpiswioStxd3gMW5xVwkfh+fz0zyBwJAQWJOZNsQMKcAq4Sa/e9BjtCCKik8/5qlgmMvAsY GVYxiqYWJBcUJ6XnGuoVJ+YWl+al6yXn525iBAfqM6kdjCsbLA4xCnAwKvHwHijlDhViTSwr rsw9xCjBwawkwtvmzhMqxJuSWFmVWpQfX1Sak1p8iFGag0VJnFfJvi1ESCA9sSQ1OzW1ILUI JsvEwSnVwOji03I3b8r7pWmdM/Lkvr0Q6a604aq+uDSAY9/kHbr7FRnFq+J/zqnjXCnU0DJ3 9d9Q/jcbuEMSpz1anr8rY8kdxq3iWxe0L3o64eMc4dnbD6nv+BGtvWbFypc+86w/C3poXHqy WOKL8sR95z6eV/WMrPD91LLcNvHyeablD2eaT79g0bM09L2pEktxRqKhFnNRcSIAXNMNFVAC AAA= Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Hans Verkuil Add callbacks to the v4l2_subdev_video_ops. Signed-off-by: Hans Verkuil [k.debski@samsung.com: Merged changes from CEC Updates commit by Hans Verkuil] Signed-off-by: Kamil Debski --- include/media/v4l2-subdev.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h index 5beeb87..fdf620d 100644 --- a/include/media/v4l2-subdev.h +++ b/include/media/v4l2-subdev.h @@ -40,6 +40,9 @@ #define V4L2_SUBDEV_IR_TX_NOTIFY _IOW('v', 1, u32) #define V4L2_SUBDEV_IR_TX_FIFO_SERVICE_REQ 0x00000001 +#define V4L2_SUBDEV_CEC_TX_DONE _IOW('v', 2, u32) +#define V4L2_SUBDEV_CEC_RX_MSG _IOW('v', 3, struct cec_msg) + struct v4l2_device; struct v4l2_ctrl_handler; struct v4l2_event_subscription; @@ -48,6 +51,7 @@ struct v4l2_subdev; struct v4l2_subdev_fh; struct tuner_setup; struct v4l2_mbus_frame_desc; +struct cec_msg; /* decode_vbi_line */ struct v4l2_decode_vbi_line { @@ -354,6 +358,10 @@ struct v4l2_subdev_video_ops { const struct v4l2_mbus_config *cfg); int (*s_rx_buffer)(struct v4l2_subdev *sd, void *buf, unsigned int *size); + int (*cec_enable)(struct v4l2_subdev *sd, bool enable); + int (*cec_log_addr)(struct v4l2_subdev *sd, u8 logical_addr); + int (*cec_transmit)(struct v4l2_subdev *sd, struct cec_msg *msg); + void (*cec_transmit_timed_out)(struct v4l2_subdev *sd); }; /*