From patchwork Tue Dec 11 06:01:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ayman Bagabas X-Patchwork-Id: 10723115 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 2B8F46C5 for ; Tue, 11 Dec 2018 06:02:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B9DD2A84E for ; Tue, 11 Dec 2018 06:02:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0FB592A861; Tue, 11 Dec 2018 06:02:38 +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 B3F5A2A84E for ; Tue, 11 Dec 2018 06:02:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726720AbeLKGCc (ORCPT ); Tue, 11 Dec 2018 01:02:32 -0500 Received: from mail-vk1-f196.google.com ([209.85.221.196]:38789 "EHLO mail-vk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728047AbeLKGC1 (ORCPT ); Tue, 11 Dec 2018 01:02:27 -0500 Received: by mail-vk1-f196.google.com with SMTP id w72so3121308vkd.5; Mon, 10 Dec 2018 22:02:26 -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=Z1O5utNgraZKxKcJ5EfoMMJt4kgDWSBxQGiy59Vy5C/9cfemaNWubfO4Py2UPYoE5o LaDu4jdakK/z4Zx0Pp4sPZJN7yePmVYUWbU6ya0Uk2sBl4SV/fCGeWSfe7GFv2GC8j2x i3dB2RUGEZIH+anp4S5fQAuQfTzQd0SqNJcTFQS1Y2Vm03eEuHASjlgqN/1H8dreOUka GnWkxyok22Qe5SAR0fiiCMqe8TwW4EAvMLVgzj/Dwg233ZIdXkdAJx6AfIYYxo8t7kzO Yl2TZgpeQVXgDKyJakKgb+HAq9J0DbrZFypM6Rgp3VmEonDH5XxPk5RfjhxFJ9OFFW6S DWdA== 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=lURbAYb/SG+Pi5sDQO2juuZdecM1fTCi+j1YlhSUvkOHhC9LJJ+gcvLZ23kt2ihIAN UBPCqPEEkOtcsHfYwJyRjFac6U3cJbu5k4tFlVE/5CcpuFZc+0qMIreCo9umDOc5iL3c CZlmP6fBeWDbEsXeXR7dI364S0WbLdMDcllZmUBWyRAy8jhE/RzGV/skPWnuxtGm//MI e9HDwbD4Sxmwdo5w2gtHNNnDZXCH64P6AkpXRvKQ6F5sSIC8XGKYGdv0tZ8loCymdPDV lCdiuudGv0dyEfk1RqCHbADV9G+Yn7hD+Zt8WdPgKCIFMZl3XlivjPXmqr5SxOiyxoSL Y7vg== X-Gm-Message-State: AA+aEWZFpT2IXYiOTxlYuCiz+XmE/ZTLk+qLjWIf9oLzC8ojN7tiZ3fz LhF9n9WYc3r9488h1OLPEg== X-Google-Smtp-Source: AFSGD/Vv0WFqF3cjeLbRbChg1DQAY39tRp7M5uy07YB4PxcjevEj7ilLqee5Kp5fP1xUh0CHa3QHzw== X-Received: by 2002:a1f:34c7:: with SMTP id b190mr6364821vka.55.1544508145996; Mon, 10 Dec 2018 22:02:25 -0800 (PST) Received: from localhost.localdomain ([2601:902:c200:6512:a50b:fc5d:3604:d966]) by smtp.gmail.com with ESMTPSA id a137sm5700765vsd.24.2018.12.10.22.02.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Dec 2018 22:02:25 -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 v10 3/3] ALSA: hda: add support for Huawei WMI micmute LED Date: Tue, 11 Dec 2018 01:01:22 -0500 Message-Id: <20181211060125.28671-4-ayman.bagabas@gmail.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181211060125.28671-1-ayman.bagabas@gmail.com> References: <20181211060125.28671-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 */