From patchwork Thu Apr 23 13:03:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamil Debski X-Patchwork-Id: 6262391 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0F3909F313 for ; Thu, 23 Apr 2015 13:04:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 37BFD20221 for ; Thu, 23 Apr 2015 13:04:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 41E0920328 for ; Thu, 23 Apr 2015 13:04:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754251AbbDWNEN (ORCPT ); Thu, 23 Apr 2015 09:04:13 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:15151 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932730AbbDWNEK (ORCPT ); Thu, 23 Apr 2015 09:04:10 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NN900F1GGAXSC30@mailout1.samsung.com>; Thu, 23 Apr 2015 22:04:09 +0900 (KST) X-AuditID: cbfee61a-f79516d000006302-b7-5538edc852fc Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 58.76.25346.8CDE8355; Thu, 23 Apr 2015 22:04:08 +0900 (KST) Received: from AMDC1342.digital.local ([106.116.147.39]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NN9002YZG9FH710@mmp2.samsung.com>; Thu, 23 Apr 2015 22:04:08 +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, linux-samsung-soc@vger.kernel.org, Hans Verkuil Subject: [PATCH v4 07/10] v4l2-subdev: add HDMI CEC ops Date: Thu, 23 Apr 2015 15:03:10 +0200 Message-id: <1429794192-20541-8-git-send-email-k.debski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1429794192-20541-1-git-send-email-k.debski@samsung.com> References: <1429794192-20541-1-git-send-email-k.debski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrELMWRmVeSWpSXmKPExsVy+t9jQd0Tby1CDZ5fsrY4vOgFo8WVr+/Z LD5MnMlocWryMyaLH68vsFmcbXrDbnHz0zdWi54NW1ktZpzfx2Sx9shddovVzyosFj79zmKx cFk7mwOvx5TfG1k9ds66y+5xv/s4k8eSN9YeW/qBvL4tqxg9Hl2aw+zxeZOcx6mvn9kDOKO4 bFJSczLLUov07RK4MjZfns9e8Iu74vGm38wNjM1cXYycHBICJhJ/zs9mg7DFJC7cWw9kc3EI CUxnlJhybDkThPOLUWL9+iWMXYwcHGwCmhKr7nmANIgIOEhM2/gDrIZZYDGTxMbm+6wgCWEB c4njx6+zgdSzCKhK9F8xBwnzCrhIzDs0mQUkLCGgIDFnkg1ImFPAVeLHibvsILYQUMnXvp2M Exh5FzAyrGIUTS1ILihOSs811CtOzC0uzUvXS87P3cQIDtlnUjsYVzZYHGIU4GBU4uH9UGQR KsSaWFZcmXuIUYKDWUmEd89toBBvSmJlVWpRfnxRaU5q8SFGaQ4WJXHeObpyoUIC6Yklqdmp qQWpRTBZJg5OqQZGaz9dr19S2nyR/JqsiyLuzlXvaqxadDTDO+rPiUv/uvqs9qa/3+BZwZHt 8v30MZfLHasiz1zLZBVbGXg62FVnzUaW+V0xMmYZLzJC28LP5HS1/j7+xknzWfOv/pVHeqQE v7WnXbGUKfcXWf3aYcp2bvbHNorGshrnNt5z7/jLInTetKopRl2JpTgj0VCLuag4EQD/Pkxr VQIAAA== 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 2f0a345..9323e10 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 { @@ -352,6 +356,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); }; /*