Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F4A9C636CC for ; Tue, 31 Jan 2023 15:03:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232538AbjAaPDY (ORCPT ); Tue, 31 Jan 2023 10:03:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232524AbjAaPBy (ORCPT ); Tue, 31 Jan 2023 10:01:54 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6419054238; Tue, 31 Jan 2023 07:00:48 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E3B97B81D54; Tue, 31 Jan 2023 15:00:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBF02C433D2; Tue, 31 Jan 2023 15:00:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675177245; bh=jpHRo+d8rMROvp+SBrqoTcJj1Ok4qJE42F0Z7PV3djM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q6gnmxHOQ6y1J33oI/QM54mnLNLi9XQmh0A/UsOmhhfWfsR1Za8z/jNXl/ZbiZhfa tdqztuoYMBVreC1GWPAnc90Q233knmSk84Mi+fjMUeiYagIERuVRoVKnZsrZ4/Pm+z 2fh4xnS38mX1kmjFlF7IYz/ESkwa9uLjK1fikMb/ncTQW/jLOQ5v669pY+WJCRBRnN 0bNc60gSn8+9VqyDVovs3r+TVKe65bu49u5fwYBF578H7Qtx6rJbEwMAohuEzhcRrg Z3NzbeLIb3FqTVh+gbFkpdPAaUL7GsDnoNgucME5IIPmS0tGwOKlxx315QlblqpNLM hfa3/Ip4byXPQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Koba Ko , Hans de Goede , Sasha Levin , mjg59@srcf.ucam.org, pali@kernel.org, markgross@kernel.org, platform-driver-x86@vger.kernel.org Subject: [PATCH AUTOSEL 5.15 08/12] platform/x86: dell-wmi: Add a keymap for KEY_MUTE in type 0x0010 table Date: Tue, 31 Jan 2023 10:00:26 -0500 Message-Id: <20230131150030.1250104-8-sashal@kernel.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230131150030.1250104-1-sashal@kernel.org> References: <20230131150030.1250104-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Koba Ko [ Upstream commit 83bcf3e52e9cfc727df33f1055ef0618c91719d0 ] Some platforms send the speaker-mute key from EC. dell-wmi can't recognize it. Add a new keymap for KEY_MUTE in type 0x0010 table. Signed-off-by: Koba Ko Link: https://lore.kernel.org/r/20230117123436.200440-1-koba.ko@canonical.com Reviewed-by: Hans de Goede Signed-off-by: Hans de Goede Signed-off-by: Sasha Levin --- drivers/platform/x86/dell/dell-wmi-base.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/platform/x86/dell/dell-wmi-base.c b/drivers/platform/x86/dell/dell-wmi-base.c index 089c125e18f7..b83d6fa6e39b 100644 --- a/drivers/platform/x86/dell/dell-wmi-base.c +++ b/drivers/platform/x86/dell/dell-wmi-base.c @@ -260,6 +260,9 @@ static const struct key_entry dell_wmi_keymap_type_0010[] = { { KE_KEY, 0x57, { KEY_BRIGHTNESSDOWN } }, { KE_KEY, 0x58, { KEY_BRIGHTNESSUP } }, + /*Speaker Mute*/ + { KE_KEY, 0x109, { KEY_MUTE} }, + /* Mic mute */ { KE_KEY, 0x150, { KEY_MICMUTE } }, -- 2.39.0