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=1796380866; b=bgt1DMy+Bqes9vFo39Zy3PJ/s0p7lknwdT5W4mEwRvPcuGx8u7HedAEF48wYWIEdaiY3 onl5Beq0n7ir1i45HXhxWcWp5/LOLB2e08879Wkqh/pysZKnReUwNMZtSaTnc/XekaPxt /SfvvZxiSUpyXymF1IgS+eYiVjf4daAGF92pXGBDrDq+kKys2U2nptevX5sWKVT8fisPo vxWw06QSldZkEHr0IGdqOgl+xI5EZpe48z4mgKgFlLn7ueiw7SoxE/+sqoscW8xo6+6JE V0NcKg03sJ11X3VbsY0J8GT6kkQ5oF6TpU8/Rl1fLRfSUW11ajZZBrQbxLjSpDtH27g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796380866; 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=EE50r5KKBr/4RDnaZqxv/1H1PMKtmYGcBeD3h0Gy3dU=; b=35YCEtRL2dYDCZWVz+moN6fn4yjv7uy1Hem4P1tfWKPMJlNQy53Gs/vZC2fmxB4OtO4n uxarfVPk4QD06n+aUKXeqXHzolOE9HGSA+l6enMw8RCBv92QGzEaUiIYHhOurLvsWjPD4 kejfPco1+IZMXA2mdKpfrcfhnQnn90H9oJEGbsqRb9/8m0796rNEiWIB2Ynu/4KYSsFKW cD0A2qhmWYbv1k+K/vtmtCgFxNen3AcOgO/9FMvIrc36QbEEpMGGfVpNuBY2R992aACUG 8iCJSPKJIUTmKvaWhwZYGwSpoz9w3WqLh6+JckxS+DImlgWbUgWpWbqDBHfxJ28SauA== 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="F/CcGTOf"; 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 BF368606A322; Fri, 4 Dec 2026 10:41:06 +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=F/CcGTOf Received: by smtp.kernel.org (Postfix) with ESMTPSA id 375041F000CE; Fri, 4 Dec 2026 10:41:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796380866; bh=EE50r5KKBr/4RDnaZqxv/1H1PMKtmYGcBeD3h0Gy3dU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=F/CcGTOfiR1gSoZy5TB2pejM5zJpFewcaRGpp0xhTd9Sd1PanJy8UxtQx0SgQ4OVC BK+/5Z1i2inSkrTPsV5SzJCGsBJEUroqzBOQpdN97CJYQ4p71cAXWU3OMOT79Vb6hE Ig+xpEt9Qp/rZtpbmxIdL2tstT66A+O7xhHebwF0= 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 7.3 441/742] ASoC: wm8962: Fix broken headset button caused by wrong guard constant Date: Fri, 4 Dec 2026 19:05:05 +0900 Message-ID: <20261204100646.873779448@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@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 7.3-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 @@ -3109,7 +3109,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; }