From patchwork Wed Dec 5 06:48: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: 10713087 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 A0CF513AF for ; Wed, 5 Dec 2018 06:50:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 850A52C7DD for ; Wed, 5 Dec 2018 06:50:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 78AEE2C80C; Wed, 5 Dec 2018 06:50:19 +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 BAF752C7DD for ; Wed, 5 Dec 2018 06:50:17 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id AB0D0267BDC; Wed, 5 Dec 2018 07:50:11 +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 ED548267B9C; Wed, 5 Dec 2018 07:49:55 +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 6DDD3267B95 for ; Wed, 5 Dec 2018 07:49:49 +0100 (CET) Received: by mail-pf1-f193.google.com with SMTP id c72so9524514pfc.6 for ; Tue, 04 Dec 2018 22:49:49 -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; bh=6BJcg3ek3gGRvR369ztMOJW5erTNjFk86k2+aWsWv+I=; b=gJAmelD3t96UETw2TBTkwlPLhNp0YBancKlyMxhHEIWP9OurDmSebjyPlnRtzZvZvu GqZ8Q44GOhtA7iEegn5Ng0KFkw08v6AIneF90wq6/7cjZ5K8sq4wXZQikSwUfzrJc6hV vZRb1ppD393yeAPbSy6XkVyP98jxVDQE4LgUzVsJojR23/zkDMENU//5sRHcKC3i+cCj agLv0dRhMFU9Q923bQUQZLb0oP8u0ZLVLOzTtqRBbEkOlaxpHX+uTQB5i4gJ19F3zG/0 6aGliTFfD44BvgLXhJ+JkSKJ5CQdRd37ei9P7S5mzmBr92icd3XhcmnMe7vxWJBqDtr9 yqFw== 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; bh=6BJcg3ek3gGRvR369ztMOJW5erTNjFk86k2+aWsWv+I=; b=ppcapj2NWpAbpyE/wNakVfPgcoS4Bl7lak7/lYq7s1oDOdAzINp3OV0bMx//hpPM+Z WQ60sKm4D75u6Je3nrSplKIqQKqXZXviF+7U0IfjrkOoWjRuTQD+Y3BhfQk8hbdAnP33 RoV/KNBypR7TY4Ah2FEJ+V5xOWxDkTFFXekc9kSMwToeRsfKTqC3kGxdCzW5PHsAUQ0X cb5vkJFr6Ibmdg6MURdzto2VuF5oXRQANfMSL5zZclVx4E1u6T0wH9sKv5P8e1XTJgby lL8St8Hw8AVKD7arLekp+MbsyR7CD1eRVKpneGORMqzQ47M1p7yiW7hxk/GZqZ2vNBxC 2ZrA== X-Gm-Message-State: AA+aEWYk8gms2y9XK/ogA86ZXLZ57fAUulIsuE0hFxR3SkSLWEAA3N+o jvAqYRMudj8Pd5/PrtNyDIWHwg== X-Google-Smtp-Source: AFSGD/XPKyYI2g4pUx5FsRoLAXC9H3gzeQpLC67H68QQ10M28HEjyGpNenXJnw7nYVkswt/57FCgsw== X-Received: by 2002:a63:7154:: with SMTP id b20mr19411854pgn.342.1543992588731; Tue, 04 Dec 2018 22:49:48 -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 c13sm36995220pfe.93.2018.12.04.22.49.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Dec 2018 22:49:48 -0800 (PST) From: Jian-Hong Pan To: Jaroslav Kysela , Takashi Iwai Date: Wed, 5 Dec 2018 14:48:53 +0800 Message-Id: <20181205064856.19380-1-jian-hong@endlessm.com> X-Mailer: git-send-email 2.11.0 Cc: alsa-devel@alsa-project.org, Kailang Yang , Chris Chiu , linux-kernel@vger.kernel.org, Daniel Drake , Hui Wang , Jian-Hong Pan , linux@endlessm.com Subject: [alsa-devel] [PATCH 1/4] ALSA: hda/realtek: ALC286 mic and headset-mode fixups for Acer Aspire U27-880 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 Acer Aspire U27-880(AIO) with ALC286 codec can not detect headset mic and internal mic not working either. It needs the similar quirk like Sony laptops to fix headphone jack sensing and enables use of the internal microphone. Unfortunately jack sensing for the headset mic is still not working. Signed-off-by: Jian-Hong Pan Signed-off-by: Daniel Drake Signed-off-by: Chris Chiu Signed-off-by: Jian-Hong Pan Signed-off-by: Daniel Drake Signed-off-by: Chris Chiu Signed-off-by: Jian-Hong Pan Signed-off-by: Daniel Drake Signed-off-by: Chris Chiu --- sound/pci/hda/patch_realtek.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index c0b289ba397f..f21d52eb2ed3 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5516,6 +5516,7 @@ enum { ALC221_FIXUP_HP_HEADSET_MIC, ALC285_FIXUP_LENOVO_HEADPHONE_NOISE, ALC295_FIXUP_HP_AUTO_MUTE, + ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE, }; static const struct hda_fixup alc269_fixups[] = { @@ -6393,6 +6394,15 @@ static const struct hda_fixup alc269_fixups[] = { .type = HDA_FIXUP_FUNC, .v.func = alc_fixup_auto_mute_via_amp, }, + [ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x18, 0x01a1913c }, /* use as headset mic, without its own jack detect */ + { } + }, + .chained = true, + .chain_id = ALC269_FIXUP_HEADSET_MIC + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -7071,6 +7081,10 @@ static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = { {0x14, 0x90170110}, {0x19, 0x04a11040}, {0x21, 0x04211020}), + SND_HDA_PIN_QUIRK(0x10ec0286, 0x1025, "Acer", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE, + {0x12, 0x90a60130}, + {0x17, 0x90170110}, + {0x21, 0x02211020}), SND_HDA_PIN_QUIRK(0x10ec0288, 0x1028, "Dell", ALC288_FIXUP_DELL1_MIC_NO_PRESENCE, {0x12, 0x90a60120}, {0x14, 0x90170110},