diff options
| author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-07-29 06:42:23 -0400 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2008-07-29 10:00:33 -0400 |
| commit | 11589418a1c4cf68be9367f802898d35e07809c4 (patch) | |
| tree | f4a0b55008e866baa10e58e320bf57d6d618191d | |
| parent | 877db3c1af24a65f78ae865b1fb642165e065a8b (diff) | |
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>
| -rw-r--r-- | include/sound/soc-dapm.h | 3 | ||||
| -rw-r--r-- | sound/soc/soc-dapm.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index 3030fdc6981d..c1b26fcc0b5c 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h | |||
| @@ -202,6 +202,9 @@ struct snd_soc_dapm_path; | |||
| 202 | struct snd_soc_dapm_pin; | 202 | struct snd_soc_dapm_pin; |
| 203 | struct snd_soc_dapm_route; | 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 | /* dapm controls */ | 208 | /* dapm controls */ |
| 206 | int snd_soc_dapm_put_volsw(struct snd_kcontrol *kcontrol, | 209 | int snd_soc_dapm_put_volsw(struct snd_kcontrol *kcontrol, |
| 207 | struct snd_ctl_elem_value *ucontrol); | 210 | struct snd_ctl_elem_value *ucontrol); |
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 820347c9ae4b..f9d100bc8479 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
| @@ -470,6 +470,7 @@ int dapm_reg_event(struct snd_soc_dapm_widget *w, | |||
| 470 | 470 | ||
| 471 | return 0; | 471 | return 0; |
| 472 | } | 472 | } |
| 473 | EXPORT_SYMBOL_GPL(dapm_reg_event); | ||
| 473 | 474 | ||
| 474 | /* | 475 | /* |
| 475 | * Scan each dapm widget for complete audio path. | 476 | * Scan each dapm widget for complete audio path. |
