aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2006-11-28 06:10:09 -0500
committerJaroslav Kysela <perex@suse.cz>2007-02-09 03:02:13 -0500
commitd9c96cf35b70b484483446c92f27652f3aef977e (patch)
tree2ecacb2b535c974501e675fb532834e56cd1037d /sound/soc
parentbd869485993f73c303b565da5548bb4e77063c54 (diff)
[ALSA] sound/soc/soc-dapm.c: make 4 functions static
Make the following needlessly global functions static: - dapm_power_widgets() - dapm_mux_update_power() - dapm_mixer_update_power() - dapm_free_widgets() Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/soc-dapm.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 2c2c27f4e9c0..411651dc9d1d 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -463,7 +463,7 @@ static int is_connected_input_ep(struct snd_soc_dapm_widget *widget)
463 * o Input pin to Output pin (bypass, sidetone) 463 * o Input pin to Output pin (bypass, sidetone)
464 * o DAC to ADC (loopback). 464 * o DAC to ADC (loopback).
465 */ 465 */
466int dapm_power_widgets(struct snd_soc_codec *codec, int event) 466static int dapm_power_widgets(struct snd_soc_codec *codec, int event)
467{ 467{
468 struct snd_soc_dapm_widget *w; 468 struct snd_soc_dapm_widget *w;
469 int in, out, i, c = 1, *seq = NULL, ret = 0, power_change, power; 469 int in, out, i, c = 1, *seq = NULL, ret = 0, power_change, power;
@@ -664,8 +664,9 @@ static void dbg_dump_dapm(struct snd_soc_codec* codec, const char *action)
664#endif 664#endif
665 665
666/* test and update the power status of a mux widget */ 666/* test and update the power status of a mux widget */
667int dapm_mux_update_power(struct snd_soc_dapm_widget *widget, 667static int dapm_mux_update_power(struct snd_soc_dapm_widget *widget,
668 struct snd_kcontrol *kcontrol, int mask, int val, struct soc_enum* e) 668 struct snd_kcontrol *kcontrol, int mask,
669 int val, struct soc_enum* e)
669{ 670{
670 struct snd_soc_dapm_path *path; 671 struct snd_soc_dapm_path *path;
671 int found = 0; 672 int found = 0;
@@ -697,11 +698,11 @@ int dapm_mux_update_power(struct snd_soc_dapm_widget *widget,
697 698
698 return 0; 699 return 0;
699} 700}
700EXPORT_SYMBOL_GPL(dapm_mux_update_power);
701 701
702/* test and update the power status of a mixer widget */ 702/* test and update the power status of a mixer widget */
703int dapm_mixer_update_power(struct snd_soc_dapm_widget *widget, 703static int dapm_mixer_update_power(struct snd_soc_dapm_widget *widget,
704 struct snd_kcontrol *kcontrol, int reg, int val_mask, int val, int invert) 704 struct snd_kcontrol *kcontrol, int reg,
705 int val_mask, int val, int invert)
705{ 706{
706 struct snd_soc_dapm_path *path; 707 struct snd_soc_dapm_path *path;
707 int found = 0; 708 int found = 0;
@@ -733,7 +734,6 @@ int dapm_mixer_update_power(struct snd_soc_dapm_widget *widget,
733 734
734 return 0; 735 return 0;
735} 736}
736EXPORT_SYMBOL_GPL(dapm_mixer_update_power);
737 737
738/* show dapm widget status in sys fs */ 738/* show dapm widget status in sys fs */
739static ssize_t dapm_widget_show(struct device *dev, 739static ssize_t dapm_widget_show(struct device *dev,
@@ -808,7 +808,7 @@ static void snd_soc_dapm_sys_remove(struct device *dev)
808} 808}
809 809
810/* free all dapm widgets and resources */ 810/* free all dapm widgets and resources */
811void dapm_free_widgets(struct snd_soc_codec *codec) 811static void dapm_free_widgets(struct snd_soc_codec *codec)
812{ 812{
813 struct snd_soc_dapm_widget *w, *next_w; 813 struct snd_soc_dapm_widget *w, *next_w;
814 struct snd_soc_dapm_path *p, *next_p; 814 struct snd_soc_dapm_path *p, *next_p;