[PATCH 05/12] ASoC: tegra: tegra_wm8962: Use standard callback to set jack
From: Amadeusz Sławiński
Date: Mon Oct 26 2026 - 16:24:52 EST
Use snd_soc_component_set_jack() instead of the driver-specific
wm8962_mic_detect() callback.
Signed-off-by: Amadeusz Sławiński <amade@xxxxxxxxxx>
---
sound/soc/tegra/tegra_wm8962.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/tegra/tegra_wm8962.c b/sound/soc/tegra/tegra_wm8962.c
index 31f9d9181595..1ace9261a0f3 100644
--- a/sound/soc/tegra/tegra_wm8962.c
+++ b/sound/soc/tegra/tegra_wm8962.c
@@ -89,7 +89,7 @@ static int tegra_wm8962_init(struct snd_soc_pcm_runtime *rtd)
return err;
}
- wm8962_mic_detect(component, machine->mic_jack);
+ snd_soc_component_set_jack(component, machine->mic_jack, NULL);
}
snd_soc_dapm_force_enable_pin(dapm, "MICBIAS");
@@ -104,7 +104,7 @@ static int tegra_wm8962_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;
- wm8962_mic_detect(component, NULL);
+ snd_soc_component_set_jack(component, NULL, NULL);
return 0;
}
--
2.56.0