]> err.no Git - linux-2.6/commitdiff
[ALSA] sound/core/pcm.c: make snd_pcm_format_name() static
authorAdrian Bunk <bunk@stusta.de>
Tue, 11 Apr 2006 09:12:46 +0000 (11:12 +0200)
committerJaroslav Kysela <perex@suse.cz>
Wed, 12 Apr 2006 09:34:21 +0000 (11:34 +0200)
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>
include/sound/pcm.h
sound/core/pcm.c

index e9ab45556afadb693155d502558bf67a8bb8dcd2..df70e7592ab5dace9547942beadb73a08b75887a 100644 (file)
@@ -898,7 +898,6 @@ ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples);
 const unsigned char *snd_pcm_format_silence_64(snd_pcm_format_t format);
 int snd_pcm_format_set_silence(snd_pcm_format_t format, void *buf, unsigned int frames);
 snd_pcm_format_t snd_pcm_build_linear_format(int width, int unsignd, int big_endian);
-const char *snd_pcm_format_name(snd_pcm_format_t format);
 
 void snd_pcm_set_ops(struct snd_pcm * pcm, int direction, struct snd_pcm_ops *ops);
 void snd_pcm_set_sync(struct snd_pcm_substream *substream);
index 5d7eb123b99905df015d941b0a8b9aaca8f8ff6e..122e10a61ab9c7e788c68e8991965ec3dd8beb6e 100644 (file)
@@ -196,7 +196,7 @@ static char *snd_pcm_format_names[] = {
        FORMAT(U18_3BE),
 };
 
-const char *snd_pcm_format_name(snd_pcm_format_t format)
+static const char *snd_pcm_format_name(snd_pcm_format_t format)
 {
        return snd_pcm_format_names[format];
 }