From patchwork Fri Mar 20 16:52:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamil Debski X-Patchwork-Id: 6058231 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 F0C349F820 for ; Fri, 20 Mar 2015 16:54:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2F8A5202F2 for ; Fri, 20 Mar 2015 16:54:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5A8B120528 for ; Fri, 20 Mar 2015 16:54:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751609AbbCTQyT (ORCPT ); Fri, 20 Mar 2015 12:54:19 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:19191 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751361AbbCTQyQ (ORCPT ); Fri, 20 Mar 2015 12:54:16 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NLI00D2ISAEBKB0@mailout3.samsung.com>; Sat, 21 Mar 2015 01:54:14 +0900 (KST) X-AuditID: cbfee61b-f79d76d0000024d6-2b-550c50b62da1 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id FD.3D.09430.6B05C055; Sat, 21 Mar 2015 01:54:14 +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:14 +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 Subject: [RFC v3 3/9] Input: add key codes specific to the HDMI CEC bus Date: Fri, 20 Mar 2015 17:52:37 +0100 Message-id: <1426870363-18839-4-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+NgFtrCLMWRmVeSWpSXmKPExsVy+t9jQd1tATyhBj+nmFgcXvSC0eLK1/ds FqcmP2Oy+PH6ApvF2aY37BY3P31jtejZsJXVYu2Ru+wWq59VWCx8+p3FYuGydjYHbo+ds+6y e9zvPs7kseSNtceWfiCvb8sqRo9Hl+Ywe3zeJOdx6utn9gCOKC6blNSczLLUIn27BK6MVYsu sxd84Kh4treVvYFxJXsXIyeHhICJxJTrV5khbDGJC/fWs3UxcnEICUxnlFj0+zQzhNPBJPHl YxtQhoODTUBTYtU9D5AGEQEHiWkbfzCB1DAL3GaUmN3wGmyqsIC7xMaeFjCbRUBVYsb0R4wg Nq+Ai8Tsm98YQeZICChIzJlkAxLmFHCVWLvvNQuILQRU0nl/NcsERt4FjAyrGEVTC5ILipPS c430ihNzi0vz0vWS83M3MYLD8pn0DsZVDRaHGAU4GJV4eA+UcocKsSaWFVfmHmKU4GBWEuFt c+cJFeJNSaysSi3Kjy8qzUktPsQozcGiJM6rZN8WIiSQnliSmp2aWpBaBJNl4uCUamAsqj4/ 1VaHg3FB9kMla1aBsC+rLHxkTk233JG9VIRD2m2ulGSo7TNrjUnRJ0++SVe6tl2sjuW1+14e 8+8SN2bdSnv5J2LNVoVfMsUH85cWLeK+ccFM5/UK9jOmK5ZtnOvev/PTu6VRbq/vlpvaHyqf +KqIvXhqsZOScdghvdWLTzx8m+3hU2GhxFKckWioxVxUnAgAnGsJwUcCAAA= 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 The HDMI CEC bus allows device to communicate with one another. This includes sending remote control key codes. Some of key codes defined in the CEC standard are not defined in the input.h. This patch adds the key codes that are missing. Signed-off-by: Kamil Debski --- include/uapi/linux/input.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/uapi/linux/input.h b/include/uapi/linux/input.h index b0a8130..3fc6885 100644 --- a/include/uapi/linux/input.h +++ b/include/uapi/linux/input.h @@ -747,6 +747,18 @@ struct input_keymap_entry { #define KEY_KBDINPUTASSIST_ACCEPT 0x264 #define KEY_KBDINPUTASSIST_CANCEL 0x265 +#define KEY_RIGHT_UP 0x266 +#define KEY_RIGHT_DOWN 0x267 +#define KEY_LEFT_UP 0x268 +#define KEY_LEFT_DOWN 0x269 + +#define KEY_NEXT_FAVORITE 0x270 +#define KEY_STOP_RECORD 0x271 +#define KEY_PAUSE_RECORD 0x272 +#define KEY_VOD 0x273 +#define KEY_UNMUTE 0x274 +#define KEY_DVB 0x275 + #define BTN_TRIGGER_HAPPY 0x2c0 #define BTN_TRIGGER_HAPPY1 0x2c0 #define BTN_TRIGGER_HAPPY2 0x2c1