[PATCH 08/12] ASoC: samsung: midas_wm1811: Use standard callback to set jack

From: Amadeusz Sławiński

Date: Mon Oct 26 2026 - 16:23:05 EST


Use snd_soc_component_set_jack() instead of the driver-specific
wm8958_mic_detect() callback.

Signed-off-by: Amadeusz Sławiński <amade@xxxxxxxxxx>
---
sound/soc/samsung/midas_wm1811.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/samsung/midas_wm1811.c b/sound/soc/samsung/midas_wm1811.c
index 11466dd3539e..9f27f4cad124 100644
--- a/sound/soc/samsung/midas_wm1811.c
+++ b/sound/soc/samsung/midas_wm1811.c
@@ -425,8 +425,7 @@ static int midas_late_probe(struct snd_soc_card *card)
if (ret)
return ret;

- wm8958_mic_detect(aif1_dai->component, &priv->headset_jack,
- NULL, NULL, NULL, NULL);
+ snd_soc_component_set_jack(aif1_dai->component, &priv->headset_jack, NULL);
} else {
/* Some devices (n8000, t310) use a GPIO to detect the jack. */
ret = snd_soc_card_jack_new_pins(card, "Headset",
--
2.56.0