diff options
| author | Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com> | 2026-05-20 15:50:01 +0000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-05-25 13:39:32 +0100 |
| commit | bad83abb5c297b3ec843fbd5b3acdc5f91871036 (patch) | |
| tree | 84cdc98d22b1f291b236f0926bd5a7de558572cf /sound | |
| parent | e7ae89a0c97ce2b68b0983cd01eda67cf373517d (diff) | |
| download | linux-next-history-bad83abb5c297b3ec843fbd5b3acdc5f91871036.tar.gz | |
ASoC: mt8173-max98090: use standard callback to set jack
use snd_soc_component_set_jack() instead of custom callback to
max98090 codec.
This will help other drivers using the standard callback to exercise
the standard path instead of custom callback.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Link: https://patch.msgid.link/20260520155002.145306-2-srinivas.kandagatla@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
| -rw-r--r-- | sound/soc/mediatek/mt8173/mt8173-max98090.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/mediatek/mt8173/mt8173-max98090.c b/sound/soc/mediatek/mt8173/mt8173-max98090.c index 49ebb67c818a3..7533c6e4955b4 100644 --- a/sound/soc/mediatek/mt8173/mt8173-max98090.c +++ b/sound/soc/mediatek/mt8173/mt8173-max98090.c @@ -1,3 +1,4 @@ + // SPDX-License-Identifier: GPL-2.0 /* * mt8173-max98090.c -- MT8173 MAX98090 ALSA SoC machine driver @@ -9,7 +10,6 @@ #include <linux/module.h> #include <sound/soc.h> #include <sound/jack.h> -#include "../../codecs/max98090.h" static struct snd_soc_jack mt8173_max98090_jack; @@ -78,7 +78,7 @@ static int mt8173_max98090_init(struct snd_soc_pcm_runtime *runtime) return ret; } - return max98090_mic_detect(component, &mt8173_max98090_jack); + return snd_soc_component_set_jack(component, &mt8173_max98090_jack, NULL); } SND_SOC_DAILINK_DEFS(playback, |
