Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75974 - ALSA fails to compile on 2.6.10 kernels.
Summary: ALSA fails to compile on 2.6.10 kernels.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-28 18:57 UTC by andy
Modified: 2005-01-11 04:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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