OSDN Git Service

ASoC: amd: Drop da7219_aad_jack_det() usage
authorCezary Rojewski <cezary.rojewski@intel.com>
Mon, 31 Oct 2022 16:02:25 +0000 (17:02 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 7 Nov 2022 13:58:17 +0000 (13:58 +0000)
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>
sound/soc/amd/acp-da7219-max98357a.c

index ef1b4ce..375417b 100644 (file)
@@ -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;
 }