From patchwork Thu Dec 6 08:45:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jian-Hong Pan X-Patchwork-Id: 10715441 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 0EB8613BB for ; Thu, 6 Dec 2018 08:47:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF2552D6CB for ; Thu, 6 Dec 2018 08:47:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E145B2D755; Thu, 6 Dec 2018 08:47: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=-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]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9D8512D6CB for ; Thu, 6 Dec 2018 08:47:41 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 8262C267C59; Thu, 6 Dec 2018 09:47: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 6C855267C61; Thu, 6 Dec 2018 09:47:38 +0100 (CET) Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by alsa0.perex.cz (Postfix) with ESMTP id 9354E267C62 for ; Thu, 6 Dec 2018 09:47:33 +0100 (CET) Received: by mail-pg1-f193.google.com with SMTP id y4so10316865pgc.12 for ; Thu, 06 Dec 2018 00:47:33 -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:in-reply-to:references; bh=8RG9DGsLTky/JZ1in/dz32c6uI7zGn2e292wRTOfLck=; b=UXpJOO4SO7GZI/DQ7E4FBGyvTLWUlSOtMOOYKl5LFLAEcYPBI4WZ+vFL4USuhIJ8SN pv7A1VMiwS74SvoHEysD0xKa8nUpFv3wUraTXm3OrTsrudrjs2MYR6HCivCEu4RuP9Gn W0Za0TfvEmCa235U1LaVkYDYXOFSOKykH7XeArnS5g94D0SsVnSZrM8baVN/7xvqr2th OdSimP/pR+hyvbn+EWgISNPJr7ssXn21VyOBgkF9IbeSVWKaVvPg00hGimzyA+4lBHNt /LrEPAkMr3biRyTtkm7ayl9vCQWzwqCKjMA29SYgHlozvkx4ZGF1f0Rum+9eqmQpMDS1 e8Qw== 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; bh=8RG9DGsLTky/JZ1in/dz32c6uI7zGn2e292wRTOfLck=; b=kh4m9+jfO54KXfE28ubTvZUylm7a6VgRNIzeoAyy1XynWCAYXTsqxuN25dklsU0tWJ OhJRT1ydSLdbkMEwiMACO08jtjMPKAQwQiQJYFVevmf6wWAUiSCT19Y4p0VOQnpBdhdp 4BmW4OshSDB51yLWoegzJ/IXwZoV1rQeknwkMrLOovLJpUMT2kWuXWuFl12sfrm0UguL TcDh68BXL2u7o80f+8OkCvvnqr65j8k83bsq5+zYfzCBIO7Qf2nSInHoCxErkYLze45Q cgB4BESfdWQBmRvwPVjaLPAaJVrnIx3/GdhRgiIqp6pz9xldp+CyXNqZrjl7lKJn9bAf 5GiQ== X-Gm-Message-State: AA+aEWYMn0SFK/PNscTmJskTagAlITzlST1H88jqxdt2Jpc76Cvd8gdp CvBn6l39TqVQqz6PLQGl07J/DA== X-Google-Smtp-Source: AFSGD/XWLt/l/4+Bca9BWtebaQ/o/BfFzQnaeW86KiDQ0wQUUCRZs3dZFY+qM1drarpLLANVinKRtQ== X-Received: by 2002:a62:ed0f:: with SMTP id u15mr26811426pfh.188.1544086052246; Thu, 06 Dec 2018 00:47:32 -0800 (PST) Received: from localhost.localdomain (125-227-158-176.HINET-IP.hinet.net. [125.227.158.176]) by smtp.gmail.com with ESMTPSA id u70sm40484836pfa.176.2018.12.06.00.47.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Dec 2018 00:47:31 -0800 (PST) From: Jian-Hong Pan To: Jaroslav Kysela , Takashi Iwai , Kailang Yang Date: Thu, 6 Dec 2018 16:45:52 +0800 Message-Id: <20181206084554.4728-2-jian-hong@endlessm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181206084554.4728-1-jian-hong@endlessm.com> References: <20181206084554.4728-1-jian-hong@endlessm.com> Cc: alsa-devel@alsa-project.org, Chris Chiu , linux-kernel@vger.kernel.org, Daniel Drake , Hui Wang , Jian-Hong Pan , linux@endlessm.com Subject: [alsa-devel] [PATCH v2 1/3] ALSA: hda/realtek: ALC294 mic and headset-mode fixups for ASUS X542UN 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Chris Chiu The known ALC256_FIXUP_ASUS_MIC fixup can fix the headphone jack sensing and enable use of the internal microphone on this laptop X542UN. However, it's ALC294 so create a new fixup named ALC294_FIXUP_ASUS_MIC to avoid confusion. Signed-off-by: Jian-Hong Pan Signed-off-by: Daniel Drake Signed-off-by: Chris Chiu --- v2: - .chain_id = ALC256_FIXUP_ASUS_HEADSET_MODE ==> change to ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC sound/pci/hda/patch_realtek.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index bb40624fb6d5..d32e50b1ed60 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5517,6 +5517,7 @@ enum { ALC285_FIXUP_LENOVO_HEADPHONE_NOISE, ALC295_FIXUP_HP_AUTO_MUTE, ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE, + ALC294_FIXUP_ASUS_MIC, }; static const struct hda_fixup alc269_fixups[] = { @@ -6403,6 +6404,16 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC269_FIXUP_HEADSET_MIC }, + [ALC294_FIXUP_ASUS_MIC] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x13, 0x90a60160 }, /* use as internal mic */ + { 0x19, 0x04a11120 }, /* use as headset mic, without its own jack detect */ + { } + }, + .chained = true, + .chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -7152,6 +7163,10 @@ static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = { SND_HDA_PIN_QUIRK(0x10ec0293, 0x1028, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE, ALC292_STANDARD_PINS, {0x13, 0x90a60140}), + SND_HDA_PIN_QUIRK(0x10ec0294, 0x1043, "ASUS", ALC294_FIXUP_ASUS_MIC, + {0x14, 0x90170110}, + {0x1b, 0x90a70130}, + {0x21, 0x04211020}), SND_HDA_PIN_QUIRK(0x10ec0295, 0x1028, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE, ALC295_STANDARD_PINS, {0x17, 0x21014020}, From patchwork Thu Dec 6 08:45:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jian-Hong Pan X-Patchwork-Id: 10715443 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 A9DE918A7 for ; Thu, 6 Dec 2018 08:47:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 992282D6CB for ; Thu, 6 Dec 2018 08:47:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8CC5E2D885; Thu, 6 Dec 2018 08:47:52 +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]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E7F92D6CB for ; Thu, 6 Dec 2018 08:47:48 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 00628267C50; Thu, 6 Dec 2018 09:47:43 +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 65189267C60; Thu, 6 Dec 2018 09:47:40 +0100 (CET) Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by alsa0.perex.cz (Postfix) with ESMTP id 57535267C1B for ; Thu, 6 Dec 2018 09:47:36 +0100 (CET) Received: by mail-pl1-f194.google.com with SMTP id u18so11459480plq.7 for ; Thu, 06 Dec 2018 00:47:35 -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:in-reply-to:references; bh=S6UUzWoHrFyUGJvbU54VOfz25vN9tf2hSw8UHUxvJXI=; b=HDiXWWW/VmEZier9CtzOqD+Ex5saTTeEvnHAKzaTxO/N5alVQ5QLp8Vd7iCy9eGVmA n6tZm/HU0uBqPHvh4vbElNkiaqzUAaAbz0DcOHgY/VD2us8CaD0wDpD3lNENBoMDiWGJ HwTKeNcP6r8C7sur4GJhMA9Kphl4s/N27sSjKlVOze0bq3osHbgUf5du1ooSAWQaJoE9 +mrUGa2FDhO9+mMbRetoThuevfvphPgC6HZq5qFLp5XEg2l6B22DbL2RlAx4PAmH1A/6 YKeXcnmyucmS/BnVZDA4udzPXRMP7A4/9ZHpRr72b/7vNHrjwrmCoabRK2te3IFKMZ9E 2qzg== 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; bh=S6UUzWoHrFyUGJvbU54VOfz25vN9tf2hSw8UHUxvJXI=; b=QD4TY7JBcTPz6OK/rGq7ydC4FaB/Av2YmUcjEENoavb87PK7YmLTQFzXlwPlRvsuYh fcN9PMIyzq+6GV4wfiZqjdblna84jZ6R4JG9BfNuW8mg/4QWObAPkAi/2e060vJU12gY xSMe1ibod61sbhFnGzLdugNOKEXcRcOwvlfUfzBMuchye5QsLQRDlCOYFkYUi2XW1xac TMjcO6UnPHZuYU76JHYAPvLH55iLaMn/E0tRKQzdEVFO3InHXn+G2HBqMPqRsJ9QNCIQ d204oUjcqZjtw1pbdlMPDIccVgnnDlTZ59e0vgorNM8at7QHfoogdrKAO4R1SnyjjCBu RfNA== X-Gm-Message-State: AA+aEWbRrSuLwcXF7dvK6YM+jaOS/Z06dbEQle5heeC03VmBRiMZdJop y0TwoVUqfiSmpVTiUyyBHSuBQQ== X-Google-Smtp-Source: AFSGD/VgtRNC6Uf1dmug7UY8H7PIxBOC/oenntAi1xUSpI6h8S1KQV0L4Og57SqRax3de/KJCOJdUQ== X-Received: by 2002:a17:902:9a81:: with SMTP id w1mr26196838plp.19.1544086055035; Thu, 06 Dec 2018 00:47:35 -0800 (PST) Received: from localhost.localdomain (125-227-158-176.HINET-IP.hinet.net. [125.227.158.176]) by smtp.gmail.com with ESMTPSA id u70sm40484836pfa.176.2018.12.06.00.47.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Dec 2018 00:47:34 -0800 (PST) From: Jian-Hong Pan To: Jaroslav Kysela , Takashi Iwai , Kailang Yang Date: Thu, 6 Dec 2018 16:45:53 +0800 Message-Id: <20181206084554.4728-3-jian-hong@endlessm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181206084554.4728-1-jian-hong@endlessm.com> References: <20181206084554.4728-1-jian-hong@endlessm.com> Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Daniel Drake , Hui Wang , Jian-Hong Pan , linux@endlessm.com Subject: [alsa-devel] [PATCH v2 2/3] ALSA: hda/realtek: Enable audio jacks of ASUS UX533FD with ALC294 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP The ASUS UX533FD with ALC294 cannot detect the headset MIC and output through the internal speaker and the headphone until ALC294_FIXUP_ASUS_SPK_NOISE quirk applied. Signed-off-by: Daniel Drake Signed-off-by: Jian-Hong Pan Signed-off-by: Daniel Drake Signed-off-by: Jian-Hong Pan --- v2: - Modify the HDA verbs for UX333FA support - Make a new ALC294_FIXUP_ASUS_HEADSET_MIC quirk for ALC294 chain - .chain_id = ALC256_FIXUP_ASUS_HEADSET_MODE ==> change to ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC sound/pci/hda/patch_realtek.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index d32e50b1ed60..1525bcdf96e8 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5518,6 +5518,8 @@ enum { ALC295_FIXUP_HP_AUTO_MUTE, ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE, ALC294_FIXUP_ASUS_MIC, + ALC294_FIXUP_ASUS_HEADSET_MIC, + ALC294_FIXUP_ASUS_SPK_NOISE, }; static const struct hda_fixup alc269_fixups[] = { @@ -6414,6 +6416,28 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC }, + [ALC294_FIXUP_ASUS_HEADSET_MIC] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x19, 0x01a1113c }, /* use as headset mic, without its own jack detect */ + { } + }, + .chained = true, + .chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC + }, + [ALC294_FIXUP_ASUS_SPK_NOISE] = { + .type = HDA_FIXUP_VERBS, + .v.verbs = (const struct hda_verb[]) { + /* Set EAPD high */ + { 0x20, AC_VERB_SET_COEF_INDEX, 0x10 }, + { 0x20, 0x4c4, 0x20 }, + { 0x20, AC_VERB_SET_COEF_INDEX, 0x40 }, + { 0x20, 0x488, 0x00 }, + { } + }, + .chained = true, + .chain_id = ALC294_FIXUP_ASUS_HEADSET_MIC + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -6556,6 +6580,7 @@ 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_NOISE), 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), From patchwork Thu Dec 6 08:45:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jian-Hong Pan X-Patchwork-Id: 10715445 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 23EC613BB for ; Thu, 6 Dec 2018 08:48:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0EA8B2D6CB for ; Thu, 6 Dec 2018 08:48:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 00EA12D755; Thu, 6 Dec 2018 08:47:59 +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]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C0D7A2D6CB for ; Thu, 6 Dec 2018 08:47:55 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 8941F267C5F; Thu, 6 Dec 2018 09:47:44 +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 926D5267C64; Thu, 6 Dec 2018 09:47:41 +0100 (CET) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by alsa0.perex.cz (Postfix) with ESMTP id 84D85267C61 for ; Thu, 6 Dec 2018 09:47:39 +0100 (CET) Received: by mail-pf1-f193.google.com with SMTP id i12so11437495pfo.7 for ; Thu, 06 Dec 2018 00:47:39 -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:in-reply-to:references; bh=HWmRGnQfB5yREIphnhfXfwNXTJMNE2AWhXB81JcZyh8=; b=UeK85UV8GBvu1k90fFnaBmd7HSQ4JmT8C//3O/hzS8pLoomO+SkgUZj7kQYJKMcBnV V0BIBHEhnGQccN1Rxx4V3GyAwHlPUs2piB8YODUsewTabyiv+nnQCsEvDvBv2Xokf2LJ bIN+9lSHHRfSbJpApESRuRZNsjy7/mIJfh4KA0/NFP/lSV4WmYDQr3Ky1ny33RGhnqA/ IJ9Mibm58SJXdxSN6wnBXxxwaUBuUSIa1qZMPwwRRKXHp0AYo5H6Pp21GMbs5h15dkL2 npl+ulmiNZ6NGzjm2Y5janIdmh9CUKiATXsLXq2LxQtX+nvkN0os4LigpwTQlRotY7uV 7w4A== 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; bh=HWmRGnQfB5yREIphnhfXfwNXTJMNE2AWhXB81JcZyh8=; b=k/9Syq3TXU3Gbc/ZfAOA4sG5mW5UHPJKoeNq8QDpGOHKTn6hhuxayF9Dk8zRP8j13E G1UtuaND6g5Yete5Wq8djQxmIJQKX7LjvsWowqQgjwLrFIDjgSclHeN9+e5X+CzYOjmT o49vm1wiCNOcf0BRoLmnjefVi105hsd9ndle6ahPJofi8WWfCX7Niko8NL7lNGsbi+X7 /Z106XyFFbw4RnGT/93Cg3XTxAljHVZ0vHL8CZjX4qKvDpLk7P4Vi8mwEcxJOFzglbtn Mh8MBvZKMcel51Vy5iIEVqOiaNki7m9/NahU/RKw1v99/ic5llCymnZfTA/m2OJ4kSWu oLwQ== X-Gm-Message-State: AA+aEWaVyds2VPR8ZZJkvfdqllY2LRhAPs/EGGBfaYsbX8I4RAmsYrgF GzkMr0OAOIku/YevDWnOxSSxTg== X-Google-Smtp-Source: AFSGD/XJm8NqEru1gxEeHY1SuILExYi2MFcJqXwa71ieKjyJDcwkfBx/RZqkcvUkSW1x64JfQzrrjw== X-Received: by 2002:a63:4b25:: with SMTP id y37mr24081916pga.181.1544086057881; Thu, 06 Dec 2018 00:47:37 -0800 (PST) Received: from localhost.localdomain (125-227-158-176.HINET-IP.hinet.net. [125.227.158.176]) by smtp.gmail.com with ESMTPSA id u70sm40484836pfa.176.2018.12.06.00.47.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Dec 2018 00:47:37 -0800 (PST) From: Jian-Hong Pan To: Jaroslav Kysela , Takashi Iwai , Kailang Yang Date: Thu, 6 Dec 2018 16:45:54 +0800 Message-Id: <20181206084554.4728-4-jian-hong@endlessm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181206084554.4728-1-jian-hong@endlessm.com> References: <20181206084554.4728-1-jian-hong@endlessm.com> Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Daniel Drake , Hui Wang , Jian-Hong Pan , linux@endlessm.com Subject: [alsa-devel] [PATCH v2 3/3] ALSA: hda/realtek: Enable audio jacks of ASUS UX433FN/UX333FA with ALC294 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP The ASUS UX433FN and UX333FA with ALC294 cannot detect the headset MIC and output through the internal speaker and the headphone until ALC294_FIXUP_ASUS_SPK_NOISE quirk applied. Signed-off-by: Daniel Drake Signed-off-by: Jian-Hong Pan --- v2: - Add UX333FA support. ASUS UX533FD, UX433FN and UX333FA use the same quirk now. sound/pci/hda/patch_realtek.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 1525bcdf96e8..97d1a4aaeccd 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -7192,6 +7192,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_NOISE, + {0x12, 0x90a60130}, + {0x17, 0x90170110}, + {0x21, 0x04211020}), SND_HDA_PIN_QUIRK(0x10ec0295, 0x1028, "Dell", ALC269_FIXUP_DELL1_MIC_NO_PRESENCE, ALC295_STANDARD_PINS, {0x17, 0x21014020},