Skip to contentSkip to conversation

typo in alsa sound system upto kernel 2.5.8pre2

linux-sound gumble 1 participant 1 message Apr 10, 2002 Sound

lore
Share & tools
lore

gumble

author
#0 lore raw

hi
i found a bug, or better a typo in the alsa drivers in the 2.5.x kernels

compiling a 2.5.8pre2 with alsa support for my sb16 isa :) i got this message

sound/sound.o: In function `snd_opl3_hwdep_new':
sound/sound.o(.text+0x2b74c): undefined reference to `snd_hwdep_new'
make: *** [vmlinux] Error 1

so i googled around and didnt find anything ....
later i got the idea to grep the srces
and i found a typo in

linux/sound/drivers/opl3/opl3_lib.c
line 492

if ((err = snd_hwdep_new(card, "OPL2/OPL3", device, &hw)) < 0) {

-->

if ((err = snd_opl3_hwdep_new(card, "OPL2/OPL3", device, &hw)) < 0) {

and the kernel can be compiled

i hope it's correct or does not produce new bugs at least

mfg
gumble