]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: wm8962: Don't report a microphone if it's shorted to ground on plug
authorSebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Mon, 5 Jan 2026 03:02:10 +0000 (04:02 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 12 Jan 2026 12:36:50 +0000 (12:36 +0000)
commite590752119029d87ce46d725e11245a52d22e1fe
tree41049a1aa3ef08d90a6ce3bce7cbbdbedc5841bb
parent66c26346ae30c883eef70acf9cf9054dfdb4fb2f
ASoC: wm8962: Don't report a microphone if it's shorted to ground on plug

This usually means that a TRS plug with no microphone pin has been plugged
into a TRRS socket. Cases where a user is plugging in a microphone while
pressing a button will be handled via incoming interrupt after the user
releases the button, so the microphone will still be detected once it
becomes usable.

Signed-off-by: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20260105-wm8962-l5-fixes-v1-3-f4f4eeacf089@puri.sm
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8962.c