LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   alsa-1.0.23 in kernel-2.6.36 (https://www.linuxquestions.org/questions/linux-software-2/alsa-1-0-23-in-kernel-2-6-36-a-829221/)

linux_hy 08-29-2010 10:12 PM

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

linux_hy 08-30-2010 09:29 AM

somebody help me?

TB0ne 08-30-2010 10:03 AM

Quote:

Originally Posted by linux_hy (Post 4082390)
somebody help me?

Don't post within 24 hours, asking us to hurry up and help. We volunteer our time here, and will answer you when we can/want to.

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?

linux_hy 08-30-2010 11:59 PM

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

Drakeo 08-31-2010 12:44 AM

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:

gcc-4.4.4 Linux bicycle 2.6.36-rc3 #2 SMP Wed May 12 22:31:33 CDT 2010 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux

linux_hy 09-01-2010 01:06 AM

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

Drakeo 09-01-2010 05:21 PM

Note I compiled 2.6.36-rc3 not one. so I was unable to get the copy of rc1.

linux_hy 09-02-2010 05:01 PM

Quote:

Originally Posted by Drakeo (Post 4085387)
Note I compiled 2.6.36-rc3 not one. so I was unable to get the copy of rc1.

hello Drakeo
are you mean that the alsa-1.0.23 is compiled in 2.6.36-rc successfully?
thanks

linux_hy 09-07-2010 10:00 PM

I need help
thanks

linux_hy 09-11-2010 11:57 AM

I builded the kernel 2.6.36-rc3,but the error still occured when I compile the alsa-driver 1.0.23

Drakeo 09-12-2010 07:33 AM

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.

linux_hy 09-14-2010 03:40 AM

Quote:

Originally Posted by Drakeo (Post 4095081)
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.

gcc 4.4.4? OK I'll try to do,but the error is indused by header file not be found.
whether or not I'll try to update the gcc at first
thanks

Drakeo 09-15-2010 07:40 PM

what O/S are you using

linux_hy 09-20-2010 10:40 AM

I used debian 5.0
thanks

JoseRR 10-23-2010 04:55 AM

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.