linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ALSA and 2.4.x
@ 2003-04-24 13:35 David van Hoose
  2003-04-24 13:43 ` Marc-Christian Petersen
  2003-04-24 13:49 ` Con Kolivas
  0 siblings, 2 replies; 15+ messages in thread
From: David van Hoose @ 2003-04-24 13:35 UTC (permalink / raw)
  To: linux-kernel

Is there a ALSA backport to 2.4.x anywhere?

Thanks,
David


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: ALSA and 2.4.x
  2003-04-24 13:35 ALSA and 2.4.x David van Hoose
@ 2003-04-24 13:43 ` Marc-Christian Petersen
  2003-04-24 13:56   ` Maciej Soltysiak
  2003-04-24 13:49 ` Con Kolivas
  1 sibling, 1 reply; 15+ messages in thread
From: Marc-Christian Petersen @ 2003-04-24 13:43 UTC (permalink / raw)
  To: David van Hoose, linux-kernel

On Thursday 24 April 2003 15:35, David van Hoose wrote:

Hi David,

> Is there a ALSA backport to 2.4.x anywhere?
www.alsa-project.org

Simply build the needed modules.

ciao, Marc

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: ALSA and 2.4.x
  2003-04-24 13:35 ALSA and 2.4.x David van Hoose
  2003-04-24 13:43 ` Marc-Christian Petersen
@ 2003-04-24 13:49 ` Con Kolivas
  1 sibling, 0 replies; 15+ messages in thread
From: Con Kolivas @ 2003-04-24 13:49 UTC (permalink / raw)
  To: David van Hoose, linux-kernel

On Thu, 24 Apr 2003 23:35, David van Hoose wrote:
> Is there a ALSA backport to 2.4.x anywhere?

ALSA is available to be compiled as module only for 2.4, but the very latest 
version is available for it.

www.alsa-project.org

Con

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: ALSA and 2.4.x
  2003-04-24 13:43 ` Marc-Christian Petersen
@ 2003-04-24 13:56   ` Maciej Soltysiak
  0 siblings, 0 replies; 15+ messages in thread
From: Maciej Soltysiak @ 2003-04-24 13:56 UTC (permalink / raw)
  To: Marc-Christian Petersen; +Cc: David van Hoose, linux-kernel

> Simply build the needed modules.
Or if you are using debian, check out alsa packages.

Regards,
Maciej


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: ALSA and 2.4.x
  2003-04-30 20:50         ` Erik Andersen
@ 2003-05-01  0:09           ` David van Hoose
  0 siblings, 0 replies; 15+ messages in thread
From: David van Hoose @ 2003-05-01  0:09 UTC (permalink / raw)
  To: andersen; +Cc: Marc-Christian Petersen, linux-kernel

Erik Andersen wrote:
> On Wed Apr 30, 2003 at 03:07:43PM -0500, David van Hoose wrote:
> 
>>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?
> 
> 
> 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.
> 
> 
>>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


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: ALSA and 2.4.x
  2003-04-30 20:07       ` David van Hoose
  2003-04-30 20:22         ` Erik Andersen
@ 2003-04-30 20:50         ` Erik Andersen
  2003-05-01  0:09           ` David van Hoose
  1 sibling, 1 reply; 15+ messages in thread
From: Erik Andersen @ 2003-04-30 20:50 UTC (permalink / raw)
  To: David van Hoose; +Cc: Marc-Christian Petersen, linux-kernel

On Wed Apr 30, 2003 at 03:07:43PM -0500, David van Hoose wrote:
> 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?

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.

> 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--

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: ALSA and 2.4.x
  2003-04-30 20:22         ` Erik Andersen
@ 2003-04-30 20:36           ` Willy Tarreau
  0 siblings, 0 replies; 15+ messages in thread
From: Willy Tarreau @ 2003-04-30 20:36 UTC (permalink / raw)
  To: Erik Andersen, David van Hoose, Marc-Christian Petersen, linux-kernel

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.orig	Wed Apr 30 15:11:14 2003
+++ ./sound/sound_core.c	Wed Apr 30 15:11:52 2003
@@ -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
 
On Wed, Apr 30, 2003 at 02:22:39PM -0600, Erik Andersen wrote:
> On Wed Apr 30, 2003 at 03:07:43PM -0500, David van Hoose wrote:
> > 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
> > 
> 
> It compiles for me, but I don't use devfs.  Perhaps there is
> a problem with the compatibility code in include/sound/adriver.h
> 
> > 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.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: ALSA and 2.4.x
  2003-04-30 20:07       ` David van Hoose
@ 2003-04-30 20:22         ` Erik Andersen
  2003-04-30 20:36           ` Willy Tarreau
  2003-04-30 20:50         ` Erik Andersen
  1 sibling, 1 reply; 15+ messages in thread
From: Erik Andersen @ 2003-04-30 20:22 UTC (permalink / raw)
  To: David van Hoose; +Cc: Marc-Christian Petersen, linux-kernel

On Wed Apr 30, 2003 at 03:07:43PM -0500, David van Hoose wrote:
> 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
> 

It compiles for me, but I don't use devfs.  Perhaps there is
a problem with the compatibility code in include/sound/adriver.h

> 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.

> 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--

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: ALSA and 2.4.x
  2003-04-30  9:02     ` Erik Andersen
@ 2003-04-30 20:07       ` David van Hoose
  2003-04-30 20:22         ` Erik Andersen
  2003-04-30 20:50         ` Erik Andersen
  0 siblings, 2 replies; 15+ messages in thread
From: David van Hoose @ 2003-04-30 20:07 UTC (permalink / raw)
  To: andersen; +Cc: Marc-Christian Petersen, linux-kernel

Erik Andersen wrote:
> On Fri Apr 25, 2003 at 02:10:31PM +0200, Marc-Christian Petersen wrote:
> 
>>On Friday 25 April 2003 14:01, Marc-Christian Petersen wrote:
>>
>>Hi again,
>>
>>
>>>>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.
> 
>     http://codepoet.org/kernel/
> 
> 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,

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


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: ALSA and 2.4.x
  2003-04-25 12:10   ` Marc-Christian Petersen
@ 2003-04-30  9:02     ` Erik Andersen
  2003-04-30 20:07       ` David van Hoose
  0 siblings, 1 reply; 15+ messages in thread
From: Erik Andersen @ 2003-04-30  9:02 UTC (permalink / raw)
  To: Marc-Christian Petersen; +Cc: linux-kernel

On Fri Apr 25, 2003 at 02:10:31PM +0200, Marc-Christian Petersen wrote:
> On Friday 25 April 2003 14:01, Marc-Christian Petersen wrote:
> 
> Hi again,
> 
> > > 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.

    http://codepoet.org/kernel/

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--

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: ALSA and 2.4.x
  2003-04-25 12:01 ` Marc-Christian Petersen
  2003-04-25 12:10   ` Marc-Christian Petersen
@ 2003-04-25 12:24   ` Erik Andersen
  1 sibling, 0 replies; 15+ messages in thread
From: Erik Andersen @ 2003-04-25 12:24 UTC (permalink / raw)
  To: Marc-Christian Petersen; +Cc: linux-kernel

On Fri Apr 25, 2003 at 02:01:36PM +0200, Marc-Christian Petersen wrote:
> On Thursday 24 April 2003 23:25, Erik Andersen wrote:
> 
> Hi Erik,
> 
> > > 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--

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: ALSA and 2.4.x
  2003-04-25 12:01 ` Marc-Christian Petersen
@ 2003-04-25 12:10   ` Marc-Christian Petersen
  2003-04-30  9:02     ` Erik Andersen
  2003-04-25 12:24   ` Erik Andersen
  1 sibling, 1 reply; 15+ messages in thread
From: Marc-Christian Petersen @ 2003-04-25 12:10 UTC (permalink / raw)
  To: andersen, linux-kernel

On Friday 25 April 2003 14:01, Marc-Christian Petersen wrote:

Hi again,

> > 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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: ALSA and 2.4.x
  2003-04-24 21:25 Erik Andersen
  2003-04-25  3:40 ` David van Hoose
@ 2003-04-25 12:01 ` Marc-Christian Petersen
  2003-04-25 12:10   ` Marc-Christian Petersen
  2003-04-25 12:24   ` Erik Andersen
  1 sibling, 2 replies; 15+ messages in thread
From: Marc-Christian Petersen @ 2003-04-25 12:01 UTC (permalink / raw)
  To: andersen, linux-kernel

On Thursday 24 April 2003 23:25, Erik Andersen wrote:

Hi Erik,

> > 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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: ALSA and 2.4.x
  2003-04-24 21:25 Erik Andersen
@ 2003-04-25  3:40 ` David van Hoose
  2003-04-25 12:01 ` Marc-Christian Petersen
  1 sibling, 0 replies; 15+ messages in thread
From: David van Hoose @ 2003-04-25  3:40 UTC (permalink / raw)
  To: andersen; +Cc: linux-kernel

Erik Andersen wrote:
> On Thu Apr 24 2003 - 08:35:48 EST, David van Hoose wrote:
> 
>>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:
> 
>     http://codepoet.org/kernel/
> 
> 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


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: ALSA and 2.4.x
@ 2003-04-24 21:25 Erik Andersen
  2003-04-25  3:40 ` David van Hoose
  2003-04-25 12:01 ` Marc-Christian Petersen
  0 siblings, 2 replies; 15+ messages in thread
From: Erik Andersen @ 2003-04-24 21:25 UTC (permalink / raw)
  To: linux-kernel

On Thu Apr 24 2003 - 08:35:48 EST, David van Hoose wrote:
> 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:

    http://codepoet.org/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--

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2003-04-30 23:57 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-24 13:35 ALSA and 2.4.x David van Hoose
2003-04-24 13:43 ` Marc-Christian Petersen
2003-04-24 13:56   ` Maciej Soltysiak
2003-04-24 13:49 ` Con Kolivas
2003-04-24 21:25 Erik Andersen
2003-04-25  3:40 ` David van Hoose
2003-04-25 12:01 ` Marc-Christian Petersen
2003-04-25 12:10   ` Marc-Christian Petersen
2003-04-30  9:02     ` Erik Andersen
2003-04-30 20:07       ` David van Hoose
2003-04-30 20:22         ` Erik Andersen
2003-04-30 20:36           ` Willy Tarreau
2003-04-30 20:50         ` Erik Andersen
2003-05-01  0:09           ` David van Hoose
2003-04-25 12:24   ` Erik Andersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).