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=1796389244; b=Xp6t8dbY7bAnnM+Kmt3vUUKSLHHrqliwc+uBwA6AnEBiwIPHF/oMsRwwgEQqMirJe3hl JMCYww50LeAY6TPntXGvaFWkGJjz4rjKwK9gKiGEnFhRGLgMv4GHKIhi388p+xEig9NM3 dVQvVdLrGAavVdvrYBYMN4MM78VfHNUoTjOtF1TMWOaBLkqCoafyiy/esJwC/sUFIxCFS t3QasPpEbzQuo0yo4AycWJ8kjXu0gfXqChhIEeVzivAZU/74Q566MZaZN7hVgXMzK1REz ntLhSopjC4c406ekPSM5ZPAoaRdudtoO+cwGTOvONKt1SzMPruaK3t9UbzAFO3fQ/Yw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796389244; 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=EiDKUFHu1iCaPuHyRWbJahLi9Ogv3N8QjEvp1noNIIE=; b=zeO15bx7QSQUL0P2T346GqVXlT6YYt6IDRVN0lVrliJ1EzuWxEDHg6x6ZzaFTadz7uFq 2lz+NFpDxRl7umoq9kPkcZrMWYc6s4k+mo1yf9CC7BMfpGuN1hpfZ5qXB8IomUNY3BRYh 7ot05KKMhv84cHKCDVVzkQaDbCaE9PAg0JdTuLSpZ1fIPLOfEhbg8ILejHdNZG8P4voG/ b5sUDmdtwSYFKGQ/zUXZnnI7Riz4sc5pgG6r7NcrQ2p6bDrnKHoSLbZXx41iCYupsgRzE ttfWToj8ULZXalQZPbzO2XRfSX9YGTPNNQRL1khTjhwO6admL/z/R3ZZZwutmfMfKgg== 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=WnMz1RT3; 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 63511606A32D; Fri, 4 Dec 2026 13:00:44 +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=WnMz1RT3 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D20FC1F000C2; Fri, 4 Dec 2026 13:00:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796389244; bh=EiDKUFHu1iCaPuHyRWbJahLi9Ogv3N8QjEvp1noNIIE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=WnMz1RT3zgMzmqRzRBMvfghrOeNJBIrquRvypJlqT7hZb5bXYSoO7X01sOqjLBDU7 4+cGW0Bh8S8qEU25RKSf3SB65CrmDaJRCKLjqRxgZrtDPCyaEeEjUcTRTGr3bvsE9H V4GdJag9/tDbXjAUXdu/tNbSgyc3sjATL+fr6m88= 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.1 0918/1059] ASoC: wm8962: Fix broken headset button caused by wrong guard constant Date: Fri, 4 Dec 2026 19:07:29 +0900 Message-ID: <20261204100707.800222833@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-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; }