ALSA and 2.4.x
Quoted 1 line · David van Hoose
Is there a ALSA backport to 2.4.x anywhere?
I was crazy enough to take ALSA 0.9.2 and made it into a patch vs 2.4.x a week or two ago. I just prefer to have ALSA be part of the kernel rather than needing to compile it seperately all the time. The patch, along with various other things, is included as part of my 2.4.21-rc1-erik kernel:
This is what I am running locally, and it works for me,
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
Quoted 10 lines · Erik Andersen
Quoted 1 line · David van Hoose
Is there a ALSA backport to 2.4.x anywhere?
I was crazy enough to take ALSA 0.9.2 and made it into a patch vs 2.4.x a week or two ago. I just prefer to have ALSA be part of the kernel rather than needing to compile it seperately all the time. The patch, along with various other things, is included as part of my 2.4.21-rc1-erik kernel:
Quoted 3 lines
This is what I am running locally, and it works for me,
Works *very* well. I now have sound. I'd recommend adding the ALSA documentation from 2.5.x to the patch. It is easier than trying to navigate through alsa-project.org for setup information. It would be nice if ALSA was placed into 2.4.x as soon as possible. Doesn't require any extra patches beyond the ones for the kernel.
Thanks for the help!
David
On Thursday 24 April 2003 23:25, Erik Andersen wrote:
Hi Erik,
Quoted 6 lines
Quoted 1 line
Is there a ALSA backport to 2.4.x anywhere?
I was crazy enough to take ALSA 0.9.2 and made it into a patch vs 2.4.x a week or two ago. I just prefer to have ALSA be part of the kernel rather than needing to compile it seperately all the time. The patch, along with various other things, is included as part of my 2.4.21-rc1-erik kernel:
Are you sure that this is 0.9.2 ALSA? I am afraid it is 0.9.0-rc6.
ciao, Marc
On Friday 25 April 2003 14:01, Marc-Christian Petersen wrote:
Hi again,
Quoted 6 lines
Quoted 5 lines
I was crazy enough to take ALSA 0.9.2 and made it into a patch vs 2.4.x a week or two ago. I just prefer to have ALSA be part of the kernel rather than needing to compile it seperately all the time. The patch, along with various other things, is included as part of my 2.4.21-rc1-erik kernel:
Are you sure that this is 0.9.2 ALSA? I am afraid it is 0.9.0-rc6.
this looks _very_ similar to the patch I had in WOLK4 some time ago and it was 0.9.0-rc6.
ciao, Marc
Quoted 11 lines · Marc-Christian Petersen
On Thursday 24 April 2003 23:25, Erik Andersen wrote:
Hi Erik,
Quoted 6 lines
Quoted 1 line
Is there a ALSA backport to 2.4.x anywhere?
I was crazy enough to take ALSA 0.9.2 and made it into a patch vs 2.4.x a week or two ago. I just prefer to have ALSA be part of the kernel rather than needing to compile it seperately all the time. The patch, along with various other things, is included as part of my 2.4.21-rc1-erik kernel:
Are you sure that this is 0.9.2 ALSA? I am afraid it is 0.9.0-rc6.
Why are you afraid of that? Yes I am sure it is 0.9.2. I do have a 0.9.0-rc6 patch on my site which is derived in part from your wolk code. But that is a different animal,
To make my 082_alsa-0.9.2.bz2 patch, I used the wolk 0.9.0-rc6 code, a copy of alsa-driver-0.9.2.tar.bz2, and a copy of the latest 2.5.x kernel source for reference. I then hacked on it for a few hours till I made it work.
<sound of checking>
Hahaha! It looks like I copied my 0.9.0-rc6 patch over the top of my 0.9.2 patch! Oops. I still have the source tree where I hacked together the 0.9.2 kernel patch, so I'll regenerate that and re-post it after I get some sleep. <yawns, rubs eyes>
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
Quoted 4 lines · Marc-Christian Petersen
On Friday 25 April 2003 14:01, Marc-Christian Petersen wrote:
Hi again,
Quoted 8 lines
Quoted 6 lines
Quoted 5 lines
I was crazy enough to take ALSA 0.9.2 and made it into a patch vs 2.4.x a week or two ago. I just prefer to have ALSA be part of the kernel rather than needing to compile it seperately all the time. The patch, along with various other things, is included as part of my 2.4.21-rc1-erik kernel:
Are you sure that this is 0.9.2 ALSA? I am afraid it is 0.9.0-rc6.
this looks _very_ similar to the patch I had in WOLK4 some time ago and it was 0.9.0-rc6.
I finally got a bit of time this morning, so I have now updated my patch set. I check very carefully and made sure I generated my ALSA 0.9.2 patch from the correct kernel tree this time, so it actually contains my 0.9.2 port this time.
Sorry about having the wrong alsa patch in there last time. Last time around I has accidentlly built my alsa patch from my older alsa kernel tree. I have this built into my kernel and I now see
Partition check:
hda: hda1 hda2
Advanced Linux Sound Architecture Driver Version 0.9.2.
PCI: Setting latency timer of device 00:11.5 to 64 ALSA device list:
#0: VIA 8233 at 0xcc00, irq 5
on bootup and xmms is playing. Hope this is helpful,
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
Quoted 28 lines · Erik Andersen
Quoted 11 lines · Marc-Christian Petersen
On Friday 25 April 2003 14:01, Marc-Christian Petersen wrote:
Hi again,
Quoted 6 lines
Quoted 5 lines
I was crazy enough to take ALSA 0.9.2 and made it into a patch vs 2.4.x a week or two ago. I just prefer to have ALSA be part of the kernel rather than needing to compile it seperately all the time. The patch, along with various other things, is included as part of my 2.4.21-rc1-erik kernel:
Quoted 3 lines
Quoted 1 line
Are you sure that this is 0.9.2 ALSA? I am afraid it is 0.9.0-rc6.
this looks _very_ similar to the patch I had in WOLK4 some time ago and it was 0.9.0-rc6.
I finally got a bit of time this morning, so I have now updated
my patch set. I check very carefully and made sure I generated
my ALSA 0.9.2 patch from the correct kernel tree this time, so it actually contains my 0.9.2 port this time.Sorry about having the wrong alsa patch in there last time. Last time around I has accidentlly built my alsa patch from my older alsa kernel tree. I have this built into my kernel and I now see
Quoted 8 lines
Partition check:
hda: hda1 hda2
Advanced Linux Sound Architecture Driver Version 0.9.2.
PCI: Setting latency timer of device 00:11.5 to 64 ALSA device list:
#0: VIA 8233 at0xcc00, irq 5on bootup and xmms is playing. Hope this is helpful,
I'm getting an unresolved in soundcore.o that is preventing me from having sound. /lib/modules/2.4.21-rc1/kernel/sound/soundcore.o: unresolved symbol devfs_remove /lib/modules/2.4.21-rc1/kernel/sound/soundcore.o: insmod /lib/modules/2.4.21-rc1/kernel/sound/soundcore.o failed /lib/modules/2.4.21-rc1/kernel/sound/soundcore.o: insmod snd-card-0 failed
Can that be fixed?
Also I have problems if I compile USB Audio and USB MIDI from the USB section AND USB Audio and USB MIDI from the ALSA section. Compilation fails in that situation. Might want to put the former patch up if this stuff might take a while to fix.
Thanks,
David
Quoted 8 lines · David van Hoose
I'm getting an unresolved in soundcore.o that is preventing me from having sound.
/lib/modules/2.4.21-rc1/kernel/sound/soundcore.o: unresolved symboldevfs_remove/lib/modules/2.4.21-rc1/kernel/sound/soundcore.o: insmod/lib/modules/2.4.21-rc1/kernel/sound/soundcore.ofailed/lib/modules/2.4.21-rc1/kernel/sound/soundcore.o: insmod snd-card-0 failed
It compiles for me, but I don't use devfs. Perhaps there is a problem with the compatibility code in include/sound/adriver.h
Quoted 1 line
Can that be fixed?
I am certain it can. But since it works for me and since I am moving this week (lots of packing to do) it may not be till sometime next week before I get the time to work further on it.
Quoted 4 lines
Also I have problems if I compile USB Audio and USB MIDI from the USB section AND USB Audio and USB MIDI from the ALSA section. Compilation fails in that situation. Might want to put the former patch up if this stuff might take a while to fix.
Ahh. Well I don't have any usb audio stuff, so I never saw this particular conflict. The old patch is still available under the /kernel/alternatives directory on my site if you want to use that patch instead,
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
Hi !
I add to fix it too, and I sent the patch to Erik privately but it was not clear that it would indeed fix this problem. It comes from sound_core.c not including adriver.h which contains the compat code.
Here is a simple patch which works for me.
cheers,
willy
sound/sound_core.c renamed from sound/sound_core.c.orig +1 -0
@@ -45,6 +45,7 @@#include <linux/major.h> #include <linux/kmod.h> #include <linux/devfs_fs_kernel.h> +#include <sound/driver.h> #define SOUND_STEP 16
Quoted 18 lines · Erik Andersen
Quoted 8 lines · David van Hoose
I'm getting an unresolved in soundcore.o that is preventing me from having sound.
/lib/modules/2.4.21-rc1/kernel/sound/soundcore.o: unresolved symboldevfs_remove/lib/modules/2.4.21-rc1/kernel/sound/soundcore.o: insmod/lib/modules/2.4.21-rc1/kernel/sound/soundcore.ofailed/lib/modules/2.4.21-rc1/kernel/sound/soundcore.o: insmod snd-card-0 failedIt compiles for me, but I don't use devfs. Perhaps there is a problem with the compatibility code in
include/sound/adriver.hQuoted 1 line
Can that be fixed?
I am certain it can. But since it works for me and since I am moving this week (lots of packing to do) it may not be till sometime next week before I get the time to work further on it.
Quoted 9 lines · David van Hoose
I'm getting an unresolved in soundcore.o that is preventing me from having sound.
/lib/modules/2.4.21-rc1/kernel/sound/soundcore.o: unresolved symboldevfs_remove/lib/modules/2.4.21-rc1/kernel/sound/soundcore.o: insmod/lib/modules/2.4.21-rc1/kernel/sound/soundcore.ofailed/lib/modules/2.4.21-rc1/kernel/sound/soundcore.o: insmod snd-card-0 failedCan that be fixed?
It looks like this is simply a minor include file problem. sound/sound_core.c needs
#include <sound/driver.h>
added to it which should hopefully make this problem go away.
Quoted 4 lines
Also I have problems if I compile USB Audio and USB MIDI from the USB section AND USB Audio and USB MIDI from the ALSA section. Compilation fails in that situation. Might want to put the former patch up if this stuff might take a while to fix.
This looked trivial enough to fix, I went ahead and regenerated my patch with these changes,
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
Quoted 13 lines · Erik Andersen
Quoted 6 lines · David van Hoose
I'm getting an unresolved in soundcore.o that is preventing me from having sound.
/lib/modules/2.4.21-rc1/kernel/sound/soundcore.o: unresolved symboldevfs_remove/lib/modules/2.4.21-rc1/kernel/sound/soundcore.o: insmod/lib/modules/2.4.21-rc1/kernel/sound/soundcore.ofailed/lib/modules/2.4.21-rc1/kernel/sound/soundcore.o: insmod snd-card-0 failedCan that be fixed?
It looks like this is simply a minor include file problem.
sound/sound_core.cneeds#include <sound/driver.h>
Quoted 8 lines
added to it which should hopefully make this problem go away.
Quoted 1 line
Also I have problems if I compile USB Audio and USB MIDI from the USB section AND USB Audio and USB MIDI from the ALSA section. Compilation fails in that situation. Might want to put the former patch up if this stuff might take a while to fix.
This looked trivial enough to fix, I went ahead and regenerated my patch with these changes,
Got it. I patched sound_core.c and I have sound now. I'm assuming that was the only file that needed to be patched. Correct? Also, should the OSS soundcore option in menuconfig always be 'Y'? It seems to not want to be anything else.
I get this warning on almost every file during the compile.
In file included from /usr/src/linux-2.4.21-rc1/include/sound/driver.h:43,
from hwdep.c:22:
/usr/src/linux-2.4.21-rc1/include/sound/adriver.h:320:1: warning:
"vmalloc_to_page" redefined
In file included from /usr/src/linux-2.4.21-rc1/include/linux/modversions.h:185, from <command line>:1:/usr/src/linux-2.4.21-rc1/include/linux/modules/ksyms.ver:66:1: warning:
this is the location of the previous definition
Another trivial patch perhaps?
Thanks for the patch!
David