[PATCH v2 0/2] ASoC: codecs: max98090: switch to standard set_jack callback

Srinivas Kandagatla posted 2 patches 4 days, 5 hours ago
sound/soc/codecs/max98090.c                 | 10 +++++-----
sound/soc/codecs/max98090.h                 |  3 ---
sound/soc/mediatek/mt8173/mt8173-max98090.c |  4 ++--
3 files changed, 7 insertions(+), 10 deletions(-)
[PATCH v2 0/2] ASoC: codecs: max98090: switch to standard set_jack callback
Posted by Srinivas Kandagatla 4 days, 5 hours ago
The MAX98090 codec driver currently exposes a custom
max98090_mic_detect() helper for machine drivers to register a headset
jack.

This series converts the driver to use the standard component
.set_jack callback and updates the mt8173-max98090 machine driver to use
snd_soc_component_set_jack() instead of the codec-specific helper.

Using the standard callback removes the need for a custom exported
symbol and allows machine drivers to use the common ASoC jack
registration interface. This also improves compatibility with machine
drivers, such as Qualcomm platforms, that already rely on
snd_soc_component_set_jack().


Changes since v1:
	- reordered patches for build failure fixes.
	- fixed typo on mt8173 patch.

Srinivas Kandagatla (2):
  ASoC: mt8173-max98090: use standard callback to set jack
  ASoC: codecs: max98090: use component set_jack callback

 sound/soc/codecs/max98090.c                 | 10 +++++-----
 sound/soc/codecs/max98090.h                 |  3 ---
 sound/soc/mediatek/mt8173/mt8173-max98090.c |  4 ++--
 3 files changed, 7 insertions(+), 10 deletions(-)

-- 
2.47.3