[PATCH 04/12] ASoC: tegra: tegra_wm8903: Use standard callback to set jack
From: Amadeusz Sławiński
Date: Mon Oct 26 2026 - 16:21:38 EST
Use snd_soc_component_set_jack() instead of the driver-specific
wm8903_mic_detect() callback.
Signed-off-by: Amadeusz Sławiński <amade@xxxxxxxxxx>
---
sound/soc/tegra/tegra_wm8903.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/sound/soc/tegra/tegra_wm8903.c b/sound/soc/tegra/tegra_wm8903.c
index 91180f4cfe17..efd46d4407e6 100644
--- a/sound/soc/tegra/tegra_wm8903.c
+++ b/sound/soc/tegra/tegra_wm8903.c
@@ -93,8 +93,7 @@ static int tegra_wm8903_init(struct snd_soc_pcm_runtime *rtd)
if (of_property_read_bool(card->dev->of_node, "nvidia,headset"))
shrt = SND_JACK_MICROPHONE;
- wm8903_mic_detect(component, machine->mic_jack,
- SND_JACK_MICROPHONE, shrt);
+ snd_soc_component_set_jack(component, machine->mic_jack, &shrt);
}
snd_soc_dapm_force_enable_pin(dapm, "MICBIAS");
@@ -109,7 +108,7 @@ static int tegra_wm8903_remove(struct snd_soc_card *card)
struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0);
struct snd_soc_component *component = codec_dai->component;
- wm8903_mic_detect(component, NULL, 0, 0);
+ snd_soc_component_set_jack(component, NULL, NULL);
return 0;
}
--
2.56.0