From patchwork Fri Apr 19 10:11:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yurii Pavlovskyi X-Patchwork-Id: 10909561 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 48C4C14DB for ; Fri, 19 Apr 2019 19:07:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3ADE628DFA for ; Fri, 19 Apr 2019 19:07:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2DD4A28DFC; Fri, 19 Apr 2019 19:07:18 +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 BF80028DFA for ; Fri, 19 Apr 2019 19:07:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726336AbfDSTHR (ORCPT ); Fri, 19 Apr 2019 15:07:17 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:40673 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727267AbfDSTHR (ORCPT ); Fri, 19 Apr 2019 15:07:17 -0400 Received: by mail-wr1-f65.google.com with SMTP id h4so7945315wre.7; Fri, 19 Apr 2019 12:07:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:cc:references:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=BK+hMQZhbc01flr8GR70aSzxt77OZF9p21PsIdL24yQ=; b=Sx7Zd1DLOo8hWgAsVsWBEFYxGJ+IXXaZr0PLYzzRRCQXJ5JeAwNRUdfFhAC26v4Fyz 5zmFj00NwG/77nthJEY6t7pYt/IaRgMc6VnBqDuEq/bzrj3Rb+3ey6gHTk6XBPZgIyPD yRxzNHQ9sEkCHkMghSYSKmO6j+JLq1holWnksi1TAZk7GQKz8kxL1kqlVVGQmlMNuCtS uck2v2limBP8lqH/ZD+67qyjPgclF1ndHLFMVKKO8vLQIee/2D5OxcONZLQDnElitV9w 80Hw5yRTtE0nwBdv1sCZ9LBZS8OVTfhAaeRDfd+OKe1NltnyO/dXh4t+h+qHQMwgfZrZ +iQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BK+hMQZhbc01flr8GR70aSzxt77OZF9p21PsIdL24yQ=; b=qvHsBiijj2CPkiAnxJT30XzWNeBBTSoQsTM20alWmZyJqkGeZSP5GGMPZUSZW8vyQm UTlS85nZeetSecEC8dlGwAX/qSK/asZDEPovLWU5HkHx7RPjyglJkmzZf4QbCb/+K3+s QdyOYFG1qbeaZTCiI+FG5QPJtQRH/nYm+OR8MQ1Wm6SixaBh+TObCTM+ZiJv4pyS6NrM 8gdCgyfthurjidHJjNDTIoJMAENkS6+GptGWMesHy2HrjjWcZdCyQJyvytebYsXgWPBd 6pnUEcwtknugAOi9zwmKTAvpnatL4ndjeOjE8GwHjq6Rtvb/y2FD2mcWIZEMiJVitoyE lUyA== X-Gm-Message-State: APjAAAUBC9Yd2k3eVC/WfpoYmkXKvXyJe5A6oItuNqeyD6IgS1aJm+po ont149O51+3AeFmem9TumNsar462uls= X-Google-Smtp-Source: APXvYqzmbJn0qxXoGUnseuwmlY339mJox3Bzk9jmKHxmC6rhGfq0VwFaEAohsbCt/unMcwdeDKV55Q== X-Received: by 2002:adf:f78c:: with SMTP id q12mr2349078wrp.172.1555668700232; Fri, 19 Apr 2019 03:11:40 -0700 (PDT) Received: from [192.168.20.141] ([194.99.104.18]) by smtp.gmail.com with ESMTPSA id x5sm3680563wru.12.2019.04.19.03.11.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Apr 2019 03:11:39 -0700 (PDT) Subject: [PATCH v3 06/11] platform/x86: asus-nb-wmi: Add microphone mute key code From: Yurii Pavlovskyi Cc: Corentin Chary , Darren Hart , Andy Shevchenko , Daniel Drake , acpi4asus-user@lists.sourceforge.net, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org References: <7acd57fe-604a-a96a-4ca2-a25bc88d6405@gmail.com> Message-ID: <27f68b4c-69bf-2129-955e-3a686848fe32@gmail.com> Date: Fri, 19 Apr 2019 12:11:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <7acd57fe-604a-a96a-4ca2-a25bc88d6405@gmail.com> Content-Language: en-US To: unlisted-recipients:; (no To-header on input) Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The microphone mute key is missing from sparse keymap. It is present on FX505GM and possibly other laptops. Add the missing code. Also, comment on the fan mode switch key, which has the same code as the already used key. Signed-off-by: Yurii Pavlovskyi --- drivers/platform/x86/asus-nb-wmi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c index b6f2ff95c3ed..d2399ce0b3cd 100644 --- a/drivers/platform/x86/asus-nb-wmi.c +++ b/drivers/platform/x86/asus-nb-wmi.c @@ -468,6 +468,7 @@ static const struct key_entry asus_nb_wmi_keymap[] = { { KE_KEY, 0x6B, { KEY_TOUCHPAD_TOGGLE } }, { KE_IGNORE, 0x6E, }, /* Low Battery notification */ { KE_KEY, 0x7a, { KEY_ALS_TOGGLE } }, /* Ambient Light Sensor Toggle */ + { KE_KEY, 0x7c, { KEY_MICMUTE } }, { KE_KEY, 0x7D, { KEY_BLUETOOTH } }, /* Bluetooth Enable */ { KE_KEY, 0x7E, { KEY_BLUETOOTH } }, /* Bluetooth Disable */ { KE_KEY, 0x82, { KEY_CAMERA } }, @@ -482,7 +483,7 @@ static const struct key_entry asus_nb_wmi_keymap[] = { { KE_KEY, 0x92, { KEY_SWITCHVIDEOMODE } }, /* SDSP CRT + TV + DVI */ { KE_KEY, 0x93, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + CRT + TV + DVI */ { KE_KEY, 0x95, { KEY_MEDIA } }, - { KE_KEY, 0x99, { KEY_PHONE } }, + { KE_KEY, 0x99, { KEY_PHONE } }, /* Conflicts with fan mode switch */ { KE_KEY, 0xA0, { KEY_SWITCHVIDEOMODE } }, /* SDSP HDMI only */ { KE_KEY, 0xA1, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + HDMI */ { KE_KEY, 0xA2, { KEY_SWITCHVIDEOMODE } }, /* SDSP CRT + HDMI */