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

Commit a53fc188 authored by Clemens Ladisch's avatar Clemens Ladisch Committed by Jaroslav Kysela
Browse files

[ALSA] make local objects static



Memalloc module,PCM Midlevel,Timer Midlevel,GUS Library,AC97 Codec
ALI5451 driver,RME9652 driver
Make some functions/variables that are used in only one file static.

Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
parent b65f824c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -512,7 +512,7 @@ static void free_all_reserved_pages(void)
 * proc file interface
 */
#define SND_MEM_PROC_FILE	"driver/snd-page-alloc"
struct proc_dir_entry *snd_mem_proc;
static struct proc_dir_entry *snd_mem_proc;

static int snd_mem_proc_read(char *page, char **start, off_t off,
			     int count, int *eof, void *data)
+2 −2
Original line number Diff line number Diff line
@@ -1584,7 +1584,7 @@ int snd_pcm_hw_param_set(snd_pcm_t *pcm, snd_pcm_hw_params_t *params,
	return snd_pcm_hw_param_value(params, var, NULL);
}

int _snd_pcm_hw_param_mask(snd_pcm_hw_params_t *params,
static int _snd_pcm_hw_param_mask(snd_pcm_hw_params_t *params,
				  snd_pcm_hw_param_t var, const snd_mask_t *val)
{
	int changed;
+2 −2
Original line number Diff line number Diff line
@@ -799,13 +799,13 @@ static int snd_timer_free(snd_timer_t *timer)
	return 0;
}

int snd_timer_dev_free(snd_device_t *device)
static int snd_timer_dev_free(snd_device_t *device)
{
	snd_timer_t *timer = device->device_data;
	return snd_timer_free(timer);
}

int snd_timer_dev_register(snd_device_t *dev)
static int snd_timer_dev_register(snd_device_t *dev)
{
	snd_timer_t *timer = dev->device_data;
	snd_timer_t *timer1;
+4 −2
Original line number Diff line number Diff line
@@ -269,7 +269,8 @@ void snd_gf1_i_write_addr(snd_gus_card_t * gus, unsigned char reg,

#endif  /*  0  */

unsigned int snd_gf1_i_read_addr(snd_gus_card_t * gus,
#ifdef CONFIG_SND_DEBUG
static unsigned int snd_gf1_i_read_addr(snd_gus_card_t * gus,
					unsigned char reg, short w_16bit)
{
	unsigned int res;
@@ -280,6 +281,7 @@ unsigned int snd_gf1_i_read_addr(snd_gus_card_t * gus,
	spin_unlock_irqrestore(&gus->reg_lock, flags);
	return res;
}
#endif

/*

+4 −4
Original line number Diff line number Diff line
@@ -375,7 +375,7 @@ AC97_DOUBLE("Front Playback Volume", AC97_WM97XX_FMIXER_VOL, 8, 0, 31, 1),
AC97_SINGLE("Front Playback Switch", AC97_WM97XX_FMIXER_VOL, 15, 1, 1),
};

int patch_wolfson_wm9703_specific(ac97_t * ac97)
static int patch_wolfson_wm9703_specific(ac97_t * ac97)
{
	/* This is known to work for the ViewSonic ViewPad 1000
	 * Randolph Bentson <bentson@holmsjoen.com>
@@ -410,7 +410,7 @@ AC97_DOUBLE("Rear DAC Volume", AC97_WM9704_RPCM_VOL, 8, 0, 31, 1),
AC97_DOUBLE("Surround Volume", AC97_SURROUND_MASTER, 8, 0, 31, 1),
};

int patch_wolfson_wm9704_specific(ac97_t * ac97)
static int patch_wolfson_wm9704_specific(ac97_t * ac97)
{
	int err, i;
	for (i = 0; i < ARRAY_SIZE(wm9704_snd_ac97_controls); i++) {
@@ -433,7 +433,7 @@ int patch_wolfson04(ac97_t * ac97)
	return 0;
}

int patch_wolfson_wm9705_specific(ac97_t * ac97)
static int patch_wolfson_wm9705_specific(ac97_t * ac97)
{
	int err, i;
	for (i = 0; i < ARRAY_SIZE(wm97xx_snd_ac97_controls); i++) {
@@ -558,7 +558,7 @@ AC97_SINGLE("Headphone ZC Switch", AC97_HEADPHONE, 7, 1, 0),
AC97_SINGLE("Mono ZC Switch", AC97_MASTER_MONO, 7, 1, 0),
};

int patch_wolfson_wm9711_specific(ac97_t * ac97)
static int patch_wolfson_wm9711_specific(ac97_t * ac97)
{
	int err, i;
	
Loading