Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88c18860 authored by Charles Keepax's avatar Charles Keepax Committed by Mark Brown
Browse files

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: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d3d5c905
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1945,6 +1945,7 @@ static int wm5102_codec_probe(struct snd_soc_codec *codec)

	arizona_init_spk(codec);
	arizona_init_gpio(codec);
	arizona_init_notifiers(codec);

	snd_soc_dapm_disable_pin(dapm, "HAPTICS");

+1 −0
Original line number Diff line number Diff line
@@ -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");

+1 −0
Original line number Diff line number Diff line
@@ -1325,6 +1325,7 @@ static int wm8998_codec_probe(struct snd_soc_codec *codec)

	arizona_init_spk(codec);
	arizona_init_gpio(codec);
	arizona_init_notifiers(codec);

	snd_soc_dapm_disable_pin(dapm, "HAPTICS");