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: 10700275 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 52CB613BF for ; Tue, 27 Nov 2018 11:29:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42A752ADA8 for ; Tue, 27 Nov 2018 11:29:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 36B082ADAF; Tue, 27 Nov 2018 11:29:18 +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=-2.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C3FF42ADA8 for ; Tue, 27 Nov 2018 11:29:16 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 6BC30267AE0; Tue, 27 Nov 2018 12:28:40 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id C2182267A90; Tue, 27 Nov 2018 03:58:44 +0100 (CET) Received: from mail-vk1-f195.google.com (mail-vk1-f195.google.com [209.85.221.195]) by alsa0.perex.cz (Postfix) with ESMTP id 124E32678E4 for ; Tue, 27 Nov 2018 03:58:42 +0100 (CET) Received: by mail-vk1-f195.google.com with SMTP id 197so4711243vkf.4 for ; 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=lNGBtKC+fkQDvfdZ78qqi6D/jSY1AmhFzmpFHkYUadr1udsPSPhHJ5gYeAkokzez+Z ifIF4BAUGkYxebFNBbBpk+av/hG1Cue8oXAdRjKWj8xFbIP/0xpdlEJVSNDByBKpqgi9 3tDtIUN1q890EvAVTl9IeMP/ZIaJgmj1ZsHeW4fNa4yBa3sWArY7Yatz4v2Q1qDj/n2f dIPsZTsUSn7E6XaBGNqoNR1tQLMyI0MyNGjka7d/i8dtyE05Wg7VvCCNnMDHyGopNGnh PANUBBAuuuNpBSHIt0peLBm3R8KUAOa5i+2jxH+Y0JCimIyReCFJCoBz8ImKF/HPTpdq vztg== X-Gm-Message-State: AA+aEWYewKU//7yfisMlqatFqDZOPSgtlZfJDQpGlIrI3Okd4nHQd18s mObVQO350nABFKOFBPqdig== 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 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 X-Mailman-Approved-At: Tue, 27 Nov 2018 12:28:23 +0100 Cc: ayman.bagabas@gmail.com Subject: [alsa-devel] [PATCH v7 3/3] ALSA: hda: add support for Huawei WMI micmute LED X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.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 */