From patchwork Sat Nov 3 14:55:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: VDRU VDRU X-Patchwork-Id: 10666671 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 C2C2214BD for ; Sat, 3 Nov 2018 14:57:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A20302A700 for ; Sat, 3 Nov 2018 14:57:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 910C52A78E; Sat, 3 Nov 2018 14:57:20 +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 0CDCB2A700 for ; Sat, 3 Nov 2018 14:57:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726713AbeKDAIu (ORCPT ); Sat, 3 Nov 2018 20:08:50 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:45629 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725939AbeKDAIu (ORCPT ); Sat, 3 Nov 2018 20:08:50 -0400 Received: by mail-pl1-f193.google.com with SMTP id o19-v6so2331277pll.12; Sat, 03 Nov 2018 07:57:16 -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=bCaemQioLVVyucQqEufa6/gxGt30jAFBgmlcWDq2O10=; b=NqCYSTeKrybAZp40kcQ9q/0g77eLOuyhEXH5p7uUSW3j1WhIsWOGCA6PtJaVwms7mr 4SLwRNMXcbZZTKGWlWBydRwzV8ta6nETolOfo9kKU9EC7VFIHGeLJlLbwBKy8FGK43ng C7DAnlc6dnHkkbsPwsHL/wDcRcfPiUGY/7pbpMHWiJ0UVTUA78G/7O/r3MsdaqULCstf nGmyYnE93lRJNEQ12BA116SkhJGfPtqIdvo05PtVQLDdIOqlDE3zwhdhIdcXM/mjcjua NvYjR+bi7OciZVrRMR6b8fEIOdhj9lCeMcjiC69ZnK0UlW4Ruvx8kolkf2LRN5WmmZLQ WZ4g== 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=bCaemQioLVVyucQqEufa6/gxGt30jAFBgmlcWDq2O10=; b=KgseJc+vu3OsYQqpE3w5EIIox8uRL3KU/T0qSSwU8tDhGL4muma798qc8i73gOGNeV KU9h1Of7lY7YLDu/u13ihFZFT/UTnVu0fnXxnz2yd5f0cTnEotauUBUVAEdshI+6zTYT 4zPublUVIbxbyNxMbdhf1rV4XMsluVeCpH9qjXwm6j9xqhlca7lI5Dwi0ph+43V48XbA PeaBPaad8aoh6lxKBbQWSMcGk8ZRo54dSDjXxxMJKl6/6okhpwOCUmh66IZLJ2GOHTPq Xalr+pFTFnrbF3S0vYKEOQtHWsmWdxz2C6/SCB6+Pra7V0yZI/g9gZXWWrcccVo1x1PD NA0Q== X-Gm-Message-State: AGRZ1gKnSSIox3Nao0IC86Jj3xikyu+YEhZrXAu6irpM+A5wtLkJRSfK XtttolH8ZtvHR2joNMbqdu6Wt/+7VNU= X-Google-Smtp-Source: AJdET5fgIHkW78iR+U/W5IPpkKiGxaB+ttNS8Qwdd1r/QIctMdnKvAYElvxAQe+u37YO7oZwc5L4iw== X-Received: by 2002:a17:902:aa09:: with SMTP id be9-v6mr15702721plb.255.1541257036157; Sat, 03 Nov 2018 07:57:16 -0700 (PDT) Received: from nuc.Home (97-126-11-229.tukw.qwest.net. [97.126.11.229]) by smtp.gmail.com with ESMTPSA id z6-v6sm467880pfb.77.2018.11.03.07.57.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Nov 2018 07:57:14 -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 v2] Input: Add missing event codes for common IR remote buttons Date: Sat, 3 Nov 2018 07:55:32 -0700 Message-Id: <20181103145532.9323-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. v2 changes: Renamed KEY_SYSTEM to KEY_SYSTEM_MENU to avoid conflict with powerpc KEY_SYSTEM define. Signed-off-by: Derek Kelly Reviewed-by: Sean Young --- 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..a15fd3c944d2 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_MENU 0x2ed /* Open systems menu/display */ +#define KEY_SERVICES 0x2ee /* Access services */ +#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