Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp904514pxb; Thu, 25 Feb 2021 19:28:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMY2VVIapYBSAvQuWBDz2EsRoWxRmFOh/g3Zr3WszVUg8cNc9ibzFYa9LCDP5q/KeOKFDB X-Received: by 2002:aa7:d295:: with SMTP id w21mr1091128edq.159.1614310134388; Thu, 25 Feb 2021 19:28:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614310134; cv=none; d=google.com; s=arc-20160816; b=usqz8oKMzzan7/IvFMpUHJOJXPWniaonczjhv4GT1fuIUPHVKxbfBkHZEDyNHtEgLz J1y+cfHby5ssaEbsHbnTwJs9k0ZZCzOnuH1txJ5cKT5z0xt4qhJ7lY7N5OOP3Kx0AhbC b7z7NSR9UKJyRt7voPwZunCbYbqNC6GzLUBQ8SndtM2xnC4m5CUBY8tM+BxjkgOU8MXm 74kUAtZTPyqjWpu9CePPNZsIinPgcss6QDm96cFToXU0Wqk0+js2CLeU5GXSJj6yBlea 0fsPO7YPv1bbKdX6mabZRZNcfW12spx50ZLFfcjiyOg9wLZ6X5YneOfCfuaaJdr67tfw AOVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=W+2l0NNpBq+Qnjv0WpsTeGDz60YASdGJlf+tLVmTgvc=; b=RZOTABJZGmnCrVo0D5CclHDNj+CuS373pLBUG4+Q7M38LNS2/Iv4jP6FB+HWC9iUHA BRb6GTuM90+TadIt17+Ji+W0iqjuYn/o4pYp59p/dKctIkdQMFKobt8aPXJ8cNAUvliq lTnmtLmOjCgFUPA2XZPjpdm6NaEujNzUppKpBKYBNX9LnjSwSZ94RDUS41JJ1ZqZ4oow oTNq2hSqN8o7LQluZpmvPWsIw4d0RtOfsTNe2f8CAMH3IEdIG94TwzlVq5XgSAx84EZ9 rcC6531JkL/TqO0FpQkPU4SFbtACYvLjyAZbAeOxi8ZAVpvxKdWCqax4uq4ebzZoOPFk dFjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessos.org header.s=google header.b=YBEth4sx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=endlessos.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e22si4925533edu.45.2021.02.25.19.28.30; Thu, 25 Feb 2021 19:28:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@endlessos.org header.s=google header.b=YBEth4sx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=endlessos.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229769AbhBZD0D (ORCPT + 99 others); Thu, 25 Feb 2021 22:26:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbhBZD0D (ORCPT ); Thu, 25 Feb 2021 22:26:03 -0500 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06F2AC061574 for ; Thu, 25 Feb 2021 19:25:23 -0800 (PST) Received: by mail-oi1-x22a.google.com with SMTP id z126so8404293oiz.6 for ; Thu, 25 Feb 2021 19:25:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessos.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=W+2l0NNpBq+Qnjv0WpsTeGDz60YASdGJlf+tLVmTgvc=; b=YBEth4sxGYqBIiQCyhilVOJ0JbkCO+uF4haEck5ajsPJeO1K653m1fwAJIIUKNnAcw GP40tWdbTPXJWPgr2DRhuW6hfpJlnOmZW66tNoO5SmWNJMlFWR0Haz4eKsbEQ5BCE8Dk VT5zTXRfng+f6D85XHxT44YinDHOQ1PUNVqSKzI/K1gUEM6qQrDra0ZbOgL1Rokd6Xmh Mry/8M2it6irfISUqz7VFA2/1YWDdT/CHJK3+VlpIf67pllwS4yplXlMJD/CZAFvoe5k BC7M8A3+32ZCZI+JKBFlGEQQ4cSgCac90CkW3gDRDU0LHIjyDNSNuC7CLFobMgJxA1+H jtyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=W+2l0NNpBq+Qnjv0WpsTeGDz60YASdGJlf+tLVmTgvc=; b=h1PaSy4yqt9h26qaASYF5Oh31wzZhs+MI8gDAUP1Nx/v6LyLJoVoVYaEYqPFKvT/dJ uefZAFu47wXM9WV6frjkDivkZlyZPidSOTRS20wayLZYyPmMHFSdGXHz2E3dZQuh+H4g RPpdZL4whq8IBtCyYYjjaffNmblsXo3HGMjfJZRDA7OVW3b0gihxSCjh+Eu+btCs+BiW x26Oy+rr+udyKVQXlLyyKgzay1k+zy39YYbD5FiQbEmTVkyDksyd2lfSHpoEKuL4YNz5 j8ew/1ktKAFTaeAPLx+xmcRV02vtuZ/GB5yiEOtRtG/1ByUXpkORo82FaOppHzLbxfEV NI2Q== X-Gm-Message-State: AOAM530ZEhRJxpT9M+wHC9oyUW2KNHJeYONFjp4SJA+ZJYfVJ1ikeCZF l4xsLshkjsBgIVfTw/RLBTi2eRKktnQ3mE3EHPb8AA== X-Received: by 2002:aca:6289:: with SMTP id w131mr668302oib.69.1614309922143; Thu, 25 Feb 2021 19:25:22 -0800 (PST) MIME-Version: 1.0 References: <20210226010440.8474-1-chris.chiu@canonical.com> In-Reply-To: From: Jian-Hong Pan Date: Fri, 26 Feb 2021 11:24:21 +0800 Message-ID: Subject: Re: [PATCH v2] ALSA: hda/realtek: Enable headset mic of Acer SWIFT with ALC256 To: chris.chiu@canonical.com Cc: Takashi Iwai , Kailang Yang , Kai-Heng Feng , Hui Wang , alsa-devel@alsa-project.org, Linux Kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jian-Hong Pan =E6=96=BC 2021=E5=B9=B42=E6=9C=8826=E6=97= =A5 =E9=80=B1=E4=BA=94 =E4=B8=8A=E5=8D=8810:05=E5=AF=AB=E9=81=93=EF=BC=9A > > =E6=96=BC 2021=E5=B9=B42=E6=9C=8826=E6=97=A5 = =E9=80=B1=E4=BA=94 =E4=B8=8A=E5=8D=889:04=E5=AF=AB=E9=81=93=EF=BC=9A > > > > From: Chris Chiu > > > > The Acer SWIFT Swift SF314-54/55 laptops with ALC256 cannot detect > > both the headset mic and the internal mic. Introduce new fixup > > to enable the jack sense and the headset mic. However, the internal > > mic actually connects to Intel SST audio. It still needs Intel SST > > support to make internal mic capture work. > > > > Signed-off-by: Chris Chiu > > --- > > v1 -> v2: remove unnecessary aamix fixup > > > > sound/pci/hda/patch_realtek.c | 13 +++++++++++++ > > 1 file changed, 13 insertions(+) > > > > diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realte= k.c > > index 1927605f0f7e..4871507cd4bf 100644 > > --- a/sound/pci/hda/patch_realtek.c > > +++ b/sound/pci/hda/patch_realtek.c > > @@ -6406,6 +6406,7 @@ enum { > > ALC236_FIXUP_DELL_AIO_HEADSET_MIC, > > ALC282_FIXUP_ACER_DISABLE_LINEOUT, > > ALC255_FIXUP_ACER_LIMIT_INT_MIC_BOOST, > > + ALC256_FIXUP_ACER_HEADSET_MIC, > > }; > > > > static const struct hda_fixup alc269_fixups[] =3D { > > @@ -7853,6 +7854,16 @@ static const struct hda_fixup alc269_fixups[] = =3D { > > .chained =3D true, > > .chain_id =3D ALC255_FIXUP_ACER_MIC_NO_PRESENCE, > > }, > > + [ALC256_FIXUP_ACER_HEADSET_MIC] =3D { > > + .type =3D HDA_FIXUP_PINS, > > + .v.pins =3D (const struct hda_pintbl[]) { > > + { 0x19, 0x02a1113c }, /* use as headset mic, wi= thout its own jack detect */ > > + { 0x1a, 0x90a1092f }, /* use as internal mic */ > > Since NID 0x1a is an internal DMIC, should this connection type be 0h? > Or, even the quirk of the internal DMIC is not needed for this case. > Because, it is Intel SST DMIC that does not connect to Realtek HDA > CODEC. (Not sure for this one) > > The quirk of NID 0x19 is okay for me. After more discussion and test with Chris, found the NID 0x1a quirk is still needed. Otherwise, the headset MIC 0x19 will not work any more. So, I ack the version 2 patch. Acked-by: Jian-Hong Pan > > + { } > > + }, > > + .chained =3D true, > > + .chain_id =3D ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC > > + }, > > }; > > > > static const struct snd_pci_quirk alc269_fixup_tbl[] =3D { > > @@ -7879,9 +7890,11 @@ static const struct snd_pci_quirk alc269_fixup_t= bl[] =3D { > > SND_PCI_QUIRK(0x1025, 0x1246, "Acer Predator Helios 500", ALC29= 9_FIXUP_PREDATOR_SPK), > > SND_PCI_QUIRK(0x1025, 0x1247, "Acer vCopperbox", ALC269VC_FIXUP= _ACER_VCOPPERBOX_PINS), > > SND_PCI_QUIRK(0x1025, 0x1248, "Acer Veriton N4660G", ALC269VC_F= IXUP_ACER_MIC_NO_PRESENCE), > > + SND_PCI_QUIRK(0x1025, 0x1269, "Acer SWIFT SF314-54", ALC256_FIX= UP_ACER_HEADSET_MIC), > > SND_PCI_QUIRK(0x1025, 0x128f, "Acer Veriton Z6860G", ALC286_FIX= UP_ACER_AIO_HEADSET_MIC), > > SND_PCI_QUIRK(0x1025, 0x1290, "Acer Veriton Z4860G", ALC286_FIX= UP_ACER_AIO_HEADSET_MIC), > > SND_PCI_QUIRK(0x1025, 0x1291, "Acer Veriton Z4660G", ALC286_FIX= UP_ACER_AIO_HEADSET_MIC), > > + SND_PCI_QUIRK(0x1025, 0x129c, "Acer SWIFT SF314-55", ALC256_FIX= UP_ACER_HEADSET_MIC), > > SND_PCI_QUIRK(0x1025, 0x1308, "Acer Aspire Z24-890", ALC286_FIX= UP_ACER_AIO_HEADSET_MIC), > > SND_PCI_QUIRK(0x1025, 0x132a, "Acer TravelMate B114-21", ALC233= _FIXUP_ACER_HEADSET_MIC), > > SND_PCI_QUIRK(0x1025, 0x1330, "Acer TravelMate X514-51T", ALC25= 5_FIXUP_ACER_HEADSET_MIC), > > -- > > 2.20.1 > >