LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-13-2004, 11:23 PM   #1
piggysmile
Member
 
Registered: Apr 2004
Location: Philippines
Posts: 175

Rep: Reputation: 30
Confused about ALSA


I'm completely new to Linux. How do I install ALSA. Documentation is pretty confusing? My redhat kernel is 2.4.20-8. how do i install it. please provide a steps
 
Old 05-14-2004, 01:19 AM   #2
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 900

Rep: Reputation: 153Reputation: 153
I seem to have to re-compile ALSA whenever I recompile the kernel or install one from my distro. I've set up a script that does it all for me, see below, in the script I have a directory called /production/ALSA which contains the files -

alsa-driver-1.0.3.tar.bz2, alsa-lib-1.0.3b.tar.bz2, alsa-utils-1.0.3.tar.bz2

these files have been downloaded from the ALSA site which I think is www.alsa.org

the cs4236 refers to my card you will have to determine which is the best parameter to use.

The script just assumes everything will work! The last line I've just added it's not been tested so I don't know whether it will work.



#!/bin/sh

/bin/rm -R /usr/lib/alsa-driver*
/bin/rm -R /usr/lib/alsa-lib*
/bin/rm -R /usr/lib/alsa-utils*

cp /production/ALSA/alsa* /usr/lib

cd /usr/lib
bunzip2 alsa-driver*
tar -xf alsa-driver*
cd /usr/lib/alsa-driver*
./configure --with-cards=cs4236 --with-sequencer=yes;make;make install

./snddevices

cd /usr/lib
bunzip2 alsa-lib*
tar -xf alsa-lib*
cd /usr/lib/alsa-lib*
./configure;make;make install

cd /usr/lib
bunzip2 alsa-utils*
tar -xf alsa-utils*
cd /usr/lib/alsa-utils*
./configure;make;make install

amixer set 'PCM' 60 unmute
amixer set 'Master Digital' 60 unmute
alsactl store

if [ -x /etc/rc.d/rc.alsa ]; then exec /etc/rc.d/rc.alsa start; fi
~
 
Old 05-14-2004, 02:42 AM   #3
piggysmile
Member
 
Registered: Apr 2004
Location: Philippines
Posts: 175

Original Poster
Rep: Reputation: 30
i'm even uncapable of recompiling a kernel or any program like this. Is there an easier way like extracting it and afterwards running it?

I'm just totally confused there are these ALSA driver, library, tools, firmware, and OSS Compatibility Library but which is which? Should I download everything? And how am I gonna install them?

Last edited by piggysmile; 05-14-2004 at 02:46 AM.
 
Old 05-14-2004, 02:57 AM   #4
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 900

Rep: Reputation: 153Reputation: 153
Download the latest versions of

alsa-lib
alsa-driver
alsa-utils

into a directory of your choosing.

Determine what sound card you have.

Locate the instructions on the www.alsa.org site for your soundcard. Post it to this site just in case anyone else has had success on your card or has had problems.

Regards
 
Old 05-14-2004, 02:57 AM   #5
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
For red hat stock kernels there's probably an rpm yon can get somewhere.
 
Old 05-14-2004, 04:05 AM   #6
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
And using a RedHat RPM would probably be a better idea for a couple of reasons.

Try http://freshrpms.net.
 
Old 05-14-2004, 06:34 AM   #7
fenice1976
Member
 
Registered: May 2004
Distribution: MDK 9.2 - Kernel 2.4.22mdk
Posts: 108

Rep: Reputation: 15
To aikempshall:

seen your script but the last line is obscure to me:

[...CUT...]
if [ -x /etc/rc.d/rc.alsa ]; then exec /etc/rc.d/rc.alsa start; fi
~

What does it do?
 
Old 05-14-2004, 09:13 AM   #8
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Code:
if [ -x /etc/rc.d/rc.alsa ]; then exec /etc/rc.d/rc.alsa start; fi
...means that if /etc/rc.d/rc.alsa exists and is executable to the user it should be executed (with "start" as argument to the script).


Håkan
 
Old 05-15-2004, 06:51 AM   #9
piggysmile
Member
 
Registered: Apr 2004
Location: Philippines
Posts: 175

Original Poster
Rep: Reputation: 30
ok I'll try.
 
  


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
kernel-2.6.3 compiled with alsa but xmms alsa output dont plays demmylls Linux - General 3 09-01-2006 04:32 AM
Alsa sound *jumpy*: alsa-space: xrun of at least 11.449 msecs. resetting stream qwijibow Linux - General 6 04-22-2006 07:35 PM
Confused about ALSA and OSS, in Mandrake 10, KDE 4.3,with Audigy 2, wpg9210 Linux - Software 3 05-07-2004 08:03 PM
ALSA-oss compatability works, but not programs intended for alsa ? qwijibow Linux - Software 5 03-14-2004 07:28 AM
2.6.0 minus built-in ALSA drivers + ALSA 1.0.0rc2 Tino27 Slackware 3 12-19-2003 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:30 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