[PATCH 06/12] ASoC: tegra: tegra_wm8994: Use standard callback to set jack
From: Amadeusz Sławiński
Date: Mon Oct 26 2026 - 16:25:33 EST
Use snd_soc_component_set_jack() instead of the driver-specific
wm8994_mic_detect() callback.
Signed-off-by: Amadeusz Sławiński <amade@xxxxxxxxxx>
---
sound/soc/tegra/tegra_wm8994.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/tegra/tegra_wm8994.c b/sound/soc/tegra/tegra_wm8994.c
index 1550faeba725..11e0ad96caf4 100644
--- a/sound/soc/tegra/tegra_wm8994.c
+++ b/sound/soc/tegra/tegra_wm8994.c
@@ -98,7 +98,7 @@ static int tegra_wm8994_init(struct snd_soc_pcm_runtime *rtd)
return err;
}
- wm8994_mic_detect(component, machine->mic_jack, 1);
+ snd_soc_component_set_jack(component, machine->mic_jack, NULL);
}
return 0;
@@ -113,7 +113,7 @@ static int tegra_wm8994_remove(struct snd_soc_card *card)
struct snd_soc_component *component = codec_dai->component;
if (!machine->gpiod_mic_det && machine->asoc->add_mic_jack)
- wm8994_mic_detect(component, NULL, 1);
+ snd_soc_component_set_jack(component, NULL, NULL);
return 0;
}
--
2.56.0