From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796487893; b=CH4uXd+LCc5fmOH7AD4OyOl/mB86TX26GYjE8jHWS5xpSOrJY0DvgE+7EmNqHif1D7W8 BuJEE1SPQ8hVDCgLGZw06FwmwQrn82SH2g7NOMmYWSW5y2z08BtIrKMKyZfo1V47Yw125 yJqj/UtbPCxZWI0v3n3D00kTiHGa55RkaAUrBSdQM4x6XUmkCpF+fiQT+4H742CzxHFur PGVaKNqb7/599/2fxGsV61W++EvCeaZiDvVcRENWNrgx68zEhsfkp0TvV0A7cfcrBmKY0 KpkiQdflG6AoEqHlkPGIYB1xzSLpM+9iJTJOAxk+lf5+Tqtqk8UW6E2o1NODOwc4cwQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796487893; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=EmzbPOJ/u9MUbM281keexNWl0xw6TQ/acvjlLOyLMNs=; b=49ZYR/q/htj0DnN69DEjc/JzBpqCQMAD2Yw+Bij1MfRuMJkcvcntmwjmEozKf+eDxXG6 2Cx2kjiPJ69F+25NttKqXn3C1zvHuiDKXXlwK4k5Ru4171A66cFK2ykEMNbg6i1Ctnk4i 5JYuOJ+Hla/eDeTs1in9H8HNwWmzTPR/5+8eRiVzrSAcuGGclcIDjrZIUys941cWEl6Q+ /Cxv4Jymob2WNg2sAxuy0JNB1lgtvFrjTd6TQVovXeyTfSOD43kg8QSGu4WiguvetZtj+ iAFpscCnpHeFhLYkp8MYY+zTycZ0agbLqJwwTWnXPWewK1fYAAdMjwgtF9p2KoF7IPw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=AFgkcTtG; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 114E0606A322 for ; Sat, 5 Dec 2026 16:24:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=AFgkcTtG Received: by smtp.kernel.org (Postfix) with ESMTPSA id D085C1F0092B; Sat, 5 Dec 2026 16:24:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796487892; bh=EmzbPOJ/u9MUbM281keexNWl0xw6TQ/acvjlLOyLMNs=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=AFgkcTtGBbY86LkHNfk0Bia/MLxvOD1MH/aQ3yBqcGTuYVat83aieBiL7HT5hltr1 LftQMhygagX2eUhl0mDcQ9ZYWRDxTlz64veozxoYuAjsAkCwow5VWu9trqU6PiZZmk Trk8zfKQBmf3ioCoT7hxBajnriJE3hnBaAWtXyR9KSXS9LSnDK2Tti87kalRMoOLvo tv4hSCBw67ztbSNVeIOnWBUR1oVjGJ7BUxEWwLOjAX8HgzeUKzGjA6LK3fi628sWgH zlVpXPeWlqibxIXmEP6HD4PbxZ6d54o7fuRTzk7v205ygfkKYxb3VdkqjNM4VFxiwO BA1R5JEtximRQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] ALSA: hda/realtek: Fix headset microphone on ASUS UM5606WA Reply-To: sashiko-reviews@lists.linux.dev To: =?utf-8?b?U2FsaWggRWZlIEVyZ8O8cg==?= Cc: linux-sound@vger.kernel.org In-Reply-To: <20261205160945.89431-1-mail@salihefee.com.tr> References: <20261205160945.89431-1-mail@salihefee.com.tr> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 16:24:52 +0000 X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [High] ALSA: hda/realtek: COEF 0x45 clobbered on init/runtime resume on UM5606WA - [Low] ALSA: hda/realtek: inaccurate Fixes tag citing bass speaker commit -- commit b88eaaba6dd8749eb30f3b295c901aa2770ea479 Author: Salih Efe Erg=C3=BCr > ALSA: hda/realtek: Fix headset microphone on ASUS UM5606WA > > The ASUS Zenbook S 16 UM5606WA (1043:1df3) uses an ALC294 codec, but > its existing fixup only handles speaker routing. The headset microphone > does not work with the default configuration. Retasking the microphone > pin alone exposes an input but produces only static. > > Add a board-specific fixup that combines the existing headset microphone > initialization with full headset-mode handling. Chain the existing bass > speaker fixup to preserve speaker routing, and restrict the new fixup to > the UM5606WA subsystem ID. > > Tested on an ASUS UM5606WA with Linux 7.4-rc5: headset recording and > automatic switching between headset and internal microphones work. > > Fixes: a7df7f909cec ("ALSA: hda: improve bass speaker support for ASUS Ze= nbook UM5606WA") > Signed-off-by: Salih Efe Erg=C3=BCr [Severity: Low] Should the Fixes tag be dropped? Commit a7df7f909cec ("ALSA: hda: improve bass speaker support for ASUS Zenbook UM5606WA") only added speaker DAC routing for 1043:1df3 and did not introduce a headset mic regression. If stable backporting is desired, Cc: stable@vger.kernel.org can be used instead. > diff --git a/sound/hda/codecs/realtek/alc269.c b/sound/hda/codecs/realtek= /alc269.c > index f874eb7822954..d405780530709 100644 > --- a/sound/hda/codecs/realtek/alc269.c > +++ b/sound/hda/codecs/realtek/alc269.c > @@ -3987,6 +3987,15 @@ static void alc2xx_fixup_headset_mic(struct hda_co= dec *codec, > } > } > =20 > +/* Enable headset mode while preserving UM5606WA speaker routing. */ > +static void alc294_fixup_um5606wa_headset_mode(struct hda_codec *codec, > + const struct hda_fixup *fix, > + int action) > +{ > + alc2xx_fixup_headset_mic(codec, fix, action); > + alc_fixup_headset_mode_no_hp_mic(codec, fix, action); > +} > + > static void alc245_fixup_hp_spectre_x360_eu0xxx(struct hda_codec *codec, > const struct hda_fixup *fix, int action) > { [Severity: High] Does calling both alc2xx_fixup_headset_mic() and alc_fixup_headset_mode_no_hp_mic() clobber coef 0x45 on runtime PM resume? On runtime PM resume (alc269_resume() -> alc_init()) with a headset connected, spec->current_headset_mode already holds the active mode when HDA_FIXUP_ACT_INIT runs. alc2xx_fixup_headset_mic() unconditionally overwrites coef 0x45 to 0x5289 and calls alc_combo_jack_hp_jd_restart(). alc_fixup_headset_mode() only resets spec->current_headset_mode on S3/S4 resume, not on runtime PM resume or cold boot. alc_update_headset_mode() then returns early without rewriting coef 0x45, leaving the headset broken until the jack is replugged or the capture mux changes. Also, because power_state.event remains PM_EVENT_ON during runtime resume, the unsolicited event from alc_combo_jack_hp_jd_restart() is not filtered by hda_codec_unsol_event() and can invoke alc_update_headset_mode() on bus->unsol_work concurrently with alc_init(). Applying only the pin 0x19 pincfg override ({ 0x19, 0x03a1103c }) at HDA_FIXUP_ACT_PRE_PROBE alongside alc_fixup_headset_mode_no_hp_mic() avoids this conflict. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205160945.8943= 1-1-mail@salihefee.com.tr?part=3D1