2002-02-07 16:07:44

by Jaroslav Kysela

[permalink] [raw]
Subject: [PATCH 2.5.4pre2] ALSA

Hello,

a patch containing latest ALSA code is available at usual place:

ftp://ftp.alsa-project.org/pub/kernel-patches/alsa-2002-02-07-1-linux-2.5.4pre2.patch.gz

for latest "stable" 2.5 kernel:

ftp://ftp.alsa-project.org/pub/kernel-patches/alsa-2002-02-05-1-linux-2.5.3.patch.gz

We've not touched the directory layout, because we have no
response from Linus (appearently only person for the decision about
sound source hiearchy).

Jaroslav

-----
Jaroslav Kysela <[email protected]>
SuSE Linux http://www.suse.com
ALSA Project http://www.alsa-project.org


2002-02-07 18:25:18

by Sebastian Droege

[permalink] [raw]
Subject: Re: [PATCH 2.5.4pre2] ALSA

Hi,
I get following compile error when compiling with attached .config:

make[2]: Verlassen des Verzeichnisses Verzeichnis ?/usr/src/linux/arch/i386/lib?make[1]: Verlassen des Verzeichnisses Verzeichnis ?/usr/src/linux/arch/i386/lib?ld -m elf_i386 -T /usr/src/linux/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o init/do_mounts.o \
--start-group \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
/usr/src/linux/arch/i386/lib/lib.a /usr/src/linux/lib/lib.o /usr/src/linux/arch/i386/lib/lib.a \
drivers/acpi/acpi.o drivers/base/base.o drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/char/agp/agp.o drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o sound/sound.o drivers/pci/driver.o drivers/pnp/pnp.o drivers/video/video.o drivers/usb/usbdrv.o drivers/input/inputdrv.o \
net/network.o \
--end-group \
-o vmlinux
sound/sound.o: In function `snd_mpu401_uart_output_write':
sound/sound.o(.text+0x1b551): undefined reference to `snd_rawmidi_transmit_peek'sound/sound.o(.text+0x1b583): undefined reference to `snd_rawmidi_transmit_ack'
sound/sound.o: In function `snd_mpu401_uart_new':
sound/sound.o(.text+0x1b60d): undefined reference to `snd_rawmidi_new'
sound/sound.o(.text+0x1b71b): undefined reference to `snd_rawmidi_set_ops'
sound/sound.o(.text+0x1b72c): undefined reference to `snd_rawmidi_set_ops'
sound/sound.o: In function `snd_mpu401_uart_input_read':
sound/sound.o(.text+0x1b7eb): undefined reference to `snd_rawmidi_receive'
make: *** [vmlinux] Fehler 1

Bye


Attachments:
.config (22.80 kB)
(No filename) (189.00 B)
Download all attachments

2002-02-07 18:56:18

by Jaroslav Kysela

[permalink] [raw]
Subject: Re: [PATCH 2.5.4pre2] ALSA

On Thu, 7 Feb 2002, Sebastian Dr?ge wrote:

> Hi,
> I get following compile error when compiling with attached .config:
>
> make[2]: Verlassen des Verzeichnisses Verzeichnis ?/usr/src/linux/arch/i386/lib?make[1]: Verlassen des Verzeichnisses Verzeichnis ?/usr/src/linux/arch/i386/lib?ld -m elf_i386 -T /usr/src/linux/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o init/do_mounts.o \
> --start-group \
> arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
> /usr/src/linux/arch/i386/lib/lib.a /usr/src/linux/lib/lib.o /usr/src/linux/arch/i386/lib/lib.a \
> drivers/acpi/acpi.o drivers/base/base.o drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/char/agp/agp.o drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o sound/sound.o drivers/pci/driver.o drivers/pnp/pnp.o drivers/video/video.o drivers/usb/usbdrv.o drivers/input/inputdrv.o \
> net/network.o \
> --end-group \
> -o vmlinux
> sound/sound.o: In function `snd_mpu401_uart_output_write':
> sound/sound.o(.text+0x1b551): undefined reference to `snd_rawmidi_transmit_peek'sound/sound.o(.text+0x1b583): undefined reference to `snd_rawmidi_transmit_ack'
> sound/sound.o: In function `snd_mpu401_uart_new':
> sound/sound.o(.text+0x1b60d): undefined reference to `snd_rawmidi_new'
> sound/sound.o(.text+0x1b71b): undefined reference to `snd_rawmidi_set_ops'
> sound/sound.o(.text+0x1b72c): undefined reference to `snd_rawmidi_set_ops'
> sound/sound.o: In function `snd_mpu401_uart_input_read':
> sound/sound.o(.text+0x1b7eb): undefined reference to `snd_rawmidi_receive'
> make: *** [vmlinux] Fehler 1

Thanks, please, use this patch to change your linux/sound/core/Makefile:

Index: Makefile
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile 11 Jan 2002 10:41:41 -0000 1.3
+++ Makefile 7 Feb 2002 18:53:32 -0000
@@ -79,7 +79,7 @@
obj-$(CONFIG_SND_CS4281) += snd-pcm.o snd-timer.o snd.o snd-rawmidi.o
snd-hwdep.o
obj-$(CONFIG_SND_ENS1370) += snd-pcm.o snd-timer.o snd.o snd-rawmidi.o
obj-$(CONFIG_SND_ENS1371) += snd-pcm.o snd-timer.o snd.o snd-rawmidi.o
-obj-$(CONFIG_SND_ES1938) += snd-pcm.o snd-timer.o snd.o snd-hwdep.o
+obj-$(CONFIG_SND_ES1938) += snd-pcm.o snd-timer.o snd.o snd-rawmidi.o snd-hwdep.o
obj-$(CONFIG_SND_ES1968) += snd-pcm.o snd-timer.o snd.o snd-rawmidi.o
obj-$(CONFIG_SND_FM801) += snd-pcm.o snd-timer.o snd.o snd-rawmidi.o snd-hwdep.o
obj-$(CONFIG_SND_ICE1712) += snd-pcm.o snd-timer.o snd.o snd-rawmidi.o


Jaroslav

-----
Jaroslav Kysela <[email protected]>
SuSE Linux http://www.suse.com
ALSA Project http://www.alsa-project.org

2002-02-07 19:24:02

by Sebastian Droege

[permalink] [raw]
Subject: Re: [PATCH 2.5.4pre2] ALSA

Hi,
Thanks, the patch works perfect ;)
But there are two problems left:
1. I have an ESS1938 soundcard and an ENS1371 soundcard...
When I compile both into kernel only one is shown in /dev/sound and only /dev/dsp exists
/dev/snd seems to show all devices
I think this is somehow related to devfs
2. My ENS1371 works perfect with quake3arena or return to castle wolfenstein.
But my ESS1938 has very noise and hacked sound. The game also runs slowlier than with the ENS1371
Normal sound applications like xmms and so work perfect with both cards

Bye


Attachments:
(No filename) (189.00 B)