From patchwork Fri Dec 7 09:17:11 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: 10717723 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 06E1717DB for ; Fri, 7 Dec 2018 09:18:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E8F7E296BE for ; Fri, 7 Dec 2018 09:18:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC9302DDF7; Fri, 7 Dec 2018 09:18:50 +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 708122DEAD for ; Fri, 7 Dec 2018 09:18:49 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id CE635267CF4; Fri, 7 Dec 2018 10:18:47 +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 138AC267CF4; Fri, 7 Dec 2018 10:18:45 +0100 (CET) Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by alsa0.perex.cz (Postfix) with ESMTP id A8910267CC9 for ; Fri, 7 Dec 2018 10:18:42 +0100 (CET) Received: by mail-pf1-f194.google.com with SMTP id b7so1655255pfi.8 for ; Fri, 07 Dec 2018 01:18:42 -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=QniBzZD27SoXdO3YyqD8EzdpoNuFYSuhO97zOyE0Cl10I5yYmmFx5BiiFL9+zyZFfu c+9dUFVcm9fADa9urt4hnWJRk+WUh1M6M1pYnlPKgRFFWg+G47rVea9vf7cVeQWGsEzS oPdVtpbknQQKBcLx6hyxY8/w5MBgfzrEaGdxKNb/xLU8ap0pBWH4gSNaRAie+16uZq56 xZJzs6lnWcLXqUb1yvyYra/proyyIjwn4uMldT2mazp2/gEIKNmHFMYffwPvnzANAIgT exRa5OsNITKvzxKuJC2KYg5NJ1TxiRtRUChQSYLJ0T6+3apa9e5/Fc/jiUVBqMEeE7vZ dq7w== 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=F7TWzjE6hlxDFKNIXn61DcTODNoha41EyyhT8malfVnk+027/uuFyP+5lM1d2uUYgz y5S6HhEEjLKvehfSywAzUI6tPcy2V7H12DGXOtGf2MhzyCp81DZ2tQ65lUtN4eHvzmvn 75l6yW7o9Ak0T75UV3jcAPJlZWsZA3u9WJEeqAwXl9eNiMTQ4LtLf2AiCmYkuUsV3w24 ECb1Mg7TCmoGgTEluknvoeIxJeN/8NU3G6wmdwXvw7Sz353rrXHOHYIUvKrZ4wYhQub6 N/3wX8ZE6JPhyvx1GiMo6YacqbNdvcgst//OkkwJ0wUSaeAN1syLGYI6ARs74sfmhmfp mMMQ== X-Gm-Message-State: AA+aEWa4vLSHOBmLEJtQ3xfJ3Nchjj0njOdjXqiv8JDMvDAhjAzLYg1T 3iK2Zf3chWFWmi1zE3vZb5/paA== X-Google-Smtp-Source: AFSGD/UmBrB2aa59/zdnjj7QxNAAbSzgm/gXzaYbIwYPVypkwh3r6kLP5SxT7izevcfOdqa732UgKA== X-Received: by 2002:a62:99dd:: with SMTP id t90mr1441926pfk.179.1544174321359; Fri, 07 Dec 2018 01:18:41 -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 y1sm3480927pfe.9.2018.12.07.01.18.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Dec 2018 01:18:40 -0800 (PST) From: Jian-Hong Pan To: Jaroslav Kysela , Takashi Iwai , Kailang Yang Date: Fri, 7 Dec 2018 17:17:11 +0800 Message-Id: <20181207091713.7483-2-jian-hong@endlessm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181207091713.7483-1-jian-hong@endlessm.com> References: <20181207091713.7483-1-jian-hong@endlessm.com> Cc: alsa-devel@alsa-project.org, Chris Chiu , linux-kernel@vger.kernel.org, josh@wtmec.com, Hui Wang , Jian-Hong Pan , Daniel Drake , linux@endlessm.com Subject: [alsa-devel] [PATCH v3 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},