Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp17086pxv; Wed, 21 Jul 2021 14:11:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynczCyc/PorQ6M/HgoJrzwRn2KRUeJ4FlszzXfXo424GMCvnHZ5pXZc6Z+R1AAbKofdYnB X-Received: by 2002:a05:6638:2195:: with SMTP id s21mr32594031jaj.15.1626901457014; Wed, 21 Jul 2021 14:04:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626901457; cv=none; d=google.com; s=arc-20160816; b=eCLSyrswMPvpzx9ubsztHl2GzcG0z+Kb5z9B4SKXuDv/NnlKqwbGTh43aG7sCtl/Fk oB2lbeBYeadTWCRP8a3qs+n0vpm1vK7mAD62Rn7Ie37Hkoh2ix+OivDcuTkXCHuEwcxi mCrMkfrmN/jAwYQmKtJhSL5MNAVapsLPdJ8I3+F27Ludy5Nn1GSSjaM1khten7Qdkr/a NMHi0A14kc5vKZv3JPMBIjv0FMEo30nFQ3u54AenhFHiktZj68jQ4L4XRnZIQR5Oi20I DBLAETjr0l/GHm/eJ/FP7z4AUP9JrgMqYQZWh0ZDKI2E7amCJFDfZLkp+bFRvE7pOni7 7/Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=DfDx5woFQ5QK4XusHc2b1I9VJu/nf+sTWAxgsUpwfYA=; b=WY7bKAmmN/zSRcB/UcJSL2By/HVRUQrWYT15tvbP1JUjJcVz5IsRlFSYFp+z9y9qhP /FgTX/xUV6iHyOlFSh4pXtXVbmxxzSMeXOzn1Y1ZFKTzz38K6NduTEVdF5CQ4XM6+PKD +p7CL+U2GZ9vfWdkilBNr+kW2kpOlpR9aQnvI/ZOIEVQNsTpKLFEN/L3CkTTTUFqwRFY 08bjeIVJl9Ouggt+JPNiSd2VDnW9/TMbGrgxk2rhiei6B6Ra3Ltl8QrrEld6FeyMFZv2 zeIb0yHDGaD3ndRxwjB6yExp4+W/IPdfMIZwLH46UHFwmJsPm9CfhYf9Fg9M1/n61osh kEuA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ispras.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f6si27582309jas.104.2021.07.21.14.04.05; Wed, 21 Jul 2021 14:04:17 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ispras.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236115AbhGUQVd (ORCPT + 99 others); Wed, 21 Jul 2021 12:21:33 -0400 Received: from mail.ispras.ru ([83.149.199.84]:35228 "EHLO mail.ispras.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbhGUQVb (ORCPT ); Wed, 21 Jul 2021 12:21:31 -0400 Received: from localhost.localdomain (unknown [46.188.10.168]) by mail.ispras.ru (Postfix) with ESMTPSA id 01B0040D403D; Wed, 21 Jul 2021 17:02:04 +0000 (UTC) From: Alexander Monakov To: linux-kernel@vger.kernel.org Cc: Alexander Monakov , Jaroslav Kysela , Takashi Iwai , Hui Wang , Kailang Yang , Jeremy Szu , Jian-Hong Pan , Chris Chiu , PeiSen Hou , alsa-devel@alsa-project.org Subject: [PATCH] ALSA: hda/realtek: add mic quirk for Acer SF314-42 Date: Wed, 21 Jul 2021 20:01:41 +0300 Message-Id: <20210721170141.24807-1-amonakov@ispras.ru> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Acer Swift SF314-42 laptop is using Realtek ALC255 codec. Add a quirk so microphone in a headset connected via the right-hand side jack is usable. Signed-off-by: Alexander Monakov Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Hui Wang Cc: Kailang Yang Cc: Jeremy Szu Cc: Jian-Hong Pan Cc: Chris Chiu Cc: PeiSen Hou Cc: alsa-devel@alsa-project.org --- Hello, Acer Swift SF314-42 laptop is using AMD Ryzen SoC audio with Realtek ALC255 codec. The are three ALSA cards: HDMI audio, AMD ACP card, and AMD HDA card. There is an internal stereo microphone connected to the ACP card, and a mini-jack connected to the Realtek codec. There are no LEDs. I'd like to be able to use a mic+headphones headset. Unfortunately, out of the box ALSA does not correctly detect the microphone input of the Realtek codec. The suggested patch fixes that, though I cannot be sure it's 100% correct. With the patch, the experience is unfortunately still not ideal. I have noticed a couple of issues: 1) at high enough gain, recording the microphone is picking up what is being played via the headphones; maybe it's supposed to be like that, but it surprised me; 2) there is a very noticeable "pop" when plugging the headset in/out, accompanied by pcieport 0000:00:08.1: PME: Spurious native interrupt! pcieport 0000:00:08.1: PME: Spurious native interrupt! in dmesg. I'd appreciate info and any help about this issue. Thanks. Alexander sound/pci/hda/patch_realtek.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index ab5113cccffa..87ad8469dbc5 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -8191,6 +8191,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { 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_FIXUP_ACER_HEADSET_MIC), SND_PCI_QUIRK(0x1025, 0x1330, "Acer TravelMate X514-51T", ALC255_FIXUP_ACER_HEADSET_MIC), + SND_PCI_QUIRK(0x1025, 0x142b, "Acer Swift SF314-42", ALC255_FIXUP_ACER_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x1025, 0x1430, "Acer TravelMate B311R-31", ALC256_FIXUP_ACER_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x1025, 0x1466, "Acer Aspire A515-56", ALC255_FIXUP_ACER_HEADPHONE_AND_MIC), SND_PCI_QUIRK(0x1028, 0x0470, "Dell M101z", ALC269_FIXUP_DELL_M101Z), base-commit: 62fb9874f5da54fdb243003b386128037319b219 -- 2.31.1