Commit 11589418a1c4cf68be9367f802898d35e07809c4

Authored by Mark Brown
Committed by Takashi Iwai
1 parent 877db3c1af

ALSA: ASoC: Export dapm_reg_event() fully

dapm_reg_event() is used by devices using SND_SOC_DAPM_REG() so needs to
be exported to support building them as modules and prototyped to avoid
sparse warnings and potential build issues.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

Showing 2 changed files with 4 additions and 0 deletions Side-by-side Diff

include/sound/soc-dapm.h
... ... @@ -202,6 +202,9 @@
202 202 struct snd_soc_dapm_pin;
203 203 struct snd_soc_dapm_route;
204 204  
  205 +int dapm_reg_event(struct snd_soc_dapm_widget *w,
  206 + struct snd_kcontrol *kcontrol, int event);
  207 +
205 208 /* dapm controls */
206 209 int snd_soc_dapm_put_volsw(struct snd_kcontrol *kcontrol,
207 210 struct snd_ctl_elem_value *ucontrol);
sound/soc/soc-dapm.c
... ... @@ -470,6 +470,7 @@
470 470  
471 471 return 0;
472 472 }
  473 +EXPORT_SYMBOL_GPL(dapm_reg_event);
473 474  
474 475 /*
475 476 * Scan each dapm widget for complete audio path.