diff options
author | Cezary Rojewski <cezary.rojewski@intel.com> | 2022-10-31 19:02:25 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-11-07 16:58:17 +0300 |
commit | ba54da32ec683692ed69ffbed5b4afb414def7d2 (patch) | |
tree | a0476d8b6d1319945385aa2db404ef9543a6d04c /sound/soc/amd/acp-da7219-max98357a.c | |
parent | ebe62df7c50e63d11c7fdfbdff701583cd4f1f3a (diff) | |
download | linux-ba54da32ec683692ed69ffbed5b4afb414def7d2.tar.xz |
ASoC: amd: Drop da7219_aad_jack_det() usage
Do not access the internal function directly, do so through
component->set_jack() instead.
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20221031160227.2352630-6-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/acp-da7219-max98357a.c')
-rw-r--r-- | sound/soc/amd/acp-da7219-max98357a.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp-da7219-max98357a.c index ef1b4cefc273..375417bd7d6e 100644 --- a/sound/soc/amd/acp-da7219-max98357a.c +++ b/sound/soc/amd/acp-da7219-max98357a.c @@ -21,7 +21,6 @@ #include "acp.h" #include "../codecs/da7219.h" -#include "../codecs/da7219-aad.h" #include "../codecs/rt5682.h" #define CZ_PLAT_CLK 48000000 @@ -82,7 +81,7 @@ static int cz_da7219_init(struct snd_soc_pcm_runtime *rtd) snd_jack_set_key(cz_jack.jack, SND_JACK_BTN_2, KEY_VOLUMEDOWN); snd_jack_set_key(cz_jack.jack, SND_JACK_BTN_3, KEY_VOICECOMMAND); - da7219_aad_jack_det(component, &cz_jack); + snd_soc_component_set_jack(component, &cz_jack, NULL); return 0; } |