alsa-1.0.23 in kernel-2.6.36
hello everybody,
I'm a begginer about linux I compiled the lastest kernel 2.6.35-rc1 for my thinkpad X61 tablet then I install the alsa-driver 1.0.23 for audio by compile the source code,but the error is following /tmp/alsa-driver-1.0.23/acore/pcm_native.c: In function 'snd_pcm_hw_params': /tmp/alsa-driver-1.0.23/acore/pcm_native.c:489: error: implicit declaration of function 'pm_qos_remove_requirement' /tmp/alsa-driver-1.0.23/acore/pcm_native.c:492: error: implicit declaration of function 'pm_qos_add_requirement' make[3]: *** [/tmp/alsa-driver-1.0.23/acore/pcm_native.o] Error 1 make[2]: *** [/tmp/alsa-driver-1.0.23/acore] Error 2 make[1]: *** [_module_/tmp/alsa-driver-1.0.23] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.35-rc1' make: *** [compile] Error 2 what's wrong thanks for help |
somebody help me?
|
Quote:
What version/distro of Linux?? The kernel tells us very little. Where did you download the source from? What are you doing to compile it? Have you checked the documentation that came with it?? And why don't you install ALSA from your online repositories, rather than building from source? |
the lastest released alsa is 1.0.23 and I havn't fount out it from the repositories
my linux is debian 5.0 I download the kernel source from www.kernel.org and the alsa from www.alsa.org it's no problem while I compiled in kernel 2.6.33 gcc-4.3 And I'm so soryy for my misbehavior |
Look and see where the headers are moved. or just use the kernel headers if they are different from your glibc. untar then ln -s /usr/src/linx-2.6.xxx /usr/src/linux
then zcat /proc/config.gz > /usr/src/linux/.config then make oldconfig. then make. 2.6.36-rc3 just compiled for me. Mine Quote:
|
I checked the kernel source tree,and I compiled the kernel successfully,I issued the ln -s /usr/src/linx-2.6.xxx /usr/src/linux too, the compiling of alsa-driver could find the kernel headers, then I checked the symbol "pm_qos_remove_requirement",it's a inline function defined in pm_qos_params_compat.h which should be included in <linux/pm_qos_params.h> but I found the configure should completed that for me, so the error named "implicit declaration" occured. And I modified the <linux/pm_qos_params.h> to include the pm_qos_params_compat.h,the error never bother me,but there is a new error is following
from /tmp/alsa-driver-1.0.23/acore/pcm_native.c:29: /tmp/alsa-driver-1.0.23/include/pm_qos_params_compat.h:14:27: error: linux/latency.h: No such file or directory In file included from include/linux/pm_qos_params.h:8, from /tmp/alsa-driver-1.0.23/acore/pcm_native.c:29: /tmp/alsa-driver-1.0.23/include/pm_qos_params_compat.h: In function 'pm_qos_add_requirement': /tmp/alsa-driver-1.0.23/include/pm_qos_params_compat.h:18: error: implicit declaration of function 'set_acceptable_latency' /tmp/alsa-driver-1.0.23/include/pm_qos_params_compat.h: In function 'pm_qos_remove_requirement': /tmp/alsa-driver-1.0.23/include/pm_qos_params_compat.h:24: error: implicit declaration of function 'remove_acceptable_latency' make[3]: *** [/tmp/alsa-driver-1.0.23/acore/pcm_native.o] Error 1 make[2]: *** [/tmp/alsa-driver-1.0.23/acore] Error 2 make[1]: *** [_module_/tmp/alsa-driver-1.0.23] Error 2 I got nothing after searched the latency.h in my all include tree Now how do I fix it? thanks very much |
Note I compiled 2.6.36-rc3 not one. so I was unable to get the copy of rc1.
|
Quote:
are you mean that the alsa-1.0.23 is compiled in 2.6.36-rc successfully? thanks |
I need help
thanks |
I builded the kernel 2.6.36-rc3,but the error still occured when I compile the alsa-driver 1.0.23
|
did you see I used the gcc 4.4.4 may be it does make a difference it did on some of my other stuff.
|
Quote:
whether or not I'll try to update the gcc at first thanks |
what O/S are you using
|
I used debian 5.0
thanks |
Download alsa-driver from the Snapshot Section of the ALSA Project
Niltze!
In order for ALSA to enable your sound card in Linux kernels beginning with 2.6.35 (as far as I became aware) visit the snapshots section of the ALSA project. Download the available alsa-driver-1.0.23.xy.gdzxy.tar.bz2 (where xy & zxy represent relevant alphanumeric string) and that should solve the issues that you are experiencing with front page generally available alsa-driver-1.0.23.tar.bz2 I recently built 2.6.36 for a GNU/Linux Debian unstable distribution and experienced similar issues as yours when compiling ALSA support for the older PCI sound card: /usr/src/alsa/alsa-driver-1.0.23/acore/pcm_native.c: In function ‘snd_pcm_hw_params’: /usr/src/alsa/alsa-driver-1.0.23/acore/pcm_native.c:489: error: implicit declaration of function ‘pm_qos_remove_requirement’ /usr/src/alsa/alsa-driver-1.0.23/acore/pcm_native.c:492: error: implicit declaration of function ‘pm_qos_add_requirement’ make[3]: *** [/usr/src/alsa/alsa-driver-1.0.23/acore/pcm_native.o] Error 1 make[2]: *** [/usr/src/alsa/alsa-driver-1.0.23/acore] Error 2 make[1]: *** [_module_/usr/src/alsa/alsa-driver-1.0.23] Error 2 make: *** [compile] Error 2 and the newer alsa-driver in the snapshots section of the ALSA project resolved the above noted issues. Best Professional Regards. |
All times are GMT -5. The time now is 09:54 AM. |