projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
922a5e5
)
ASoC: rockchip: Drop da7219_aad_jack_det() usage
author
Cezary Rojewski
<cezary.rojewski@intel.com>
Mon, 31 Oct 2022 16:02:24 +0000
(17:02 +0100)
committer
Mark Brown
<broonie@kernel.org>
Mon, 7 Nov 2022 13:58:16 +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-5-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rk3399_gru_sound.c
patch
|
blob
|
history
diff --git
a/sound/soc/rockchip/rk3399_gru_sound.c
b/sound/soc/rockchip/rk3399_gru_sound.c
index 2540b9ba37c80da1a678bf25666eb6bc11872759..5e52e9d60d4457d17f517de20ac4026ae0c8bc62 100644
(file)
--- a/
sound/soc/rockchip/rk3399_gru_sound.c
+++ b/
sound/soc/rockchip/rk3399_gru_sound.c
@@
-21,7
+21,6
@@
#include <sound/soc.h>
#include "rockchip_i2s.h"
#include "../codecs/da7219.h"
-#include "../codecs/da7219-aad.h"
#include "../codecs/rt5514.h"
#define DRV_NAME "rk3399-gru-sound"
@@
-226,7
+225,7
@@
static int rockchip_sound_da7219_init(struct snd_soc_pcm_runtime *rtd)
snd_jack_set_key(
rockchip_sound_jack.jack, SND_JACK_BTN_3, KEY_VOICECOMMAND);
-
da7219_aad_jack_det(component, &rockchip_sound_jack
);
+
snd_soc_component_set_jack(component, &rockchip_sound_jack, NULL
);
return 0;
}