Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp870075pxb; Thu, 25 Feb 2021 18:08:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJzffG5ngpEaxd6U85azvhVm2nIGfWzq1+Tr3fwZZNPc0+ovCTTO6PYYJF2vAZXewvrCLfK4 X-Received: by 2002:a17:906:b001:: with SMTP id v1mr685211ejy.217.1614305314589; Thu, 25 Feb 2021 18:08:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614305314; cv=none; d=google.com; s=arc-20160816; b=SXRS7OQyVpCXLHMDI1foGzq4k5tTHQffLtZuwa/RGjOZulcvjT8P7FSlQIV7hE6Yh7 zlJF6mcmPw5MmRKseUssvLjW7WUKyFOuN6EXVXc51cRcnzddiaWh3aBruM7rvKxphOg3 lHCn+RqwlbCXfOPjxemzdKXMBSGAzQkjy3EpcqPCBpRXVKyoRwqA+Z0ovuMGyGya0aP2 0pjavWOJfDu9I7YLKmvJfQCZ8Q1q6//vpZk5Ch2uA5IiJCGFBJ8d/A/vrWehJfT16nrX fn8jXqbaJ8De7gjaGoc+nTgJjETxycRFDnJmqO+WPYRZ7Ar43SaAcjS9LhdWt6W1n2uo FR8A== 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=TEurnvnOY0UmTThAshzFygi7pp659PSVZrpUu3wFGLI=; b=kVpDe54n2p/ycvuA4n6ePRuvOsyHPC12CWSEqdUMm88B2m0zP9cuWRbqZwLUp1tgAV NF2oSxbN269D8ZvfO3oo0TzzUmr9Emf1mSy6ugqLQFJqJs6lfWKT8MGD/U6+HhbnjSjK VCD8oAYNtiqktMRgKdtY7aq7yglyTzh+5mw4JLJ5ely5CbEDZo6bGO5jxHAXJg3qUVtd L2sPsSyAHAR+iWLx9Xjc+ogoSNZ/hNQYPsy4wr0CiTaqdUi5SLeymRFzAW2XNf93rBck 2jN8ivb+qyopjMYu7VLHJin174AwKyEollA2hJmNZK49olCU4AY9w/Kp3mK7Tn57QWgJ IpeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessos.org header.s=google header.b=hROQH+eH; 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 dn20si4872885ejc.418.2021.02.25.18.08.10; Thu, 25 Feb 2021 18:08:34 -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=hROQH+eH; 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 S229946AbhBZCGn (ORCPT + 99 others); Thu, 25 Feb 2021 21:06:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbhBZCGl (ORCPT ); Thu, 25 Feb 2021 21:06:41 -0500 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CAA4C061574 for ; Thu, 25 Feb 2021 18:06:01 -0800 (PST) Received: by mail-oi1-x232.google.com with SMTP id o3so8227320oic.8 for ; Thu, 25 Feb 2021 18:06:01 -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=TEurnvnOY0UmTThAshzFygi7pp659PSVZrpUu3wFGLI=; b=hROQH+eH59ynw+jEXUoBS0nUrg2rlQn1mDsc21mT6SdgqHwCZ8nkfIH1gSD9P5zl5N r5Fv7JHPDEiGIWRF5ZoAXuW3Zwba1oQ6CU5A85a8kK9j2S0T7mBWJqsUyeryI+qGJASp eN4V/WX+nSc0ROtexYEksc8y58dZgp2LKBJ4iSNuItO60HpGked6tt1HuzLdyYd+p89s gScgX+CRPW7nsc/Zv93TbMt/TptyXcxmqQ59pGK/bBxC5J+dOuHv9knzVH/g7CRHOojl yzxGRv9c6RlrY2bvjbP/FyFR2gWZJrFxVATpMfweVuUziXUAxfWPIc9Aix2tUdXs17Ae HLDg== 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=TEurnvnOY0UmTThAshzFygi7pp659PSVZrpUu3wFGLI=; b=ZQyGER5AEdZZuvNraFpMFVvoYfOrd8po7JXVJiIIl1UMZDWLyYxZJZ1l/TptkdHpPI O4t/eNnACAC7vMbBcwahf+DIF7IdmMBkbFgwG1/YSLoOF8JvxsZAGW4ExcfQ2dxHzFff 1QDVgSpvb+Bvrz/cPPtA3HX3RS4yTgJ+r8oioPJ8kQaohS5fOVXSxvGWD9i9e7Dy5RYt gPw+QmIhDXzopu4+2ts9UfFccWHX9cJlbcBipfcb29DmBm7vOm2qpWj97oWZnsKjOm6d tzJKDIsKFOKA8hUYSte6gCGbYvcRZcl92ppRtdFrPYB67CRyweUJgRtLR4MXZaarh/ot 9NuQ== X-Gm-Message-State: AOAM531v+Xg8EAvE1eb+lUH/rc23Y+3JVzg58EyiXPmz8V62TnwV94Sz GBhpZ/x/sg/AvG73POADHAsVJ1hw7F2l/oAVxae2Lk6Y6Y2HSrud X-Received: by 2002:a05:6808:1290:: with SMTP id a16mr541518oiw.161.1614305160603; Thu, 25 Feb 2021 18:06:00 -0800 (PST) MIME-Version: 1.0 References: <20210226010440.8474-1-chris.chiu@canonical.com> In-Reply-To: <20210226010440.8474-1-chris.chiu@canonical.com> From: Jian-Hong Pan Date: Fri, 26 Feb 2021 10:05:00 +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 =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_realtek.= 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, with= out 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. BR, 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_tbl= [] =3D { > SND_PCI_QUIRK(0x1025, 0x1246, "Acer Predator Helios 500", ALC299_= FIXUP_PREDATOR_SPK), > SND_PCI_QUIRK(0x1025, 0x1247, "Acer vCopperbox", ALC269VC_FIXUP_A= CER_VCOPPERBOX_PINS), > SND_PCI_QUIRK(0x1025, 0x1248, "Acer Veriton N4660G", ALC269VC_FIX= UP_ACER_MIC_NO_PRESENCE), > + SND_PCI_QUIRK(0x1025, 0x1269, "Acer SWIFT SF314-54", ALC256_FIXUP= _ACER_HEADSET_MIC), > 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, 0x129c, "Acer SWIFT SF314-55", ALC256_FIXUP= _ACER_HEADSET_MIC), > SND_PCI_QUIRK(0x1025, 0x1308, "Acer Aspire Z24-890", ALC286_FIXUP= _ACER_AIO_HEADSET_MIC), > SND_PCI_QUIRK(0x1025, 0x132a, "Acer TravelMate B114-21", ALC233_F= IXUP_ACER_HEADSET_MIC), > SND_PCI_QUIRK(0x1025, 0x1330, "Acer TravelMate X514-51T", ALC255_= FIXUP_ACER_HEADSET_MIC), > -- > 2.20.1 >