From patchwork Tue Nov 27 02:57:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ayman Bagabas X-Patchwork-Id: 10699601 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 4ADA5109C for ; Tue, 27 Nov 2018 02:58:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A6032A263 for ; Tue, 27 Nov 2018 02:58:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2E3962A275; Tue, 27 Nov 2018 02:58:45 +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 C6D102A263 for ; Tue, 27 Nov 2018 02:58:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728458AbeK0NzE (ORCPT ); Tue, 27 Nov 2018 08:55:04 -0500 Received: from mail-vk1-f194.google.com ([209.85.221.194]:45017 "EHLO mail-vk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727741AbeK0NzD (ORCPT ); Tue, 27 Nov 2018 08:55:03 -0500 Received: by mail-vk1-f194.google.com with SMTP id h128so4706754vkg.11; Mon, 26 Nov 2018 18:58:42 -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=mCEDsDAx5PMCLS87mnomliQo7+OlS9XDiZToeHzkvd8=; b=NvlcDETU+DWyHXNwBiLHi3OHhcsXabUgFEbnVGVUdeu9F4l/y5KKXbluiz78ycq2Nk gA5NklpaCC7QTzNgPA82r1UkEg4VFEDF1JIMKfMP+IBjFfmIg5ex/6NvY0S0H7Dddszr Gkx6e0zxbgcWnVDV42PhEApBpT0XXK/p71SSkSRf8kP6ud0UmD+a71S0+xEoeIdLoolC L6/XUntY9CRr2phmWQsXlWfaPz3f1OXB34cPPmoroBIQ1CHxXZyFojpPSFaQ+QRP5+Rz dE2pMBzW+rLNTycc3Aa6FCxo3XarEFgb51SxbyciYcqYTIqgKKDd6PklHs/+7/33Pofi Z2dg== 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=mCEDsDAx5PMCLS87mnomliQo7+OlS9XDiZToeHzkvd8=; b=PZBQaiT0nC7tsfm9sYctC8mxeM+hg3vVPLWkisFMfxpC1Ki5ZFAedmhcezIiilXqtq BB6pTJHd/W8cyJwRq1xpPYbQK/IKQOFUNwA1lxoI9szh5li2sL4TbwKrI1YuAa8o5gDQ Xant3A/jFpDAkOqWVKV6uXDKirEvHxaIA/PyWzguEGqaaTXI0JcvBX2WVgNXdTJiCFxu JGlE+i8wdPJN1vvqi171IqIEzpHJM/3yWSVCAu6VvZek66pPAKn36XN0SzHa+pa+OG7o U8l3Mjc7bDKincZvOKDJrD8UAX/rUr75tD3hNbSYNywZ4e1FzUettHMSn3CX2WvWl1Wn 3l8A== X-Gm-Message-State: AA+aEWYSdFjvqDXHU6NjxjuMq9met3LWapw0n/BGasmC9T/2491j+ceO kZpcVE4lwjgbTbNEellTgg== X-Google-Smtp-Source: AFSGD/VdBLBPuLViUa96UjMCBUQVzuOBhgi91MUNiQWKVY2T53oUgUzPtotLpWAQQe/n6N9NDk8YoQ== X-Received: by 2002:a1f:6184:: with SMTP id v126mr12308012vkb.69.1543287521706; Mon, 26 Nov 2018 18:58:41 -0800 (PST) Received: from localhost.localdomain ([2601:902:c200:6512:a50b:fc5d:3604:d966]) by smtp.gmail.com with ESMTPSA id j82sm1006934vsd.23.2018.11.26.18.58.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Nov 2018 18:58:41 -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 v7 3/3] ALSA: hda: add support for Huawei WMI micmute LED Date: Mon, 26 Nov 2018 21:57:49 -0500 Message-Id: <20181127025752.6459-4-ayman.bagabas@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181127025752.6459-1-ayman.bagabas@gmail.com> References: <20181127025752.6459-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) 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 */