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

Problem in installing alsa driver on Etch

I have no problems upgrading the alsa driver on Ubuntu/Kubuntu, or Fedora. On 
Ubuntu/Kubuntu I just install the build-essential, kernel-package, and the 
kernel headers for the running kernel, then a simple ./configure, make, and 
as root, make install, and the alsa driver is upgraded.

I have installed the same packages on my Etch install for the etchnhalf 
kernel. Both the AMD64, and the x86 versions of the kernel are installed.

On my Kubuntu Dapper install, which has alsa driver 1.0.10, the sound doesn't 
work, but upgrading to alsa driver 1.0.15 from the Alsa site, gets the sound 

The etchnhalf kernel also uses alsa driver 1.0.15, but in this case there is 
no sound.

I know the sound works ok on this Etch install, as I have a 2.6.26 kernel from 
the Musix repo installed, which uses alsa driver 1.0.16.

Now the problem:

Etchnhalf has the 1.0.15 alsa driver, which for some reason fails to find a 
soundcard. I have a 1.0.15 alsa driver (and later ones) from the Alsa site. I 
want to see if the alsa driver 1.0.15 from the Alsa site is in some way 
different from the one installed with the etchnhalf kernel. Now to simply 
upgrade the driver. Having unpacked the driver, I cd to the driver folder, 
and run ./configure, and I don't see any problems. Then I run make, which 
runs for a bit, then stops with the problem below.

make[2]: Leaving directory 
make[2]: Entering directory 
make[2]: Leaving directory 
make[1]: Leaving directory 
make -C /lib/modules/2.6.24-etchnhalf.1-486/build 
SUBDIRS=/home/djmons/Downloads/Alsa-drivers/alsa-driver-1.0.15  CPP="gcc -E" 
CC="gcc" modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-etchnhalf.1-486'
scripts/Makefile.build:46: *** CFLAGS was changed in 
"/home/djmons/Downloads/Alsa-drivers/alsa-driver-1.0.15/acore/Makefile". Fix 
it to use EXTRA_CFLAGS.  Stop.
make[2]: *** [/home/djmons/Downloads/Alsa-drivers/alsa-driver-1.0.15/acore] 
Error 2
make[1]: *** [_module_/home/djmons/Downloads/Alsa-drivers/alsa-driver-1.0.15] 
Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-etchnhalf.1-486'
make: *** [compile] Error 2

The relevant lines where the problem appears are below.

make[1]: Entering directory `/usr/src/linux-headers-2.6.24-etchnhalf.1-486'
scripts/Makefile.build:46: *** CFLAGS was changed in 
"/home/djmons/Downloads/Alsa-drivers/alsa-driver-1.0.15/acore/Makefile". Fix 
it to use EXTRA_CFLAGS.  Stop.

I don't understand what I need to do to fix this, as the makefile which is 
below, doesn't make any reference to CFLAGS, and have no idea where to add 
the line EXTRA_CFLAGS, if that's all is needed.

Makefile for alsa-driver-1.0.15/acore below.


include $(SND_TOPDIR)/toplevel.config
include $(SND_TOPDIR)/Makefile.conf

clean-files := info.c pcm.c pcm_native.c control.c hwdep.c init.c rawmidi.c \
        sound.c timer.c memalloc.c misc.c

export-objs := control.o device.o info.o info_oss.o init.o isadma.o memory.o \
 misc.o misc_driver.o sound.o sound_oss.o \
 pcm.o pcm_lib.o pcm_memory.o pcm_misc.o pcm_native.o \
 rawmidi.o timer.o hwdep.o memalloc.o wrappers.o

include $(SND_TOPDIR)/alsa-kernel/core/Makefile

snd-objs += wrappers.o misc_driver.o
snd-objs += memory_debug.o
snd-page-alloc-objs += memory_wrapper.o
snd-hpet-objs := hpetimer.o

obj-$(CONFIG_SND_HPET) += snd-hpet.o
obj-$(CONFIG_SND_BIT32_EMUL) += ioctl32/

include $(SND_TOPDIR)/Rules.make

info.c: info.inc info.patch $(SND_TOPDIR)/alsa-kernel/core/info.c
pcm.c: pcm.patch $(SND_TOPDIR)/alsa-kernel/core/pcm.c
pcm_native.c: pcm_native.patch $(SND_TOPDIR)/alsa-kernel/core/pcm_native.c
control.c: control.patch $(SND_TOPDIR)/alsa-kernel/core/control.c
hwdep.c: hwdep.patch $(SND_TOPDIR)/alsa-kernel/core/hwdep.c
init.c: init.patch $(SND_TOPDIR)/alsa-kernel/core/init.c
rawmidi.c: rawmidi.patch $(SND_TOPDIR)/alsa-kernel/core/rawmidi.c
sound.c: sound.patch $(SND_TOPDIR)/alsa-kernel/core/sound.c
timer.c: timer.patch $(SND_TOPDIR)/alsa-kernel/core/timer.c
memalloc.c: memalloc.patch memalloc.inc memalloc.inc1 
misc.c: misc.patch $(SND_TOPDIR)/alsa-kernel/core/misc.c

Any help with this problem will be very gratefully received.


Reply to: