From patchwork Thu Apr 11 05:44:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yurii Pavlovskyi X-Patchwork-Id: 10895111 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 34B0A139A for ; Thu, 11 Apr 2019 05:44:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 17E47288BB for ; Thu, 11 Apr 2019 05:44:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 079D528AAA; Thu, 11 Apr 2019 05:44:40 +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 91111288BB for ; Thu, 11 Apr 2019 05:44:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726121AbfDKFoj (ORCPT ); Thu, 11 Apr 2019 01:44:39 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:33898 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbfDKFoi (ORCPT ); Thu, 11 Apr 2019 01:44:38 -0400 Received: by mail-wm1-f66.google.com with SMTP id r186so1100213wmf.1; Wed, 10 Apr 2019 22:44:37 -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=4uFFVBqY+BLq6hdKHC/8AnbyjQkZjE6sJfMEtU4xltw=; b=EzNrVb7nfu8zkfDNqW18F+GjBT5aa8oJwiXDSM04MQ3fbcUEQPu3V26agtYVB3Wso1 juJpMGU1p5oFQqWIIVmXz8l99YxmyUxG5Lem/NDfsahDheZXEM34YHFe4nTJiFm3IDYx y3TRtkETAcsV1x5CAYx4J+2vukkA40Yn1aXBeGPuYPHyC5MjsNOrCAK40X3lV6BmvIxw M62aqRTT0xXtjaMz5vj+gmb6bmL+ruCpi9ue0ngFUnPuuPhG98si06ckpvav6vwPUDsT m2cNRN1YW7BECeOXnRQ/rh2YBJlA0UY+oFAWQKs3jPiulh8qvPMohbDdhtcvXv1J9XzS m4UQ== 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=4uFFVBqY+BLq6hdKHC/8AnbyjQkZjE6sJfMEtU4xltw=; b=UFRhKeNJ2oOT22v5aqYxtKbun19ALO2EotW8n3QgDX0yfCQyDTZzQGIs0O6nHBeXL5 SJd5Tbsd39DnwF6ZWBjkS0gvgkMOO1gc2YZ2X3H0tSVHH8PokaAybb0GOwXjYRtRnqqf Px0bqjZVHCb8kRLZyRFgcpI1N2Nt/C+gVqvdHjqgHsh1+tSuFVeZXSXruy6jooM9GSej UsY9D+wXEj1+hs9nTD4KSQom/rwDUnAg4yfdNw4RTX3DnqR8Li91qYRyq3MvTBhBDtxy 0COv863eeY6P8tXc+dio3PLiyp6Te6CHQCRQQTA+BfgEoa5mhHmFQbJ7y9N3mKALxbEM dorg== X-Gm-Message-State: APjAAAWswlI9uHxHkPDHiiY/RRdkrVIjhVwxTXfzfGNMKLOZpSvXzp3x NH4N0P/Ey5IxpuD8xLwfEou3mBKPDDQ= X-Google-Smtp-Source: APXvYqyH5IdmvFe1emBpF5q0iM3ScSrSJtS8uhsSX9cjNT2Piz3GWUTs1eN0vdeQQFXcXUIzgNnJxQ== X-Received: by 2002:a1c:9d46:: with SMTP id g67mr4840675wme.99.1554961476866; Wed, 10 Apr 2019 22:44:36 -0700 (PDT) Received: from [192.168.20.141] ([194.99.104.18]) by smtp.gmail.com with ESMTPSA id r30sm120500551wrr.46.2019.04.10.22.44.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Apr 2019 22:44:36 -0700 (PDT) Subject: [PATCH v2 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: Message-ID: <0a14ebbd-fb8d-6af5-a3d9-6d92f8c086b3@gmail.com> Date: Thu, 11 Apr 2019 07:44:34 +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: 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 that is present on FX505GM laptop and possibly others is missing from sparse keymap. Add the missing code. Also comment on the fan mode switch key that 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 357d273ed336..39cf447198a9 100644 --- a/drivers/platform/x86/asus-nb-wmi.c +++ b/drivers/platform/x86/asus-nb-wmi.c @@ -474,6 +474,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 } }, @@ -488,7 +489,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 */