Skip to contentSkip to conversation

git-alsa.patch is bogus in 2.6.16-rc1-mm1

BUG Thierry Vignaud 2 participants 2 messages Jan 18, 2006 – Jan 19, 2006 Sound

lore
Share & tools
lore
#0 lore raw

git-alsa.patch is bogus in 2.6.16-rc1-mm1 since it constify snd_pcm_format_name() whereas it's still exported (in sound/core/pcm.c) AND used (in sound/usb/usbaudio.c)

thus one cannot compile 2.6.16-rc1-mm1 (at least with gcc-4.0.2) b/c of the unknown exported symbol :-(

a proper fix is already in ALSA CVS:

Index: ./sound/core/pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/pcm.c,v
retrieving revision 1.63
retrieving revision 1.64

sound/core/pcm.c +0 -1
diff -u -r1.63 -r1.64
@@ -1105,7 +1105,6 @@
 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

Index: usbaudio.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/usb/usbaudio.c,v retrieving revision 1.169
retrieving revision 1.170

sound/usb/usbaudio.c +1 -1
diff -u -r1.169 -r1.170
@@ -2029,7 +2029,7 @@
 		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,
#1 lore raw

At Wed, 18 Jan 2006 20:54:40 +0100,

Quoted 9 lines · Thierry Vignaud

git-alsa.patch is bogus in 2.6.16-rc1-mm1 since it constify snd_pcm_format_name() whereas it's still exported (in sound/core/pcm.c) AND used (in sound/usb/usbaudio.c)

thus one cannot compile 2.6.16-rc1-mm1 (at least with gcc-4.0.2) b/c of the unknown exported symbol :-(

a proper fix is already in ALSA CVS:

Already fixed on the latest alsa git tree.

thanks,

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642