aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c
diff options
context:
space:
mode:
authorOder Chiou <oder_chiou@realtek.com>2018-05-15 14:00:15 +0800
committerMark Brown <broonie@kernel.org>2018-05-17 13:33:23 +0900
commit37a0491116994ba92ec94a98aa6bfbe8f8d7236f (patch)
tree5af71b5853d08b7da861b9ff228b39ca9c4228b7 /sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c
parentASoC: omap: sdma-pcm: Correction for the include files (diff)
downloadlinux-37a0491116994ba92ec94a98aa6bfbe8f8d7236f.tar.xz
linux-37a0491116994ba92ec94a98aa6bfbe8f8d7236f.zip
ASoC: rt5663: Use the set_jack() instead of the export function
The patch replaces the export function with the new API set_jack(). Signed-off-by: Oder Chiou <oder_chiou@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c')
-rw-r--r--sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c b/sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c
index e8382d6bbd8c..92f5fb2ae0a3 100644
--- a/sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c
+++ b/sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c
@@ -200,7 +200,7 @@ static int kabylake_rt5663_codec_init(struct snd_soc_pcm_runtime *rtd)
snd_jack_set_key(jack->jack, SND_JACK_BTN_2, KEY_VOLUMEUP);
snd_jack_set_key(jack->jack, SND_JACK_BTN_3, KEY_VOLUMEDOWN);
- rt5663_set_jack_detect(component, &ctx->kabylake_headset);
+ snd_soc_component_set_jack(component, &ctx->kabylake_headset, NULL);
ret = snd_soc_dapm_ignore_suspend(&rtd->card->dapm, "DMIC");
if (ret)