sound/pci/: make code static
PATCH 1/1 sound/pci/: make code static
This patch makes needlessly global code static.
Signed-off-by Adrian Bunk <[email protected]>
---
sound/pci/ac97/ac97_codec.c | 9 ++++++--- sound/pci/ac97/ac97_local.h | 3 --- sound/pci/ca0106/ca0106_proc.c | 2 +- sound/pci/hda/hda_codec.c | 6 ++++-- sound/pci/hda/patch_realtek.c | 2 +- 5 files changed, 12 insertions(+), 10 deletions(-)
sound/pci/ac97/ac97_local.h renamed from sound/pci/ac97/ac97_local.h.old +0 -3
@@ -43,9 +43,6 @@int snd_ac97_get_volsw (snd_kcontrol_t * kcontrol,snd_ctl_elem_value_t * ucontrol);int snd_ac97_put_volsw (snd_kcontrol_t * kcontrol,snd_ctl_elem_value_t * ucontrol);int snd_ac97_try_bit (ac97_t * ac97,int reg,int bit); -int snd_ac97_remove_ctl (ac97_t *ac97,const char *name,const char *suffix); -int snd_ac97_rename_ctl (ac97_t *ac97,const char *src,const char *dst,const char *suffix); -int snd_ac97_swap_ctl (ac97_t *ac97,const char *s1,const char *s2,const char *suffix);void snd_ac97_rename_vol_ctl (ac97_t *ac97,const char *src,const char *dst);void snd_ac97_restore_status (ac97_t *ac97);void snd_ac97_restore_iec958 (ac97_t *ac97);
sound/pci/ac97/ac97_codec.c renamed from sound/pci/ac97/ac97_codec.c.old +6 -3
@@ -2280,7 +2280,8 @@ }/* remove the control with the given name and optional suffix */ -int snd_ac97_remove_ctl (ac97_t *ac97,const char *name,const char *suffix) +static int snd_ac97_remove_ctl (ac97_t *ac97,const char *name, +const char *suffix) {snd_ctl_elem_id_t id;memset (&id,0 ,sizeof (id));
@@ -2299,7 +2300,8 @@ }/* rename the control with the given name and optional suffix */ -int snd_ac97_rename_ctl (ac97_t *ac97,const char *src,const char *dst,const char *suffix) +static int snd_ac97_rename_ctl (ac97_t *ac97,const char *src, +const char *dst,const char *suffix) {snd_kcontrol_t *kctl =ctl_find (ac97, src, suffix);if (kctl) {
@@ -2317,7 +2319,8 @@ }/* swap controls */ -int snd_ac97_swap_ctl (ac97_t *ac97,const char *s1,const char *s2,const char *suffix) +static int snd_ac97_swap_ctl (ac97_t *ac97,const char *s1, +const char *s2,const char *suffix) {snd_kcontrol_t *kctl1, *kctl2; kctl1 =ctl_find (ac97, s1, suffix);
sound/pci/ca0106/ca0106_proc.c renamed from sound/pci/ca0106/ca0106_proc.c.old +1 -1
@@ -95,7 +95,7 @@ }; -void snd_ca0106_proc_dump_iec958 (snd_info_buffer_t *buffer,u32 value) +static void snd_ca0106_proc_dump_iec958 (snd_info_buffer_t *buffer,u32 value) {int i;u32 status[4 ];
sound/pci/hda/hda_codec.c renamed from sound/pci/hda/hda_codec.c.old +4 -2
@@ -655,7 +655,8 @@/* * read/write AMP value. The volume is between 0 to 0x7f, 0x80 = mute bit. */ -int snd_hda_codec_amp_read (struct hda_codec *codec,hda_nid_t nid,int ch,int direction,int index) +static int snd_hda_codec_amp_read (struct hda_codec *codec,hda_nid_t nid, +int ch,int direction,int index) {struct hda_amp_info *info =get_alloc_amp_hash (codec,HDA_HASH_KEY (nid, direction, index));if (! info)
@@ -664,7 +665,8 @@return info->vol[ch]; } -int snd_hda_codec_amp_write (struct hda_codec *codec,hda_nid_t nid,int ch,int direction,int idx,int val) +static int snd_hda_codec_amp_write (struct hda_codec *codec,hda_nid_t nid, +int ch,int direction,int idx,int val) {struct hda_amp_info *info =get_alloc_amp_hash (codec,HDA_HASH_KEY (nid, direction, idx));if (! info)
sound/pci/hda/patch_realtek.c renamed from sound/pci/hda/patch_realtek.c.old +1 -1
@@ -1115,7 +1115,7 @@ { 2, NULL }, }; -snd_kcontrol_new_t alc260_base_mixer[] = { +static snd_kcontrol_new_t alc260_base_mixer[] = {HDA_CODEC_VOLUME ("PCM Playback Volume" ,0x08 ,0x0 ,HDA_OUTPUT ),HDA_CODEC_MUTE ("PCM Playback Switch" ,0x0f ,0x0 ,HDA_OUTPUT ), HDA_CODEC_VOLUME("CD Playback Volume", 0x07, 0x04, HDA_INPUT),