[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Compiling alsa-driver-1.0.17 for Debian etch



Dear All

*This email just sums up what I did to compile the alsa-driver-1.0.17 with the hope that it might be useful to someone else.* (1) to (6) is information provided by Nigel Henry (see 'Alsa not working properly' on debian-user@lists.debian.org). I am using etch (see system information).

Following Nigel I:
(1) Downloaded alsa driver 1.0.17 to /path/to/alsa_driver.
(2) Installed build-essential, kernel-package and linux-headers-2.6.18-6.
(3) Changed to /path/to/alsa_driver and unpacked tar-file using 'tar xjvf alsa-driver-1.0.17.tar.bz2'.
(4) Changed to alsa-driver-1.0.17 (directory with unpacked files).
(5) Typed './configure'.
(6) Typed 'make'.

After (6) I got the following error-messages:

/path/to/Alsa_drivers/alsa-driver-1.0.17/acore/rtctimer.c:4: error: redefinition of 'is_power_of_2' /path/to/Alsa_drivers/alsa-driver-1.0.17/include/adriver.h:1424: error: previous definition of 'is_power_of_2' was here make[3]: *** [/path/to/Alsa_drivers/alsa-driver-1.0.17/acore/rtctimer.o] Fehler 1
make[2]: *** [/path/to/Alsa_drivers/alsa-driver-1.0.17/acore] Fehler 2
make[1]: *** [_module_/path/to/Alsa_drivers/alsa-driver-1.0.17] Fehler 2
make: *** [compile] Fehler 2

By commenting out (/* static inline ... */)
static inline int is_power_of_2(unsigned long n)
{
   return (n != 0 && ((n & (n - 1)) == 0));
}
in '/path/to/Alsa_drivers/alsa-driver-1.0.17/acore/rtctimer.c' I typed 'make' again and everything worked fine.

(7) Typed 'make install' to complete the job.
(8) Rebooted the laptop.
(9) Saw the right version nr in '/proc/asound/version'
(10) Alsa control seemed to work better so far.

s.

System information
*uname -a* tells me that I am using *Linux foosys 2.6.18-6-686 #1 SMP Thu Oct 9 15:52:18 UTC 2008 i686 GNU/Linux*.


Reply to: