From patchwork Mon May 4 17:33:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamil Debski X-Patchwork-Id: 6328671 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 BCF64BEEE1 for ; Mon, 4 May 2015 17:34:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BAE7A202EB for ; Mon, 4 May 2015 17:34:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1A3B0202A1 for ; Mon, 4 May 2015 17:34:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751993AbbEDRee (ORCPT ); Mon, 4 May 2015 13:34:34 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:56938 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751617AbbEDRec (ORCPT ); Mon, 4 May 2015 13:34:32 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NNU005Q765JVJ00@mailout1.samsung.com>; Tue, 05 May 2015 02:34:31 +0900 (KST) X-AuditID: cbfee61b-f79536d000000f1f-c7-5547ada7a658 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id E2.5F.03871.7ADA7455; Tue, 5 May 2015 02:34:31 +0900 (KST) Received: from AMDC1342.digital.local ([106.116.147.39]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NNU0018W6370NB0@mmp1.samsung.com>; Tue, 05 May 2015 02:34:31 +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 v6 08/11] v4l2-subdev: add HDMI CEC ops Date: Mon, 04 May 2015 19:33:01 +0200 Message-id: <1430760785-1169-9-git-send-email-k.debski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1430760785-1169-1-git-send-email-k.debski@samsung.com> References: <1430760785-1169-1-git-send-email-k.debski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrDLMWRmVeSWpSXmKPExsVy+t9jAd3la91DDaZNlbA4vOgFo8WVr+/Z LD5MnMlocWryMyaLH68vsFmcbXrDbrF+6TVWi5ufvrFa9GzYymox4/w+Jou1R+6yW6x+VmGx 8Ol3FouFy9rZHPg8pvzeyOqxc9Zddo/73ceZPJa8sfbY8O4dq8eWfqBQ35ZVjB6PLs1h9vi8 Sc7j1NfP7AFcUVw2Kak5mWWpRfp2CVwZmy/PZy/4xV3xeNNv5gbGZq4uRg4OCQETiX3XeLsY OYFMMYkL99azdTFycQgJLGKUOP2nkRnC+cUocf7tCkaQBjYBTYlV9zxAGkQEHCSmbfzBBFLD LLCDSaJ172VmkISwgLnE75Y7jCA2i4CqxMlPh8DivALOEg23NrFBLFaQmDPJBiTMKeAisepP OwuILQRU8mXLf+YJjLwLGBlWMYqmFiQXFCel5xrpFSfmFpfmpesl5+duYgSH8TPpHYyrGiwO MQpwMCrx8J5Y5RYqxJpYVlyZe4hRgoNZSYT3+RL3UCHelMTKqtSi/Pii0pzU4kOM0hwsSuK8 c3TlQoUE0hNLUrNTUwtSi2CyTBycUg2MM69/ZtnRbxooxqY70frwGfe1mhxdfzeW22vPXMy9 SepBpbttYMvFhToHNu5+XZFUFjzFTOFqzbb0MHbWPVFLJrtUxLR33NYr+HvaViSUZa4Vf9aK 5fmGB/XOfPsma9SVy7/F+fii6p1eeUe2MpxUlJbikV8hy3dm13KxCRHeeS8v9Yjas5oqsRRn JBpqMRcVJwIA9sIJJV8CAAA= 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); }; /*