How to install ALSA without complining my own kernel

Asked by alecjcook

Hi,
    I got Ubuntu to add a real time kernel to it's self. I am trying to get ALSA to talk to that kernel, but the only information I seem to find is how to compile your own kernel, which I am not comfortable doing. I have downloaded the source for ALSA and am attempting to build it as specified here:
http://www.alsa-project.org/main/index.php/Low_latency_howto

Although every time i run the ./configure on ALSA I get told "Please install the package with full kernel sources for your distribution or use --with-kernel=dir option to specify another directory"

I have gone and downloaded a kernel from the following place:
http://www.uk.kernel.org/sites/ftp.kernel.org/pub/linux/kernel/v2.6/

When i use the "--with-kernel=/tmp/linux-2.6.27.3" modifier for the ./configure I get the same error message.

I am at a loss, can anyone help!?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu alsa-driver Edit question
Assignee:
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Solved:
Last query:
Last reply:
Revision history for this message
Tom (tom6) said :
#1

This all sounds extremely advanced to me. Have you seen the page
http://alsa.opensrc.org/index.php/TroubleShooting

Good luck with this
Regards from
Tom :)

Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :
#2

Please try this...

Open a terminal and type:
sudo -i
give your user password, you don't see nothing when type it, then press enter

apt-get update
apt-get install wget build-essential ncurses-dev libncurses5-dev gettext linux-headers-$(uname -r)
mkdir /usr/src/alsa-source
cd /usr/src/alsa-source
wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.19.tar.bz2
wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.19.tar.bz2
wget ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.19.tar.bz2
tar xjf alsa-driver-1.0.19.tar.bz2
tar xjf alsa-lib-1.0.19.tar.bz2
tar xjf alsa-utils-1.0.19.tar.bz2

cd alsa-driver-1.0.19
./configure --with-cards=hda-intel
make
make install

cd alsa-lib-1.0.19
./configure
make
make install

cd alsa-utils-1.0.19
./configure
make
make install

Then if you need special options open the file
nano /etc/modprobe.d/alsa-base

and change the model options for example (find it on reference pages below):
options snd-hda-intel model=acer

Reboot your pc

------------------------
More reference at page:
https://help.ubuntu.com/community/HdaIntelSoundHowto

and the homepage of alsa
http://www.alsa-project.org/

Revision history for this message
alecjcook (alecjcook-gmail) said :
#3

Anyone reading this trying the same thing might need to install "xmlto" before starting all this (required for making alsa-utils).
also, Thankyou so much, that was an awesome answer!

Revision history for this message
alecjcook (alecjcook-gmail) said :
#4

Thanks marcobra, that solved my question.

Revision history for this message
Peter Kapus (colpanic-deactivatedaccount) said :
#5

re Question #58989 by alecjcook: How's that? I just installed ALSA and got no warning about the realtime kernel. Isn't it installed automatically? I thought the package manager resolved dependencies?

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#6

@Peter Kapus

Please don't append a new question on a already answered or marked as solved question.
Please make new question from here: https://answers.launchpad.net/ubuntu/+addquestion
you will get better chance to get right answer on a fresh tagged "open" question.
Solved or answered questions are usually not read from answering people.

Thank you

Revision history for this message
Peter Kapus (colpanic-deactivatedaccount) said :
#7

re Question #58989 by alecjcook. Tried the above and got as far as cd alsa-lib-1.0.19. No such file or directory. Why does it have to be so goddam HARD?????!!!!!

Revision history for this message
alecjcook (alecjcook-gmail) said :
#8

before you change directory to the "alsa-lib" you must first navigate out of the directory you are currently in.. i.e.:

cd alsa-driver-1.0.19
./configure --with-cards=hda-intel
make
make install
cd .. <------------- This is the bit you're missing
cd alsa-lib-1.0.19
./configure
make
make install
cd .. <------------- This is the bit you're missing
cd alsa-utils-1.0.19

Revision history for this message
peterS (peter-learnaudvis) said :
#9

Why does it have to be so goddam HARD?????!!!!! said peterkapus

I wonder why myself.

I've been thrashing around like a windmill trying to get my delta1010 to do everything I'd expect. I got it to fly, using jack first or automatically as required, in rosegarden, ardour, audacity, hydrogen and others. I couldn't get the ubuntu studio system sounds except the pip on boot up. None of my cd or dvd applications worked at all. Now, having used marcobra's magic wand all the ubuntu blips and blops work but jack goes crackers and rosegarden won't fly. ardour did, though. I know this'll be pilot error and I'm going to re do everything. I just can't believe that someone has made code so readily available and generously which I could get to grips with. A BIG thankyou marcobra. I've never seen so much activity in the terminal ! Thanks to alecjcook for clearing a bit more mud. My cd's or dvd's still won't play, though. (I know-don't append a new question................) Thanks again. regards P.S

Revision history for this message
Tom (tom6) said :
#10

lol, good luck ;)

Don't forget, there are 10 sorts of people in the world. Those that think in binary and those that don't ;)

Revision history for this message
rishi kumar (arrishikumar) said :
#11

Thanks for the info & the steps.I have executed as per the steps.But I could enable only the volume icon. The sound is still not able to hear even after rebooting the PC. My Ubuntu version is 9.04-Jaunty Jackalope. Could you please tell me the further steps,if any, to enable it ?

Regards
Rishi Kumar.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#12

@rishi Kumar please made your own fresh question from here:
https://answers.launchpad.net/ubuntu/+source/alsa-driver/+addquestion

In that new question:

Please execute step 1 and step 2, then reboot and send us the full terminal output from step 3 and step 4 from this procedure:

https://help.ubuntu.com/community/SoundTroubleshootingProcedure