* [2.6 patch] sound/core/pcm.c: make snd_pcm_format_name() static
@ 2006-04-10 22:18 Adrian Bunk
2006-04-11 10:38 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2006-04-10 22:18 UTC (permalink / raw)
To: perex; +Cc: alsa-devel, linux-kernel
This patch makes the needlessly global snd_pcm_format_name() static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
include/sound/pcm.h | 1 -
sound/core/pcm.c | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
--- linux-2.6.17-rc1-mm2-full/include/sound/pcm.h.old 2006-04-10 23:34:28.000000000 +0200
+++ linux-2.6.17-rc1-mm2-full/include/sound/pcm.h 2006-04-10 23:34:38.000000000 +0200
@@ -898,7 +898,6 @@
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);
--- linux-2.6.17-rc1-mm2-full/sound/core/pcm.c.old 2006-04-10 23:32:17.000000000 +0200
+++ linux-2.6.17-rc1-mm2-full/sound/core/pcm.c 2006-04-10 23:32:42.000000000 +0200
@@ -196,7 +196,7 @@
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];
}
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-04-11 10:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-10 22:18 [2.6 patch] sound/core/pcm.c: make snd_pcm_format_name() static Adrian Bunk
2006-04-11 10:38 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox