[ALSA] snd_pcm_format_name() is no longer exported


This Linux change may have been applied to various maintained Linux releases and you can find Linux releases containing changes from commit 3f72a30.
This change “[ALSA] snd_pcm_format_name() is no longer exported” in Linux kernel is authored by Jaroslav Kysela <perex [at] suse.cz> on Wed Jan 18 11:50:40 2006 +0100.


[ALSA] snd_pcm_format_name() is no longer exported

Modules: PCM Midlevel,USB generic driver

Because snd_pcm_format_name() function is used only for informational
purposes, it is no longer exported from the PCM midlevel to reduce
space and dependency. usbaudio module shows only numeric value for format.

Signed-off-by: Jaroslav Kysela <perex@suse.cz>

This Linux change may have been applied to various maintained Linux releases and you can find Linux releases containing changes from commit 3f72a30.

There are 3 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 sound/core/pcm.c     | 1 -
 sound/usb/usbaudio.c | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/core/pcm.c b/sound/core/pcm.c
index f903d1b..3da6a38 100644
--- a/sound/core/pcm.c
+++ b/sound/core/pcm.c
@@ -1105,7 +1105,6 @@ static void __exit alsa_pcm_exit(void)
 EXPORT_SYMBOL(snd_pcm_notify);
 EXPORT_SYMBOL(snd_pcm_open_substream);
 EXPORT_SYMBOL(snd_pcm_release_substream);
-EXPORT_SYMBOL(snd_pcm_format_name);
   /* pcm_native.c */
 EXPORT_SYMBOL(snd_pcm_link_rwlock);
 #ifdef CONFIG_PM
diff --git a/sound/usb/usbaudio.c b/sound/usb/usbaudio.c
index 53009bb..51a8626 100644
--- a/sound/usb/usbaudio.c
+++ b/sound/usb/usbaudio.c
@@ -2029,7 +2029,7 @@ static void proc_dump_substream_formats(struct snd_usb_substream *subs, struct s
 		fp = list_entry(p, struct audioformat, list);
 		snd_iprintf(buffer, "  Interface %d\n", fp->iface);
 		snd_iprintf(buffer, "    Altset %d\n", fp->altsetting);
-		snd_iprintf(buffer, "    Format: %s\n", snd_pcm_format_name(fp->format));
+		snd_iprintf(buffer, "    Format: 0x%x\n", fp->format);
 		snd_iprintf(buffer, "    Channels: %d\n", fp->channels);
 		snd_iprintf(buffer, "    Endpoint: %d %s (%s)\n",
 			    fp->endpoint & USB_ENDPOINT_NUMBER_MASK,

The commit for this change in Linux stable tree is 3f72a30 (patch).

Leave a Reply

Your email address will not be published. Required fields are marked *