From patchwork Wed Mar 17 21:59:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonardo Brondani Schenkel X-Patchwork-Id: 404365 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70E1AC433E0 for ; Wed, 17 Mar 2021 22:01:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1E27C64F18 for ; Wed, 17 Mar 2021 22:01:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229545AbhCQWAf (ORCPT ); Wed, 17 Mar 2021 18:00:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229720AbhCQWAG (ORCPT ); Wed, 17 Mar 2021 18:00:06 -0400 Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [IPv6:2001:67c:2050::465:201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A672C06175F for ; Wed, 17 Mar 2021 15:00:05 -0700 (PDT) Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4F13wz3hJZzQjmS for ; Wed, 17 Mar 2021 23:00:03 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schenkel.net; s=MBO0001; t=1616018401; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=uNF1exP9RsY2/Y8bMepXh5FjwO4T9B+EhTMrtBYRNsE=; b=IF1j6vUMgVLJlvpkqJwBJL6dqWEuD1WSD75rawZ8byNCUhAVbrXYcG6Eybz3epRiEHwMLq Iku8I5NFFTfEUgEe3/NajuZzwmCKH+xCUqmchsJl23Ms9I/eYBZxi5H7eKNpWTFiCf/dQu nsveuf5O+x9rnJ9slm4xV5udDI56wh3Lt+t9Gp31XMpKVEOdHZH/Jh+/gMo21vLWRUD0uV FOSdUqZ8NJOEA5a3jpDNQzOUfQaEkIVY46Obx1sFYUL5epDiyUe/v1p2I4dUvTa4bQcqju 6rHdrRrQDClrzR6tzY4FhcMpAYTB/kfm19AA+w9kx98P5NQIXMIuNwbnFYnmSg== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter06.heinlein-hosting.de (spamfilter06.heinlein-hosting.de [80.241.56.125]) (amavisd-new, port 10030) with ESMTP id sEl50GX-MZse for ; Wed, 17 Mar 2021 22:59:57 +0100 (CET) To: linux-media@vger.kernel.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schenkel.net; s=mail; t=1616018396; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=uNF1exP9RsY2/Y8bMepXh5FjwO4T9B+EhTMrtBYRNsE=; b=cqOrrfSZ1AlJNrZr/LkHYafha71Xiq3h2teyPCc0pytOa6A8Pcos+ZqSBht4OLT8M5/n85 8UzyS7T2fnkkmBmC9L4091KDBRh6Cd2BLKPmWZTRv/ZuEHjTPg0CFm7RN3ns7JNqaBmVxo e3OoZoITLEfM0Ub4HT5AmVJEC5yL853isGZo1QmPG/tLpgO994To5brH8rmXIdNIImtxFN nxC1p5vLZ3bI6a10+ftBfQbAJhhz2nvPP83mqisfPmKH/BbY27+iWEbaJfEEZSBhAINnph L+qLIhpkTff2z+lFIWGmw+XRrd2eHtWOs0r7PZo7Imdomsw14VS0mZ27uKdFhA== From: Leonardo Brondani Schenkel Subject: [PATCH] Add extra keys for rc6-mce Message-ID: <288ddcee-15d1-90b7-8d52-4519faa56ea4@schenkel.net> Date: Wed, 17 Mar 2021 22:59:56 +0100 MIME-Version: 1.0 X-MBO-SPAM-Probability: X-Rspamd-Score: -7.00 / 15.00 / 15.00 X-Rspamd-Queue-Id: 47B8917BE X-Rspamd-UID: 61c202 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org (This is my first time sending a patch to this project. I hope I'm doing it right. This is not necessarily meant to be merged as-is.) Over the years I have compiled a list of known MCE remote keys from multiple sources. Unfortunately I have not written down those sources, but I remember that among them there were IR databases such as the one from Logitech Harmony, and also some web pages. I noticed that the RC6-MCE keymap is missing a few of them, so I am submitting a patch to include them. I have a Harmony remote and also a JP1 programmable remote and I personally tested all those keys. I added comments in the diff after the fact to communicate to this list what the buttons are on the remote, so you can know why the specific key was chosen. --- utils/keytable/rc_keymaps/rc6_mce.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/utils/keytable/rc_keymaps/rc6_mce.toml b/utils/keytable/rc_keymaps/rc6_mce.toml index 1ee9c722..672fa763 100644 --- a/utils/keytable/rc_keymaps/rc6_mce.toml +++ b/utils/keytable/rc_keymaps/rc6_mce.toml @@ -44,24 +44,32 @@ variant = "rc6_mce" 0x800f0425 = "KEY_TUNER" 0x800f0426 = "KEY_EPG" 0x800f0427 = "KEY_ZOOM" +0x800f0428 = "KEY_OPEN" # Open/Close +0x800f0429 = "KEY_WAKEUP" # Power on (discrete) +0x800f042a = "KEY_SLEEP" # Power off (discrete) 0x800f0432 = "KEY_MODE" 0x800f0433 = "KEY_PRESENTATION" 0x800f0434 = "KEY_EJECTCD" 0x800f043a = "KEY_BRIGHTNESSUP" +0x800f043b = "KEY_EXIT" # Exit/Close (Alt+F4 in Windows) 0x800f0446 = "KEY_TV" 0x800f0447 = "KEY_AUDIO" 0x800f0448 = "KEY_PVR" 0x800f0449 = "KEY_CAMERA" 0x800f044a = "KEY_VIDEO" +0x800f044b = "KEY_ANGLE" # DVD angle 0x800f044c = "KEY_LANGUAGE" 0x800f044d = "KEY_TITLE" 0x800f044e = "KEY_PRINT" +0x800f044f = "KEY_DISPLAYTOGGLE" # Display 0x800f0450 = "KEY_RADIO" +0x800f0451 = "KEY_TITLE" # Title 0x800f045a = "KEY_SUBTITLE" 0x800f045b = "KEY_RED" 0x800f045c = "KEY_GREEN" 0x800f045d = "KEY_YELLOW" 0x800f045e = "KEY_BLUE" +0x800f0464 = "KEY_GAMES" # Xbox 0x800f0465 = "KEY_POWER2" 0x800f0469 = "KEY_MESSENGER" 0x800f046e = "KEY_PLAYPAUSE"