Skip to content

Commit 12831c1

Browse files
AdrianBunkJaroslav Kysela
authored andcommitted
[ALSA] sound/core/pcm.c: make snd_pcm_format_name() static
Modules: PCM Midlevel This patch makes the needlessly global snd_pcm_format_name() static. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 73864fc commit 12831c1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

include/sound/pcm.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,6 @@ ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples);
898898
const unsigned char *snd_pcm_format_silence_64(snd_pcm_format_t format);
899899
int snd_pcm_format_set_silence(snd_pcm_format_t format, void *buf, unsigned int frames);
900900
snd_pcm_format_t snd_pcm_build_linear_format(int width, int unsignd, int big_endian);
901-
const char *snd_pcm_format_name(snd_pcm_format_t format);
902901

903902
void snd_pcm_set_ops(struct snd_pcm * pcm, int direction, struct snd_pcm_ops *ops);
904903
void snd_pcm_set_sync(struct snd_pcm_substream *substream);

sound/core/pcm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ static char *snd_pcm_format_names[] = {
196196
FORMAT(U18_3BE),
197197
};
198198

199-
const char *snd_pcm_format_name(snd_pcm_format_t format)
199+
static const char *snd_pcm_format_name(snd_pcm_format_t format)
200200
{
201201
return snd_pcm_format_names[format];
202202
}

0 commit comments

Comments
 (0)