diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2016-11-10 16:24:15 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-11-10 17:20:24 +0100 |
commit | 88c1886075e069f699c20fbc04ef6f10b8eb8c43 (patch) | |
tree | 0333ea092d2403e5eecd2253cd327f8eca50e9a7 /sound/soc/codecs/wm8997.c | |
parent | ASoC: arizona: Move notifier functions to header and make inline (diff) | |
download | linux-88c1886075e069f699c20fbc04ef6f10b8eb8c43.tar.xz linux-88c1886075e069f699c20fbc04ef6f10b8eb8c43.zip |
ASoC: arizona: Call arizona_init_notifiers for all CODECs
The call to arizona_init_notifiers was only added for CODECs that are
generating voice trigger events, however, this is somewhat annoying
for machine drivers that might be used with multiple CODECs as they
need to conditionally register for the notifier, depending on the
CODEC being attached.
As the cost of initialising the notifier is so minimal, and we may
well add other events in the future that apply to more CODECs, simply
do this for all Arizona CODECs.
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm8997.c')
-rw-r--r-- | sound/soc/codecs/wm8997.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8997.c b/sound/soc/codecs/wm8997.c index 600595c54fe7..ea8b1bfdf5a0 100644 --- a/sound/soc/codecs/wm8997.c +++ b/sound/soc/codecs/wm8997.c @@ -1063,6 +1063,7 @@ static int wm8997_codec_probe(struct snd_soc_codec *codec) struct wm8997_priv *priv = snd_soc_codec_get_drvdata(codec); arizona_init_spk(codec); + arizona_init_notifiers(codec); snd_soc_dapm_disable_pin(dapm, "HAPTICS"); |