From patchwork Tue Feb 28 20:17:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Drake X-Patchwork-Id: 9596693 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B5BE960429 for ; Tue, 28 Feb 2017 20:17:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8D56284EC for ; Tue, 28 Feb 2017 20:17:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9CA272853D; Tue, 28 Feb 2017 20:17:48 +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=-1.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=no 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 C4C95284EC for ; Tue, 28 Feb 2017 20:17:47 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 7355A266D63; Tue, 28 Feb 2017 21:17:29 +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 CC6D8266D63; Tue, 28 Feb 2017 21:17:27 +0100 (CET) Received: from mail-ua0-f182.google.com (mail-ua0-f182.google.com [209.85.217.182]) by alsa0.perex.cz (Postfix) with ESMTP id 9576E266718 for ; Tue, 28 Feb 2017 21:17:24 +0100 (CET) Received: by mail-ua0-f182.google.com with SMTP id f54so26592356uaa.1 for ; Tue, 28 Feb 2017 12:17:24 -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=AFJETdHTU79/DHc7JzUviRxko07VqMXsky/ZkD1xGhA=; b=i3HDeStSL2NOpKMNzaE0q2GOb55VwzjobuQ1OOoLRmT/505Yh7X2ZKtEN/r0w1rOcN V6Qe/qtNbYIvMpKtjXFhRVNU/xEJmoEFLg+QHH/vFV1ecUDcHJXYi79KmTdEYz6wcQMi BMSNgVhN/Sq0TkZwYO1RLZbzyTRbkqOGgUfHMPU0QZ+kguNbpsSSB9MiG00ws0ovTSNG UfkbOEyOWK8drFB+11AAdV/OJ9shGT7Qtl5s43ozZF/jx3udLhndL8MrsRIe8fJ/cuoc 8WnZxAmM1obIuFa/SsHVPP0yhyW0u0N/MBMMaKxPKK6zqmHcPvbAkqdhjABafE7zglCf /rrQ== 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=AFJETdHTU79/DHc7JzUviRxko07VqMXsky/ZkD1xGhA=; b=Yd25Ztcc1YbqHzr8AIMHmJ4RmE4cniWT4jHtmtHAhQI/ZjrSOCXm5Z59B9rTmPY8Im KddgxRAB95HePO4qD/Hd1MXUW40y3TdCkMjrg7ViCtJH6VrGxr73nao8FHxEYjjQJt0h iOIsHWKSS4axNhrin8qTb3SiLmFo6F9qiDv1xeKz3H9rf/sqMxzZuIwO+8E7Wt7zLWCs axXjo6u5igfX0+q0fDl6mbQSDmAcxNLFyKAxmiCOZfe0z9ZpToeccQ8vBimphMDVA9Fg /n90ZaCQRuCfotu6TVvfPDdua0SMV3d1ZPsWoOkin0Fr8QUNlrBKGYIJp1agvqH9l+FE FHuQ== X-Gm-Message-State: AMke39m1DMmAg2FGmwO4DOfMb1yniKaW01DI1VWKUnzgB2Fa62pWFi0hzmgvHyCL4kCEs40P X-Received: by 10.176.16.193 with SMTP id x1mr2024713uab.45.1488313043822; Tue, 28 Feb 2017 12:17:23 -0800 (PST) Received: from nuc.gallo.pinto ([186.77.198.234]) by smtp.gmail.com with ESMTPSA id a91sm651289uaa.2.2017.02.28.12.17.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Feb 2017 12:17:23 -0800 (PST) From: Daniel Drake To: perex@perex.cz, tiwai@suse.com Date: Tue, 28 Feb 2017 14:17:12 -0600 Message-Id: <20170228201715.7862-2-drake@endlessm.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170228201715.7862-1-drake@endlessm.com> References: <20170228201715.7862-1-drake@endlessm.com> Cc: linux@endlessm.com, alsa-devel@alsa-project.org, chiu@endlessm.com Subject: [alsa-devel] [PATCH 2/5] ALSA: hda/realtek - Fix headset mic on several Asus laptops with ALC255 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 Add pin quirks to enable use of the headset mic on Asus Z550MA, X540LA, X540LJ, X556UR, Z450LA, and X441NC. Signed-off-by: Chris Chiu Signed-off-by: Daniel Drake --- sound/pci/hda/patch_realtek.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 2b1f74f9..1bbd4d8 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -4834,6 +4834,7 @@ enum { ALC269_FIXUP_THINKPAD_ACPI, ALC269_FIXUP_DMIC_THINKPAD_ACPI, ALC255_FIXUP_ACER_MIC_NO_PRESENCE, + ALC255_FIXUP_ASUS_MIC_NO_PRESENCE, ALC255_FIXUP_DELL1_MIC_NO_PRESENCE, ALC255_FIXUP_DELL2_MIC_NO_PRESENCE, ALC255_FIXUP_HEADSET_MODE, @@ -5297,6 +5298,15 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC255_FIXUP_HEADSET_MODE }, + [ALC255_FIXUP_ASUS_MIC_NO_PRESENCE] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */ + { } + }, + .chained = true, + .chain_id = ALC255_FIXUP_HEADSET_MODE + }, [ALC255_FIXUP_DELL1_MIC_NO_PRESENCE] = { .type = HDA_FIXUP_PINS, .v.pins = (const struct hda_pintbl[]) { @@ -5689,6 +5699,9 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x1043, 0x1a13, "Asus G73Jw", ALC269_FIXUP_ASUS_G73JW), SND_PCI_QUIRK(0x1043, 0x1b13, "Asus U41SV", ALC269_FIXUP_INV_DMIC), SND_PCI_QUIRK(0x1043, 0x1c23, "Asus X55U", ALC269_FIXUP_LIMIT_INT_MIC_BOOST), + SND_PCI_QUIRK(0x1043, 0x1bbd, "ASUS Z550MA", ALC255_FIXUP_ASUS_MIC_NO_PRESENCE), + SND_PCI_QUIRK(0x1043, 0x10d0, "ASUS X540LA/X540LJ", ALC255_FIXUP_ASUS_MIC_NO_PRESENCE), + SND_PCI_QUIRK(0x1043, 0x11c0, "ASUS X556UR", ALC255_FIXUP_ASUS_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x1043, 0x831a, "ASUS P901", ALC269_FIXUP_STEREO_DMIC), SND_PCI_QUIRK(0x1043, 0x834a, "ASUS S101", ALC269_FIXUP_STEREO_DMIC), SND_PCI_QUIRK(0x1043, 0x8398, "ASUS P1005", ALC269_FIXUP_STEREO_DMIC), @@ -5866,6 +5879,14 @@ static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = { {0x12, 0x90a601c0}, {0x14, 0x90171120}, {0x21, 0x02211030}), + SND_HDA_PIN_QUIRK(0x10ec0255, 0x1043, "ASUS", ALC255_FIXUP_ASUS_MIC_NO_PRESENCE, + {0x14, 0x90170110}, + {0x1b, 0x90a70130}, + {0x21, 0x03211020}), + SND_HDA_PIN_QUIRK(0x10ec0255, 0x1043, "ASUS", ALC255_FIXUP_ASUS_MIC_NO_PRESENCE, + {0x1a, 0x90a70130}, + {0x1b, 0x90170110}, + {0x21, 0x03211020}), SND_HDA_PIN_QUIRK(0x10ec0225, 0x1028, "Dell", ALC225_FIXUP_DELL1_MIC_NO_PRESENCE, ALC225_STANDARD_PINS, {0x12, 0xb7a60130},