Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 75974

Summary: ALSA fails to compile on 2.6.10 kernels.
Product: Gentoo Linux Reporter: andy <andy>
Component: [OLD] LibraryAssignee: Jeremy Huddleston (RETIRED) <eradicator>
Status: RESOLVED FIXED    
Severity: major CC: sound
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description andy 2004-12-28 18:57:05 UTC
Due to the write() function of the tty_device struct, changing arguements
alsa 1.0.7 no longer compiles on this kernel.

Additionally alsa 1.0.8rc1 is out and there's no ebuild
and it does compile cleanly with the 2.6.10 kernel.

Also the ca0106 driver is broken with audigyls cards but that is a matter for me to discuss with the ALSA developers.

Here is a patch for the issue I trust handling of kernel version detection will be done outside of the actual code as all this patch does is replace 1 function call with the correct arguements..

Adue.
--- ./serialmidi.c      2004-10-29 04:50:36.000000000 -0400
+++ /usr/tmp/portage/alsa-driver-1.0.7-r4/work/alsa-driver-1.0.7/drivers/serialmidi.c   2004-12-27 14:35:26.000000000 -0500
@@ -324,7 +324,7 @@
                count = count > TX_BUF_SIZE ? TX_BUF_SIZE : count;
                count = snd_rawmidi_transmit_peek(serial->substream_output, buf, count);
                if (count > 0) {
-                       count = driver->write(tty, 0, buf, count);
+                       count = driver->write(tty, buf, count);
                        snd_rawmidi_transmit_ack(serial->substream_output, count);
                } else {
                        clear_bit(TTY_DO_WRITE_WAKEUP, &tty->flags);

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2005-01-11 04:54:00 UTC
Please use one of the 1.0.8rc's