From patchwork Fri Nov 2 23:00:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: VDRU VDRU X-Patchwork-Id: 10666279 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6F8A9157A for ; Fri, 2 Nov 2018 23:01:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 498502BD54 for ; Fri, 2 Nov 2018 23:01:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 362E02BDB5; Fri, 2 Nov 2018 23:01:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD5422BD54 for ; Fri, 2 Nov 2018 23:01:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727007AbeKCIKc (ORCPT ); Sat, 3 Nov 2018 04:10:32 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:45882 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726778AbeKCIKc (ORCPT ); Sat, 3 Nov 2018 04:10:32 -0400 Received: by mail-pg1-f193.google.com with SMTP id y4so1144709pgc.12; Fri, 02 Nov 2018 16:01:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xrDSD9WtlQzqFuXrpiHN6oD25iIT2Pl1SJ5Kj67kcw4=; b=JUw3WKyl6KU5pmlyurz9mTWMdaffKsHru466NIlk3HpWb+jG87GXVWOgHO8hiyDzhY v1xOsdnvQFxqtWhRqROAVihKMFun0x7KD7y01XedEAwbCljEpvKiwy+0DWkDYwK1rVgv 3uw9G9DqP/rQXkuUVzluOamlSba6lDDrwEq6gPa5bx/+so0xjLO5NUuoghaMRc2hYpig ReRjsBCgpTel7acErwZC8r3OmaCB9ehSI2nkehjxaqGhKbnPFYW+W7FUQRonFnEQKN+e NgVlps0YrK0o45tJmS7u+nfw9MK+XyoJ0LBF5ESYJA9J18rJvooAg+kMP4+XtOIq3iJs hbQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xrDSD9WtlQzqFuXrpiHN6oD25iIT2Pl1SJ5Kj67kcw4=; b=JNZc6uJXJdBjn+88dcq40h2wWX+ZFJcyw5iu5TMlvhuLq+y7gsJ+xbKDY4/BUor2Mk haj0QwjWBVI1A5rp825D/KaK7gtPXHGjn/Zqu1RWd615Yw4lnpHoUTpO1kMvXM5zz+mp sSQhLvx7jDD5l0HLpkW0UCdHgVosR84zMTJKJeTwQDaJmAH3qPlL5Y6gV4GBW7JCZ32E fYTqJvTwDRrtjDdoEUg3RgErhBXDk9DohRU51FUMHQWq2c5yajljemStkK155OaOZKki PxyxtiP8dOiEVlcelx6GC/Fde3KJvcNhn8+DpFpFrshA9+fRBKBmNfsbsMDps6FsKCaS ixIw== X-Gm-Message-State: AGRZ1gLbS5B3BL/wAwKDG5qMjwhkiG2S/AcxzQoFbT8LMFQ3vgOsV/pn Sc4DDeeYWY2iSCqm5aTs3OUVqPv3qPQ= X-Google-Smtp-Source: AJdET5fCeknNY7uRJV4YMcB6WdvxTQRSzh1SrV7+OlhWadULYZJhBKl3Bfz4HdwdZfEt4vPTBRQA7g== X-Received: by 2002:a63:6ac5:: with SMTP id f188mr12627124pgc.165.1541199687380; Fri, 02 Nov 2018 16:01:27 -0700 (PDT) Received: from nuc.Home (97-126-11-229.tukw.qwest.net. [97.126.11.229]) by smtp.gmail.com with ESMTPSA id v20-v6sm64563332pfj.107.2018.11.02.16.01.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Nov 2018 16:01:26 -0700 (PDT) From: Derek Kelly To: linux-input@vger.kernel.org Cc: sean@mess.org, mchehab+samsung@kernel.org, linux-media@vger.kernel.org Subject: [PATCH] Input: Add missing event codes for common IR remote buttons Date: Fri, 2 Nov 2018 16:00:04 -0700 Message-Id: <20181102230004.29285-1-user.vdr@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The following patch adds event codes for common buttons found on various provider and universal remote controls. They represent functions not covered by existing event codes. Once added, rc_keymaps can be updated accordingly where applicable. Signed-off-by: Derek Kelly --- include/uapi/linux/input-event-codes.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h index 53fbae27b280..c68d022163e5 100644 --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -689,6 +689,19 @@ #define BTN_TRIGGER_HAPPY39 0x2e6 #define BTN_TRIGGER_HAPPY40 0x2e7 +/* Remote control buttons found across provider & universal remotes */ +#define KEY_LIVE_TV 0x2e8 /* Jump to live tv viewing */ +#define KEY_OPTIONS 0x2e9 /* Jump to options */ +#define KEY_INTERACTIVE 0x2ea /* Jump to interactive system/menu/item */ +#define KEY_MIC_INPUT 0x2eb /* Trigger MIC input/listen mode */ +#define KEY_SCREEN_INPUT 0x2ec /* Open on-screen input system */ +#define KEY_SYSTEM 0x2ed /* Open systems menu/display */ +#define KEY_SERVICES 0x2ee /* Open services menu/display */ +#define KEY_DISPLAY_FORMAT 0x2ef /* Cycle display formats */ +#define KEY_PIP 0x2f0 /* Toggle Picture-in-Picture on/off */ +#define KEY_PIP_SWAP 0x2f1 /* Swap contents between main view and PIP window */ +#define KEY_PIP_POSITION 0x2f2 /* Cycle PIP window position */ + /* We avoid low common keys in module aliases so they don't get huge. */ #define KEY_MIN_INTERESTING KEY_MUTE #define KEY_MAX 0x2ff