From patchwork Mon Dec 3 18:53:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ayman Bagabas X-Patchwork-Id: 10710375 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 9C2E61057 for ; Mon, 3 Dec 2018 18:54:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F86229416 for ; Mon, 3 Dec 2018 18:54:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 82C4F2951A; Mon, 3 Dec 2018 18:54:10 +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 3002F29416 for ; Mon, 3 Dec 2018 18:54:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726870AbeLCSyG (ORCPT ); Mon, 3 Dec 2018 13:54:06 -0500 Received: from mail-yb1-f194.google.com ([209.85.219.194]:37783 "EHLO mail-yb1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726958AbeLCSyD (ORCPT ); Mon, 3 Dec 2018 13:54:03 -0500 Received: by mail-yb1-f194.google.com with SMTP id w129-v6so4162913ybe.4; Mon, 03 Dec 2018 10:54:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dGPxibAY8ZyyYRmZa+UWB/0XnyEXDhHmRXiLVIHOJb4=; b=aXsAypMTrfRfIPjvz5IwAzeNhaJcGmod2SyKelpq/KwuLKSJX6f9JyY2LqjhYhfDtg psTEHFXh0ZklSZBX3MMQBWUdASShFuklUo2jjPPi61AM9IJhr0262Nsrs7c92nqpqwCJ 5O7jVj7y9M4lbu7bkZfAZYP40Z3U4aeDTY/wW13PQIcirhmGVLHAASu1EAGPhRwThUoo Hxs6CzQ1CGOC88FxC3dU08CE2qtmMGOfZiqRoBw3VJDLYOrfZnJYx8iuRiFslz9aEMXr wi3ryodXtwL313uOSOycJi4JnekuE2ZPLDuRlnKUgLdNLRGv6acC7dTPFWpeBJKMa/I4 oADQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=dGPxibAY8ZyyYRmZa+UWB/0XnyEXDhHmRXiLVIHOJb4=; b=kVPFpD8fya/ith92FcPlQDVG/B/htWCqKlUTVyUZQmdlWrHbJ2mfEFBP+h8d98SUgA Apq9dDgG8gqlkPZs2NP3Di0QcCvkTYrqM62Fr7RMjmH3Nuvh1G2uCHqCB2N3XqPElUwr snmieIbl2/GOf2wEGRgMEwbtbrNks3tbzBx/WO/tz6JlN+beSUC/KH4d4OmZq6goRgP7 f5sf9DsW0EN7P/Uj5LYidUOge+mvqhXbXZ0saUzLVo8fCij7R5k/7v+BwuI9nh6UPumB pd38uMx6KDFXwtyDjqGkkY4OTcDXo7JvFScZadM/yutjSzECVCtyrfRl/SQ7G4QqUld6 NnZA== X-Gm-Message-State: AA+aEWavR1geHktdiWExm+toq2RSo/v2WtPFDJimQ7//ra1WMy1w6qHk /1LFlloL3GEd3+z+5foHtA== X-Google-Smtp-Source: AFSGD/UFhf5h+2WMSg80WKrmrTIjtbpxqWN2IjXfANBrewHBoSu4VDD9hyx62q4baS+mUhTTXIGxpg== X-Received: by 2002:a25:a309:: with SMTP id d9-v6mr16384226ybi.27.1543863240472; Mon, 03 Dec 2018 10:54:00 -0800 (PST) Received: from 960.armstrong.edu ([130.254.104.55]) by smtp.gmail.com with ESMTPSA id u132sm4842769ywc.11.2018.12.03.10.53.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Dec 2018 10:54:00 -0800 (PST) From: Ayman Bagabas To: Darren Hart , Andy Shevchenko , Jaroslav Kysela , Takashi Iwai , Kailang Yang , Hui Wang , linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, alsa-devel@alsa-project.org Cc: ayman.bagabas@gmail.com Subject: [PATCH v9 3/3] ALSA: hda: add support for Huawei WMI micmute LED Date: Mon, 3 Dec 2018 13:53:40 -0500 Message-Id: <20181203185344.3521-4-ayman.bagabas@gmail.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181203185344.3521-1-ayman.bagabas@gmail.com> References: <20181203185344.3521-1-ayman.bagabas@gmail.com> MIME-Version: 1.0 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 Some of Huawei laptops come with a LED in the micmute key. This patch enables the use of micmute LED for these devices: 1. Matebook X (19e5:3200), (19e5:3201) 2. Matebook X Pro (19e5:3204) Reviewed-by: Takashi Iwai Signed-off-by: Ayman Bagabas --- sound/pci/hda/patch_realtek.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 1326f32f4574..9766fd249bdf 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5776,7 +5776,9 @@ static const struct hda_fixup alc269_fixups[] = { {0x1e, 0x411111f0}, {0x21, 0x04211020}, { } - } + }, + .chained = true, + .chain_id = ALC255_FIXUP_MIC_MUTE_LED }, [ALC269_FIXUP_ASUS_X101_FUNC] = { .type = HDA_FIXUP_FUNC, @@ -6608,6 +6610,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x17aa, 0x511f, "Thinkpad", ALC298_FIXUP_TPT470_DOCK), SND_PCI_QUIRK(0x17aa, 0x3bf8, "Quanta FL1", ALC269_FIXUP_PCM_44K), SND_PCI_QUIRK(0x17aa, 0x9e54, "LENOVO NB", ALC269_FIXUP_LENOVO_EAPD), + SND_PCI_QUIRK(0x19e5, 0x3200, "Huawei MBX", ALC255_FIXUP_MIC_MUTE_LED), + SND_PCI_QUIRK(0x19e5, 0x3201, "Huawei MBX", ALC255_FIXUP_MIC_MUTE_LED), SND_PCI_QUIRK(0x19e5, 0x3204, "Huawei MBXP", ALC256_FIXUP_HUAWEI_MBXP_PINS), SND_PCI_QUIRK(0x1b7d, 0xa831, "Ordissimo EVE2 ", ALC269VB_FIXUP_ORDISSIMO_EVE2), /* Also known as Malata PC-B1303 */