summaryrefslogtreecommitdiff
path: root/sound/soc/intel/boards/skl_rt286.c
diff options
context:
space:
mode:
authorCezary Rojewski <cezary.rojewski@intel.com>2022-06-09 16:35:32 +0300
committerMark Brown <broonie@kernel.org>2022-06-10 15:32:17 +0300
commit3082afe097cc5d794c28a629f3492a0133ee4891 (patch)
tree46ca892e4b969f27988ba275bb292eb1dd9b366d /sound/soc/intel/boards/skl_rt286.c
parenta43b4394bb35391b74486a788be6634ed91e221a (diff)
downloadlinux-3082afe097cc5d794c28a629f3492a0133ee4891.tar.xz
ASoC: codecs: rt286: Reorganize jack detect handling
Clean up in order to use and expose .set_jack callback. Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Link: https://lore.kernel.org/r/20220609133541.3984886-3-amadeuszx.slawinski@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards/skl_rt286.c')
-rw-r--r--sound/soc/intel/boards/skl_rt286.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/boards/skl_rt286.c b/sound/soc/intel/boards/skl_rt286.c
index e9f9520dcea4..4f3d655e2bfa 100644
--- a/sound/soc/intel/boards/skl_rt286.c
+++ b/sound/soc/intel/boards/skl_rt286.c
@@ -133,7 +133,7 @@ static int skylake_rt286_codec_init(struct snd_soc_pcm_runtime *rtd)
if (ret)
return ret;
- rt286_mic_detect(component, &skylake_headset);
+ snd_soc_component_set_jack(component, &skylake_headset, NULL);
snd_soc_dapm_ignore_suspend(&rtd->card->dapm, "SoC DMIC");