From patchwork Thu Mar 14 08:59:34 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: 10852585 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 CE3871515 for ; Thu, 14 Mar 2019 09:40:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6B592A2B3 for ; Thu, 14 Mar 2019 09:40:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AAE4B2A2B5; Thu, 14 Mar 2019 09:40:20 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 468A72A2B3 for ; Thu, 14 Mar 2019 09:40:18 +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 D56DF860; Thu, 14 Mar 2019 10:01:03 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D56DF860 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1552554113; bh=6CmWDPEzyXmT/VNm7H3+Cc5JcHO4MBvT7jGYwOyye94=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=GTpN6djTWWqzr5bbMhIq70vF0EjSvt/FX97/blZkdl8IJYiVA9iLFkTui8EnKQtPy mIIm1HEfVxnAQgff09+znuBoG4EIjWqMe1Bnk6I9uugmhncUi5BM98d7DnqIt6aFKQ OSREhzklDUxVje/4+ZFEAJ0GN2biv/2pWFAtBdqI= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 6ECF9F80799; Thu, 14 Mar 2019 10:01:03 +0100 (CET) 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 35DC3F896E0; Thu, 14 Mar 2019 10:00:59 +0100 (CET) Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) (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 0B6EAF80799 for ; Thu, 14 Mar 2019 10:00:56 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0B6EAF80799 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=endlessm-com.20150623.gappssmtp.com header.i=@endlessm-com.20150623.gappssmtp.com header.b="yfSc6C/S" Received: by mail-pg1-x543.google.com with SMTP id 125so3506803pgc.12 for ; Thu, 14 Mar 2019 02:00:56 -0700 (PDT) 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=9/H5GPG5TzysHz/4vblclyc79/Qd6mhu+FfYyvkY5iA=; b=yfSc6C/SzmLRAc2jH6As6SnOu0VK9apzVesZwFk9KYzLNxbsw39kRX5uBX+pZL/t0h QBCfkIR6+07feza/owCrA7/qJlK816c7yO0XrkhdZOIRFfTQcdtWiM949XHC2ceC99Cy Q+PF0e8wy4OnW8JEmnxLaliB60KKpLDTZoTO46h3eYYqRyKA0X5BxHiFoZ1hw3NduSuB MnnrNl1cPg1Ne26yZoZ73h26w3Wt7OIeVor5Naqxjtoc5Da/4UAjTMl32L7kGXtyogDc SOumBchYiZiRlc+pdkuVuYHKV4irQ7xdohx5KanDtQ6yKoNfzigKB2dxvfeXDrm4OHcC 4ItA== 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=9/H5GPG5TzysHz/4vblclyc79/Qd6mhu+FfYyvkY5iA=; b=HP8yfPapI8d7tebkfrH1hXG0F3F5SVgbp2UeA8GlSrHrIuLqrvPlBqaGJY5UBSiFGs 5NjWSAS5cbqEhLH8yYleO38+qpQGr62T93Ke3zlpuhVhJqnkG8VE3xpZBatpowYHZt3J FifW9CukMQW2RKdD9m3FiorQ/FsLkPQR74fp+I+niBISj7g0AZC3Hj+j5TL0gAt77o0w 0mMO9W0maCHnwr0SxX3fXK3VFcncdHE3e34tNTWDkCdCwKbv3UzoVhBvTgps7LDDDTAY 1ZRiOsaaOjK2YhpWIT6/RJf/WuVABL7dPsZ4Vi5+rzrENcZ+0PkoeHPj819n9UeQl6L8 qtiQ== X-Gm-Message-State: APjAAAVumTPfUQBplkyM1Ul7Z445L+mfy09J8RGs+Qkf7brkZCj6CQBW tlzXb7WuwE3pTJAuFU95LoWalA== X-Google-Smtp-Source: APXvYqw2NQ7jCmn0sO5RfcEfnjjLjAzmyo+z4gsDfudkkeGLWseGufea15XL3pLjnkFSjnhPdz/uwQ== X-Received: by 2002:aa7:82d7:: with SMTP id f23mr48594927pfn.114.1552554054431; Thu, 14 Mar 2019 02:00:54 -0700 (PDT) Received: from localhost.localdomain (123-204-46-122.static.seed.net.tw. [123.204.46.122]) by smtp.gmail.com with ESMTPSA id u24sm20708033pfm.140.2019.03.14.02.00.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Mar 2019 02:00:53 -0700 (PDT) From: Jian-Hong Pan To: Takashi Iwai Date: Thu, 14 Mar 2019 16:59:34 +0800 Message-Id: <20190314085933.11404-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, Kailang Yang , linux@endlessm.com, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH] ALSA: hda/realtek: Enable headset MIC of Acer AIO with ALC286 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 Some Acer AIO desktops like Veriton Z6860G, Z4860G and Z4660G cannot record sound from headset MIC. This patch adds the ALC286_FIXUP_ACER_AIO_HEADSET_MIC quirk to fix this issue. Signed-off-by: Jian-Hong Pan --- sound/pci/hda/patch_realtek.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index a63670013943..b3fbad5a680f 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5695,6 +5695,7 @@ enum { ALC285_FIXUP_LENOVO_PC_BEEP_IN_NOISE, ALC255_FIXUP_ACER_HEADSET_MIC, ALC295_FIXUP_CHROME_BOOK, + ALC286_FIXUP_ACER_AIO_HEADSET_MIC, }; static const struct hda_fixup alc269_fixups[] = { @@ -6677,6 +6678,16 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC225_FIXUP_HEADSET_JACK }, + [ALC286_FIXUP_ACER_AIO_HEADSET_MIC] = { + .type = HDA_FIXUP_VERBS, + .v.verbs = (const struct hda_verb[]) { + { 0x20, AC_VERB_SET_COEF_INDEX, 0x4f }, + { 0x20, AC_VERB_SET_PROC_COEF, 0xd429 }, + { } + }, + .chained = true, + .chain_id = ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -6693,9 +6704,9 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x1025, 0x079b, "Acer Aspire V5-573G", ALC282_FIXUP_ASPIRE_V5_PINS), SND_PCI_QUIRK(0x1025, 0x102b, "Acer Aspire C24-860", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x1025, 0x106d, "Acer Cloudbook 14", ALC283_FIXUP_CHROME_BOOK), - SND_PCI_QUIRK(0x1025, 0x128f, "Acer Veriton Z6860G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE), - SND_PCI_QUIRK(0x1025, 0x1290, "Acer Veriton Z4860G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE), - SND_PCI_QUIRK(0x1025, 0x1291, "Acer Veriton Z4660G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE), + SND_PCI_QUIRK(0x1025, 0x128f, "Acer Veriton Z6860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC), + SND_PCI_QUIRK(0x1025, 0x1290, "Acer Veriton Z4860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC), + SND_PCI_QUIRK(0x1025, 0x1291, "Acer Veriton Z4660G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC), SND_PCI_QUIRK(0x1025, 0x1330, "Acer TravelMate X514-51T", ALC255_FIXUP_ACER_HEADSET_MIC), SND_PCI_QUIRK(0x1028, 0x0470, "Dell M101z", ALC269_FIXUP_DELL_M101Z), SND_PCI_QUIRK(0x1028, 0x054b, "Dell XPS one 2710", ALC275_FIXUP_DELL_XPS),