From patchwork Wed Apr 29 10:02: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: 6294731 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 539E79F1C2 for ; Wed, 29 Apr 2015 10:03:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8B4EE201D3 for ; Wed, 29 Apr 2015 10:03:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8485220218 for ; Wed, 29 Apr 2015 10:03:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422749AbbD2KDg (ORCPT ); Wed, 29 Apr 2015 06:03:36 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:11483 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422657AbbD2KDd (ORCPT ); Wed, 29 Apr 2015 06:03:33 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NNK00BJKBXUTCB0@mailout2.samsung.com>; Wed, 29 Apr 2015 19:03:30 +0900 (KST) X-AuditID: cbfee61a-f79516d000006302-91-5540ac720ce8 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id D2.E9.25346.27CA0455; Wed, 29 Apr 2015 19:03:30 +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 <0NNK00KGOBWNCG00@mmp2.samsung.com>; Wed, 29 Apr 2015 19:03:30 +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, lars@opdenkamp.eu, Hans Verkuil Subject: [PATCH v5 07/11] v4l2-subdev: add HDMI CEC ops Date: Wed, 29 Apr 2015 12:02:40 +0200 Message-id: <1430301765-22202-8-git-send-email-k.debski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1430301765-22202-1-git-send-email-k.debski@samsung.com> References: <1430301765-22202-1-git-send-email-k.debski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrDLMWRmVeSWpSXmKPExsVy+t9jQd2iNQ6hBleWaFgcXvSC0eLK1/ds Fh8mzmS0ODX5GZPFj9cX2CzONr1ht1i/9Bqrxc1P31gtejZsZbWYcX4fk8XaI3fZLVY/q7BY +PQ7i8XCZe1sDnweU35vZPXYOesuu8f97uNMHkveWHtsePeO1WNLP1Cob8sqRo9Hl+Ywe3ze JOdx6utn9gCuKC6blNSczLLUIn27BK6MzZfnsxf84q54vOk3cwNjM1cXIyeHhICJxPp/D1kg bDGJC/fWs4HYQgLTGSVmXq3sYuQCsn8xSkyZOxWoiIODTUBTYtU9D5AaEQEHiWkbfzCB1DAL 7GCSaN17mRkkISxgLvGu8x4TiM0ioCrx8MhXVhCbV8BF4uHjPWwgcyQEFCTmTLIBCXMKuEps 37QSaq+LxIEZTSwTGHkXMDKsYhRNLUguKE5KzzXUK07MLS7NS9dLzs/dxAgO42dSOxhXNlgc YhTgYFTi4RXQdQgVYk0sK67MPcQowcGsJMLLthgoxJuSWFmVWpQfX1Sak1p8iFGag0VJnHeO rlyokEB6YklqdmpqQWoRTJaJg1OqgfGU1/wnO872tm4sjGMpjOHYPEdJ/Zcha/YW4ZTZNn8a i927+12bvaaf52r/Nv9jzMe4WxcSZ27K2WmU09b6e1aDwO2Al8rbt+xtcf4yr7z988cZZWck VthwzbrCJqR6UVIycatkZqvyMiWjbu41AsduLLfcPMc59ZZh/NrXamqtmbes9TZb8CixFGck GmoxFxUnAgCsiVH6XwIAAA== 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); }; /*