Skip to contentSkip to conversation

alsa-driver in the kernel [Addition]

DISCUSSION Peter Ganzhorn 1 participant 1 message Nov 25, 2005

lore
Share & tools
lore
#0 lore raw

A few minutes ago I had the idea of searching for a solution on Google, and I found something interesting:
http://gimpel.gi.funpic.de/Howtos/ALSA-CVS_to_kernel/

It seems using this script takes me closer to my goal, but I still get errors:

 CC      sound/sound_core.o
 CC      sound/sound_firmware.o
 LD      sound/soundcore.o
 LD      sound/arm/built-in.o
 CC      sound/core/hwdep.o
 CC      sound/core/memalloc.o
 CC      sound/core/sgbuf.o
 CC      sound/core/pcm.o
 CC      sound/core/pcm_native.o
 CC      sound/core/pcm_lib.o
 CC      sound/core/pcm_timer.o
 CC      sound/core/pcm_misc.o
 CC      sound/core/pcm_memory.o
 CC      sound/core/rawmidi.o
 CC      sound/core/rtctimer.o
 CC      sound/core/timer.o
 CC      sound/core/sound.o

sound/core/sound.c:35:35: linux/platform_device.h: No such file or directory sound/core/sound.c:55: error: parse error before numeric constant sound/core/sound.c:55: warning: type defaults to int' in declaration of MODULE_ALIAS_CHARDEV_MAJOR' sound/core/sound.c:55: warning: function declaration isn't a prototype sound/core/sound.c:55: warning: data definition has no type or storage class sound/core/sound.c: In function `snd_register_device':
sound/core/sound.c:234: warning: implicit declaration of function class_device_create' sound/core/sound.c: In function snd_unregister_device':
sound/core/sound.c:266: warning: implicit declaration of function `class_device_destroy' make[2]: *** [sound/core/sound.o] Error 1
make[1]: *** [sound/core] Error 2
make: *** [sound] Error 2

I think the problem is that some include-files have moved, how can I solve this fast and correctly? Thanks in advance,

Peter

Hi there,

there are several hints on how to update the in-kernel alsa driver with the alsa driver one can download from alsa-project.org, but I had no luck at all updating kernel 2.6.14.3 with alsa 1.0.10 - it seems that there is something missing in the kernel, but there is nothing more mentioned to do in the howtos.

Actually my make process ends like this after updating the in-kernel driver:

 CC      sound/sound_core.o
 CC      sound/sound_firmware.o
 LD      sound/soundcore.o
 LD      sound/arm/built-in.o
 CC      sound/core/hwdep.o

sound/core/hwdep.c: In function `snd_hwdep_open':
sound/core/hwdep.c:84: error: `snd_major' undeclared (first use in this function) sound/core/hwdep.c:84: error: (Each undeclared identifier is reported only once sound/core/hwdep.c:84: error: for each function it appears in.) make[2]: *** [sound/core/hwdep.o] Error 1
make[1]: *** [sound/core] Error 2
make: *** [sound] Error 2

So my question is if there is a good and up2date howto for updating the alsa driver in the kernel with those from alsa-project.org which are usually a bit more current. I do not want to build alsa as modules, because I want a compact kernel without many modules.

It would be great if you could tell me what is necessary to do in order to get this working! :)

Peter