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=1796383776; b=HTy9zdZbFLtOeU3Qn1NWkOmQszIv6AYwKHnPE181QgyozeBjKcT6Tl6HSBnuaA750ka+ T1mrVI6aXocWWBXz1smzwuZ4rPkGRXNfhYIL61iECL/vee0x+raoDHZs7YMjBFhjFrumi zp/9+m49lR9GBPO7EvEvyz/3v1B8riD/Vn0QZfI5aScEfuPYjIDv/n1SNtRoww7SxFG5s lOn2ZoJwtUlmUYR2pyuV3+JIAx6QWTqMcBwHNbWN6muYBQuvG+47na4PtwCYDn6RmGDd6 iHive/Na73DpTOTSJahlRDtnHny0gkj7DjSy/XOpILNK/dSYpyJml3CbSXcPToI/KfA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383776; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=n/noK3+mBrgpyzi4IN/tw+0V4H0SinPMKtm9TBEsjXA=; b=M0sgg96CfL5lwYCrUpV1k6MFvSozYlniukL/SP/UgqWqIXt9k1inRy4ook6ZlNsn1f3u +uPJw+evMYYRvzEbEuXO5CamWbh99RK7JsLR3PWtxU0OfZzezfXlyfBlRqDo1LxRGTAyv 9EZan4bK0PCkvCUhGMDOuJSGYKA3krLPIGH/sZs1Q8U00zECHlFzj0zCdRmjGRd6v20bB Eho6FkwxxHQTIvYXkFbDbcZH6xOrhmgRdjLMt5wKAqqCu1Bxcx//jCp26bABqG3H0Cx07 9vLD+YR7BDYOxYtRS5cLP0q8p9+4B+r/wALYc3yQ55wVP1SLJuLJkZY3ryys+PFMLcg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=0Wt1k1Ug; 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 73B87606A322; Fri, 4 Dec 2026 11:29:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=0Wt1k1Ug Received: by smtp.kernel.org (Postfix) with ESMTPSA id B51101F00935; Fri, 4 Dec 2026 11:29:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796383776; bh=n/noK3+mBrgpyzi4IN/tw+0V4H0SinPMKtm9TBEsjXA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=0Wt1k1UgneEaZTWovwX5gYdyy2EutARR0x1gJbuC7uL2cq1TdswW6c2cRXOZIHWvh 5YHX/0I89s65Qt3C/jCpALhZlPNtZsMfVK2Nr9DVRdZqvPXu0o7F1U4cpoTjJbNPNc A76fcUfZIt95kD17IfO63yfSYde2vQwDck+kWg2E= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Chen Yuxi , Charles Keepax , Sebastian Krzyszkowiak , Mark Brown Subject: [PATCH 6.12 362/555] ASoC: wm8962: Fix broken headset button caused by wrong guard constant Date: Fri, 4 Dec 2026 19:06:45 +0900 Message-ID: <20261204100623.746021583@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100603.988357525@linuxfoundation.org> References: <20261204100603.988357525@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Chen Yuxi commit fd3b0fc97ea72d027359e7603a1224703cec1864 upstream. Commit e59075211902 ("ASoC: wm8962: Don't report a microphone if it's shorted to ground on plug") guards the mic short report by testing wm8962->mic_status against WM8962_MICDET_STS. But mic_status stores the reported jack status, composed of SND_JACK_MICROPHONE and SND_JACK_BTN_0, which never has WM8962_MICDET_STS set. The guard is therefore always true, so every mic short event reports nothing. Pressing the button on a TRRS headset shorts the mic pin to ground, which used to be reported as SND_JACK_BTN_0. After that commit the button press is silently dropped, breaking the headset button on all wm8962 boards using the mic detect path. Test mic_status against SND_JACK_MICROPHONE instead, restoring the intended behaviour: suppress the report only when no microphone was previously detected, i.e. a TRS plug in a TRRS socket. Fixes: e59075211902 ("ASoC: wm8962: Don't report a microphone if it's shorted to ground on plug") Cc: stable@vger.kernel.org Signed-off-by: Chen Yuxi Reviewed-by: Charles Keepax Reviewed-by: Sebastian Krzyszkowiak Link: https://patch.msgid.link/20261117070516.3861828-1-chenyuxi19@huawei.com Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- sound/soc/codecs/wm8962.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -3079,7 +3079,7 @@ static void wm8962_mic_work(struct work_ /* Don't report a microphone if it's shorted right after * plugging in, as this may be a TRS plug in a TRRS socket. */ - if (!(wm8962->mic_status & WM8962_MICDET_STS)) + if (!(wm8962->mic_status & SND_JACK_MICROPHONE)) status = 0; }