LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-29-2010, 11:12 PM   #1
linux_hy
Member
 
Registered: Oct 2006
Posts: 66

Rep: Reputation: -2
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
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 08-30-2010, 10:29 AM   #2
linux_hy
Member
 
Registered: Oct 2006
Posts: 66

Original Poster
Rep: Reputation: -2
somebody help me?
 
Old 08-30-2010, 11:03 AM   #3
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,989

Rep: Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672
Quote:
Originally Posted by linux_hy View Post
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?
 
Old 08-31-2010, 12:59 AM   #4
linux_hy
Member
 
Registered: Oct 2006
Posts: 66

Original Poster
Rep: Reputation: -2
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
 
Old 08-31-2010, 01:44 AM   #5
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,658
Blog Entries: 3

Rep: Reputation: 222Reputation: 222Reputation: 222
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
 
Old 09-01-2010, 02:06 AM   #6
linux_hy
Member
 
Registered: Oct 2006
Posts: 66

Original Poster
Rep: Reputation: -2
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

Last edited by linux_hy; 09-01-2010 at 02:36 AM.
 
Old 09-01-2010, 06:21 PM   #7
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,658
Blog Entries: 3

Rep: Reputation: 222Reputation: 222Reputation: 222
Note I compiled 2.6.36-rc3 not one. so I was unable to get the copy of rc1.
 
Old 09-02-2010, 06:01 PM   #8
linux_hy
Member
 
Registered: Oct 2006
Posts: 66

Original Poster
Rep: Reputation: -2
Quote:
Originally Posted by Drakeo View Post
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
 
Old 09-07-2010, 11:00 PM   #9
linux_hy
Member
 
Registered: Oct 2006
Posts: 66

Original Poster
Rep: Reputation: -2
I need help
thanks
 
Old 09-11-2010, 12:57 PM   #10
linux_hy
Member
 
Registered: Oct 2006
Posts: 66

Original Poster
Rep: Reputation: -2
I builded the kernel 2.6.36-rc3,but the error still occured when I compile the alsa-driver 1.0.23
 
Old 09-12-2010, 08:33 AM   #11
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,658
Blog Entries: 3

Rep: Reputation: 222Reputation: 222Reputation: 222
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.
 
Old 09-14-2010, 04:40 AM   #12
linux_hy
Member
 
Registered: Oct 2006
Posts: 66

Original Poster
Rep: Reputation: -2
Quote:
Originally Posted by Drakeo View Post
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
 
Old 09-15-2010, 08:40 PM   #13
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,658
Blog Entries: 3

Rep: Reputation: 222Reputation: 222Reputation: 222
what O/S are you using
 
Old 09-20-2010, 11:40 AM   #14
linux_hy
Member
 
Registered: Oct 2006
Posts: 66

Original Poster
Rep: Reputation: -2
I used debian 5.0
thanks
 
Old 10-23-2010, 05:55 AM   #15
JoseRR
LQ Newbie
 
Registered: Oct 2006
Posts: 3

Rep: Reputation: 3
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.
 
3 members found this post helpful.
  


Reply

Tags
alsa


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel panic: kernel-2.6.24.3 + alsa-1.0.16(or15) + Slackware-12 ludist Slackware 1 03-07-2008 10:14 PM
kernel-2.6.3 compiled with alsa but xmms alsa output dont plays demmylls Linux - General 3 09-01-2006 05:32 AM
Kernel-source, alsa-driver and kernel compile jasone Linux - General 13 05-26-2005 01:15 AM
alsa-driver-1.0.5.tar.gz or kernel alsa? shanenin Linux - Software 2 05-29-2004 02:47 PM
ALSA on Debian, Kernel Source is There Alsa dosent see it? pfizur Linux - Software 3 12-27-2003 09:46 AM


All times are GMT -5. The time now is 04:44 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration