From patchwork Thu Feb 21 09:00:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jian-Hong Pan X-Patchwork-Id: 10823651 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 67F5513A4 for ; Thu, 21 Feb 2019 10:43:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 49822307E5 for ; Thu, 21 Feb 2019 10:43:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 39DBF307F8; Thu, 21 Feb 2019 10:43:01 +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_INVALID, DKIM_SIGNED,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]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B8878307E5 for ; Thu, 21 Feb 2019 10:42:59 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id D2B0E160F; Thu, 21 Feb 2019 11:42:07 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D2B0E160F Authentication-Results: alsa0.perex.cz; dkim=fail reason="signature verification failed" (2048-bit key) header.d=endlessm-com.20150623.gappssmtp.com header.i=@endlessm-com.20150623.gappssmtp.com header.b="eoUiJ14j" Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id CEAD0F8962D; Thu, 21 Feb 2019 11:31:45 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz CEAD0F8962D Authentication-Results: alsa1.perex.cz; dkim=fail reason="signature verification failed" (2048-bit key) header.d=endlessm-com.20150623.gappssmtp.com header.i=@endlessm-com.20150623.gappssmtp.com header.b="eoUiJ14j" X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id D91B7F80745; Thu, 21 Feb 2019 10:00:40 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D91B7F80745 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 9DA23F8069B for ; Thu, 21 Feb 2019 10:00:37 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 9DA23F8069B Received: by mail-pg1-x542.google.com with SMTP id i130so13481853pgd.1 for ; Thu, 21 Feb 2019 01:00:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=R1m01mRNpO95l9CHGYZfqQXTdSHNR3Ewk9hyllOx6q8=; b=eoUiJ14jQe0ndg2YV/q7b0Fn5SXGxzALfyI0fqsn+XgTFgAcQRCBJMSQhcJrt0C+mQ n2qE48bfJqEWRSqe52Mv+Va1DqB5GmWyWHak08hmmRzPy5JqEyQOFiT2oGDESeqLxm3+ SeABWzk11/AGN1JSTPmWhporgd9IHxXSg6lEm21kfbx64bARTdlhyOLROl5/C5d/PDao UIhX/PHR4ZLu1Fz58ts75n3wT5orvY1s48eA4pfoBo2hP1u5/z0cIFDECXmgE0+yM9jF +de9KBvJzYmWBC9DfpOkAOU6V6FLQ5cBu7dNH1/FNlxH2S80yJq2j8t24RcBZzWrzwSO xAjQ== 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:mime-version :content-transfer-encoding; bh=R1m01mRNpO95l9CHGYZfqQXTdSHNR3Ewk9hyllOx6q8=; b=MwNYnL0RFmKUqPtRbSpFZzol3nSdKfLFKYKcKMvPQWVFkGN4EOP0ORZ7Y59Vqz9QpR gZrUmjCIHQWuISNcVrmTGpNOgn9XGLlxTJkj0DujLsEzuUlyJsVEIDrdC5Sjf5CXGvWD K0GIZtROIKogX9Oukypqi1SSL3/3PkVCG3xkLHmhbXUrP/Cgk08jmWRW7JHgFBNEA3rU +14MXjBUXRgosbg7287qM+UZA+TCUvab5sevt/AJeGYizMfoTjuJxWB5R/2IoTB51/Cm 28eqya43VjwJOPm2RNa+PkBLcIRJqlgyUw2DE1989PsQvbzKD4ro3gbLEgrH/1lRE9rG F9ZA== X-Gm-Message-State: AHQUAuYUggICxMBTrd1ZK8n1LlljVpWxO/baI9zXYlZ9WkwK6P4BDK+4 Hzdi/gwrhbUjEDJzEXpeq/RqCg== X-Google-Smtp-Source: AHgI3IaU7UgxxJjFvRtIcWFbRLS/KXuUjKb37qsqQgRe09WkRjgsYAtOv2+TUvtkoCFZP+u53A38xg== X-Received: by 2002:a63:2147:: with SMTP id s7mr26727125pgm.361.1550739635056; Thu, 21 Feb 2019 01:00:35 -0800 (PST) Received: from endless.endlessm-sf.com (123-204-46-122.static.seed.net.tw. [123.204.46.122]) by smtp.gmail.com with ESMTPSA id e63sm40380991pfc.47.2019.02.21.01.00.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Feb 2019 01:00:34 -0800 (PST) From: Jian-Hong Pan To: Takashi Iwai Date: Thu, 21 Feb 2019 17:00:18 +0800 Message-Id: <20190221090018.1428-1-jian-hong@endlessm.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Cc: Jian-Hong Pan , alsa-devel@alsa-project.org, linux@endlessm.com, linux-kernel@vger.kernel.org, Ming Shuo Chiu Subject: [alsa-devel] [PATCH] ALSA: hda/realtek: Enable audio jacks of ASUS UX362FA with ALC294 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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" X-Virus-Scanned: ClamAV using ClamSMTP The ASUS UX362FA with ALC294 cannot detect the headset MIC and outputs through the internal speaker and the headphone. This issue can be fixed by the quirk in the commit 4e0511067 ALSA: hda/realtek: Enable audio jacks of ASUS UX533FD with ALC294. Besides, ASUS UX362FA and UX533FD have the same audio initial pin config values. So, this patch replaces SND_PCI_QUIRK of UX533FD with a new SND_HDA_PIN_QUIRK which benefits both UX362FA and UX533FD. Signed-off-by: Jian-Hong Pan Signed-off-by: Ming Shuo Chiu --- sound/pci/hda/patch_realtek.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 1ffa36e987b4..6421864a8a0f 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6771,7 +6771,6 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x1043, 0x12e0, "ASUS X541SA", ALC256_FIXUP_ASUS_MIC), SND_PCI_QUIRK(0x1043, 0x13b0, "ASUS Z550SA", ALC256_FIXUP_ASUS_MIC), SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK), - SND_PCI_QUIRK(0x1043, 0x14a1, "ASUS UX533FD", ALC294_FIXUP_ASUS_SPK), SND_PCI_QUIRK(0x1043, 0x1517, "Asus Zenbook UX31A", ALC269VB_FIXUP_ASUS_ZENBOOK_UX31A), SND_PCI_QUIRK(0x1043, 0x16e3, "ASUS UX50", ALC269_FIXUP_STEREO_DMIC), SND_PCI_QUIRK(0x1043, 0x1a13, "Asus G73Jw", ALC269_FIXUP_ASUS_G73JW), @@ -7388,6 +7387,10 @@ static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = { {0x14, 0x90170110}, {0x1b, 0x90a70130}, {0x21, 0x04211020}), + SND_HDA_PIN_QUIRK(0x10ec0294, 0x1043, "ASUS", ALC294_FIXUP_ASUS_SPK, + {0x12, 0x90a60130}, + {0x17, 0x90170110}, + {0x21, 0x03211020}), SND_HDA_PIN_QUIRK(0x10ec0294, 0x1043, "ASUS", ALC294_FIXUP_ASUS_SPK, {0x12, 0x90a60130}, {0x17, 0x90170110},