]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: codecs: max98090: use component set_jack callback
authorSrinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Wed, 20 May 2026 15:50:02 +0000 (15:50 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 25 May 2026 12:39:33 +0000 (13:39 +0100)
commite2c428c3832ef054f494bf5dcd0f740616f9bcae
tree75c41d8de525cf1779833153088c41160834244f
parentbad83abb5c297b3ec843fbd5b3acdc5f91871036
ASoC: codecs: max98090: use component set_jack callback

The MAX98090 driver provides a custom max98090_mic_detect() helper for
machine drivers to register a jack.

This can be implemented using the standard component set_jack callback
instead. Doing so allows machine drivers to use
snd_soc_component_set_jack(), which is also the interface used by
machine drivers including Qualcomm ones.

Convert max98090_mic_detect() to a component set_jack callback and remove
the exported helper.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Link: https://patch.msgid.link/20260520155002.145306-3-srinivas.kandagatla@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/max98090.c
sound/soc/codecs/max98090.h