LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 04-03-2004, 04:14 PM   #1
chinaundead
Member
 
Registered: Feb 2004
Location: UK
Distribution: Mandrake 10 Official
Posts: 123

Rep: Reputation: 15
How to install ALSA?


hi,

I read through many threads and tutorials on web of how to install Alsa, but everytime error accurs or something unexpected happens.

Can anybody please tell me how to install alsa step by step from ground 0, I have to say I am still a linux newbie, please say it in detail.


Thank you!!!
 
Old 04-03-2004, 05:28 PM   #2
avarus
Member
 
Registered: Apr 2004
Location: Oxford, UK
Distribution: Ubuntu, Debian, various
Posts: 230
Blog Entries: 5

Rep: Reputation: 33
It's all in the ALSA README, including the special instructions (important special instructions!) for RedHat. I doubt anyone here could improve on that.

If something in those instructions is not clear, post the quote and I will try to de-mystify it for you.

If you keep getting a specific error, post the exact error message!

TIM
 
Old 04-04-2004, 01:20 AM   #3
chinaundead
Member
 
Registered: Feb 2004
Location: UK
Distribution: Mandrake 10 Official
Posts: 123

Original Poster
Rep: Reputation: 15
Hi,

I am using Compaq Presario laptop with i810 AC97' sound card.

I am trying to install latest version alsa into my computer (1.0.4). In the alsa Sound Martix Howto for Intel810, it says:
1. Introduction:
The ALSA drivers are designed to provide audio functionality for the Linux kernel. Linux audio developers found significant flaws in the design of the older OSS drivers and created ALSA from scratch. After 2 complete code overhauls they were integrated into kernel 2.6.0 at the start of 2003 replacing the now deprecated OSS drivers.

There are two ways of getting Linux drivers to work, you can either compile them into the kernel or build them separately as modules. Read the Kernel-HOWTO for details of how to compile a kernel. Associated software such as alsa-lib, alsa-utils, alsa-tools, alsa-oss, alsa-firmware must be downloaded seperately from the mainpage.

DO I HAVE TO COMPILE MY KERNEL AGAIN FOR ALSA ( I AM USING 2.4.20-30.9 KERNEL )?

2. Quick Install
Most modern distros come with soundcore compiled as a module. You can check this in numerous ways. The easiest way is to type.

modinfo soundcore

If this command returns that you have this module, then you don't need to recompile your kernel.

THERE IS NO "MODINFO" COMMAND IN MY REDHAT 9!

Unzip and install the alsa-driver package
DONE
Now unzip and install the alsa-lib package
DONE
Now unzip and install the alsa-utils package
DONE

Now insert the modules into the kernel.

modprobe snd-intel8x0;modprobe snd-pcm-oss;modprobe snd-mixer-oss;modprobe snd-seq-oss

THERE IS NO "MODPROBE" COMMAND IN MY REDHAT 9!


Setting up modprobe and kmod support
Here's the example for this card. Copy and paste this to the bottom of your /etc/modules.conf file.
# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-intel8x0
# module options should go here

# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0

# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

DONE

AFTER I USE "alsamixer", THERE IS STILL NO SOUND!
WHEN I RUN THE SOUND TEST IN SOUND DETECTION, IT SAYS "SOUND DRIVER IS NOT SUPPORTED UNDER REDHAT9" OR SOMETHING LIKE THAT.


I also go through the tutorial for installing alsa for redhat9 at http://www-ccrma.stanford.edu/planet...#configurealsa

After I run "alsaconf", it detect my soundcard, and says install successfully. But when I try to start the service use command:"/etc/rc.d/init.d/alsasound start"
error accurs:

"Starting sound driver: snd-intel8x0 /lib/modules/2.4.20-30.9/kernel/sound/pci/snd-intel8x0.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.20-30.9/kernel/sound/pci/snd-intel8x0.o: insmod /lib/modules/2.4.20-30.9/kernel/sound/pci/snd-intel8x0.o failed
/lib/modules/2.4.20-30.9/kernel/sound/pci/snd-intel8x0.o: insmod snd-intel8x0 failed
done"

ANY SOLUTIONS?? THANK YOU!!!
 
Old 04-04-2004, 04:40 AM   #4
tfdml37
Member
 
Registered: Feb 2004
Location: California
Distribution: Gentoo, Fedora Core 2, SuSE?
Posts: 47

Rep: Reputation: 15
modinfo and modprobe are in /usr/sbin. Do 'su -' instead of just su and they should work. I'm pretty sure the 'SOUND DRIVER IS NOT SUPPORTED UNDER REDHAT9' is because you didnt insert the modules with modprobe.

If you use modprobe and it gives you an error like:
Code:
init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
      You may find more information in syslog or the output from dmesg
it's because you need to kill everything using your sound card and remove the old driver with modprobe -r olddriver. Then do the modprobe command again. (I found that it was easiest to just set my run level to 3, restart and then do the modprobe command, but to each their own..)
 
Old 04-04-2004, 04:24 PM   #5
chinaundead
Member
 
Registered: Feb 2004
Location: UK
Distribution: Mandrake 10 Official
Posts: 123

Original Poster
Rep: Reputation: 15
hi,

how to remove old driver?
 
Old 04-04-2004, 06:33 PM   #6
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
I have the same sound card,I would get it to work and then if I ever rebooted,it would stop working,sometimes get it to work sometimes not,so I installed fedora core 1 and sound worked right off the bat,wish I would have done this alon time ago,but I learned alot along the way,david
 
Old 04-04-2004, 11:43 PM   #7
tfdml37
Member
 
Registered: Feb 2004
Location: California
Distribution: Gentoo, Fedora Core 2, SuSE?
Posts: 47

Rep: Reputation: 15
modprobe -r [olddriver] removes your old sound card driver (put the name of your sound card driver in for [olddriver]). If it says its in use when you try to remove it, you need to kill all programs that are using your sound card.
 
Old 04-06-2004, 11:06 AM   #8
chinaundead
Member
 
Registered: Feb 2004
Location: UK
Distribution: Mandrake 10 Official
Posts: 123

Original Poster
Rep: Reputation: 15
hi, can you tell me which sound card driver redhat 9 use by default?
 
Old 04-07-2004, 01:14 AM   #9
tfdml37
Member
 
Registered: Feb 2004
Location: California
Distribution: Gentoo, Fedora Core 2, SuSE?
Posts: 47

Rep: Reputation: 15
You can find out what your sound card is by running 'redhat-config-soundcard' as root.
 
Old 04-07-2004, 04:06 PM   #10
avarus
Member
 
Registered: Apr 2004
Location: Oxford, UK
Distribution: Ubuntu, Debian, various
Posts: 230
Blog Entries: 5

Rep: Reputation: 33
Hi,

Me again. Sorry I have been off at a conference and therefore offline. I'll see if I can contribute anything of use. I have the same sound chip, and alsaconf set it up fine for me, so hopefully it will work for you in the end too!

Is it possible you missed out this stage? (I'll quote from the HOWTO, since it is a little clearer than the INSTALL file):

4.6 Preparing the devices

There is a script in the driver-directory that will install the ALSA-sound-devices in your /dev directory. Type (as root)

./snddevices

from the driver-directory. There should be a /dev/snd subdirectory now (test if it is there).

I made this mistake myself, and seem to remember getting similar errors. However, removing the old driver is almost certainly still necessary, as t37 suggested.

Good luck - and if you do get it working let us know what you did!

TIM
 
Old 11-20-2004, 11:49 AM   #11
vbsoftware
LQ Newbie
 
Registered: Jul 2003
Location: chile
Distribution: Redhat Linux 9 custom
Posts: 27

Rep: Reputation: 15
Hello from Santiago de Chile (spanish user)

I resolve this problem in my RedHat 9 : (NOTE : Always i have installed the kernel sources)

Note: First you must check if your soundcard is supported by the ALSA project.

Step 1.
- First download alsa sources from http://www.alsa-project.org (alsa-driver, alsa-lib, alsa-utils, alsa-oss)

Step 2.
- unpack alsa-lib and compile. (./configure && make && make install)
- Compile alsa-oss (./configure && make && make install)

Step 3.
- Unpack alsa-driver
- ./configure --with-isapnp=no --with-sequencer=yes --with-oss=yes
- touch include/linux/workqueue.h
- make install
- run the ./snddevices script

Step 4.
-- Check if you have unresolved simbols with depmod -ae. If you get errors repeat step 3.

Step 5
-- run ldconfig

Step 6.
- unpack alsa-utils and compile. (./configure && make && make install)

Step 7
- run alsaconf ( here this must be configure your modules.conf )
- run alsamixer ( your channels are muted by default )
- run alsactl store

Step 8
- reboot
- cd /etc/init.d/alsasound start
- startx

Here my ALSA configuration in modules.conf

alias char-major-116 snd
alias char-major-14 soundcore
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
options snd-intel8x0 snd_ac97_clock=0 snd_enable=1 snd_index=0

Enjoy!

If this guide was useful please send me a email to : leo.nunez@gmail.com

Cheers!

Bye!
 
  


Reply



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
how to un-install alsa steve1401 Linux - General 6 12-11-2004 06:10 PM
Alsa install help etern8ty Red Hat 4 06-24-2004 03:37 PM
ALSA install The Burninator Linux - Software 16 02-03-2003 12:18 AM
alsa install barazor Linux - Software 2 04-19-2002 06:06 PM
ALSA install... fxlee Linux - Newbie 1 09-25-2001 12:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 07:23 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration