Configuring the audio and updating ALSA for Fedora 10

Author(s)

Bill Giannikos

Introduction

This guide will help update your version of the ALSA modules under Fedora 10. This is useful for people whose sound is not currently working with their current version of ALSA.

Notes

We will be using 'nano' as our text editor of choice but you can use whatever you wish.

While this guide is mainly focused to laptop users there isn't any difference for desktop users.

Prerequisites

You should run a full update for your installation of Fedora to ensure you have all the latest packages installed. Unlike most other Linux distribution, Fedora update their distribution to newer versions of the kernel as they are released. It is possible that by just updating your Fedora installation that sound will begin to work.

Installing the ALSA modules

Before installing the ALSA modules, you will need to decide whether to install the latest stable or development drivers. The stable drivers are more thoroughly tested; however the development drivers typically have more hardware support.

1. Download the latest development drivers from http://www.alsa-project.org. In this guide we are going to use alsa-driver-1.0.18a as at the time of writing these are the current ones. You only need to download the alsa-driver package, the other packages (alsa-lib, alsa-utils etc.) are not necessary.

2. Load up a terminal window if you are in the graphic interface.

3. Switch to the root user by entering the command “su -” (without the quotes) and type in your root password.

4. Type in the following to install gcc and the kernel headers:

yum install gcc kernel-devel make patch

5. Move to the /usr/src/ folder with:

cd /usr/src

6. Extract the contents of the file you downloaded with:

tar -xjvf /path/to/alsa-driver-1.0.18a.tar.bz2

Remember to replace the “/path/to” in this command to the path of where your file is.

7. Move into the newly created folder with

cd alsa-driver-1.0.18a

8. Run the configuration script with:

./configure

9. Now start the building process with:

make

This will take a while.

10. And finally we install these drivers with:

make install

11. Reboot your computer and the newer ALSA modules will be used.

Remember that you may need to adjust your volume settings.

Installing the CVS ALSA modules

The CVS drivers are right up to date with the latest developments. However these have barely been testing so should only be used if absolutely necessary.

The steps to installing these drivers are exactly the same as above except for the file you need to download. You can download these drivers from http://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/. Grab the latest version. Then just follow the instruction above by substituting the development version with the CVS version.

If this guide didn't work

If this guide did not work you may like to view the general Configuring the audio guide or use the Audio Tester.


Discussion

Jacob Morales, 2009/06/13 15:56

Thanks for posting this up, fixed my sound problem with Fedora 11. I kept getting errors until i installed the “patch” package through yum. Works perfect.

phil, 2009/06/17 06:32

is this the patch? it worked great for me.
ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz

mch lb, 2009/04/07 22:34

the ” Configuring the audio and updating ALSA for Fedora 10 ” is a very good site and it have very important information, “thank you”.
but it did not solve my audio problem, i installed the latest ALSA driver ( alsa-driver-1.0.19.tar.bz2 ) with no installation problems but yet no sound, i tryed the audio tester it did not solve the problem no sound. so i tryed to install the “realtek-linux-audiopack-5.11” for my audio card it give me this

make[3]: Leaving directory `/home/mch/Download/realtek-linux-audiopack-5.11/alsa-utils-1.0.19/alsactl/init'
make[2]: Leaving directory `/home/mch/Download/realtek-linux-audiopack-5.11/alsa-utils-1.0.19/alsactl/init'
make[2]: Entering directory `/home/mch/Download/realtek-linux-audiopack-5.11/alsa-utils-1.0.19/alsactl'
xmlto man alsactl_init.xml
make[2]: xmlto: Command not found
make[2]: * [alsactl_init.7] Error 127
make[2]: Leaving directory `/home/mch/Download/realtek-linux-audiopack-5.11/alsa-utils-1.0.19/alsactl'
make[1]:
* [install-recursive] Error 1
make[1]: Leaving directory `/home/mch/Download/realtek-linux-audiopack-5.11/alsa-utils-1.0.19/alsactl'
make: *** [install-recursive] Error 1
Remove Folder…..
./install: line 101: alsaconf: command not found

so also no sound
can you advice me please,Bill.
thank you

Dean, 2009/02/11 09:48

Thanks a lot mate, good tutorial. Looked all over trying to get my Xtreme-Audio sound card to work, and this done it.

Nice one.

simao, 2009/01/20 14:15

hey

me again.
thank you for the hint. i think it worked for the make command part, at least.
now i get the following error message:

[root@the alsa-driver-1.0.18a]# make
make dep
make[1]: Entering directory `/usr/src/alsa-driver-1.0.18a'
make[2]: Entering directory `/usr/src/alsa-driver-1.0.18a/acore'
copying file alsa-kernel/core/info.c
/usr/src/alsa-driver-1.0.18a/utils/patch-alsa: line 22: patch: command not found
make[2]: * [info.c] Error 1
make[2]: Leaving directory `/usr/src/alsa-driver-1.0.18a/acore'
make[1]:
* [dep] Error 1
make[1]: Leaving directory `/usr/src/alsa-driver-1.0.18a'
make: *** [include/sndversions.h] Error 2

any clues?
thanks in advance.
cheers simao*

Bill Giannikos, 2009/01/21 03:09

Try:

yum install patch
ev, 2009/01/19 21:34

hi, I tried to compile the alsa-driver-1.0.19.tar.bz2 but in “make” I get following error - can you give any advice ?


In file included from <command-line>:0:
./include/linux/autoconf.h:272:1: warning: this is the location of the previous definition
In file included from /usr/src/alsa-driver-1.0.19/acore/hrtimer.c:2:
/usr/src/alsa-driver-1.0.19/include/adriver.h:101: error: redefinition of typedef ‘fmode_t’
include/linux/types.h:193: error: previous declaration of ‘fmode_t’ was here
make[3]: * [/usr/src/alsa-driver-1.0.19/acore/hrtimer.o] Error 1
make[2]:
* [/usr/src/alsa-driver-1.0.19/acore] Error 2
make[1]: * [_module_/usr/src/alsa-driver-1.0.19] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.27.9-159.fc10.i686'
make:
* [compile] Error 2

best regards

Tomcat31, 2009/01/27 02:37

I got a simple solution for this compile problem.

Just open the ”./include/adriver.h” file in a text editor, go to line 100 and do one of the following :

Comment out the typedef : //typedef unsigned int fmode_t;

Change the kernel number : #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27)

(I've got the 2.6.27-xxxx so this effectively cancels the typedef without breaking compat with older kernels)

No if only I could get this laptop to make some noise … :(

simao, 2009/01/18 16:37

hey

real big newbie here.
“9. Now start the building process with:
make
This will take a while. ”

when i enter “make” on the terminal window, this is what i get:
“bash: make: command not found”

could you please help me?
i now nothing about linux's commands, i installed it 'cause i was so tired of windows crashing on me… but without being able to play music trough my speakers, linux is not even an option.

thank you
cheers,
simao

Bill Giannikos, 2009/01/18 22:56

Try typing in:

yum install make


Then try make again.

Enter your comment. Wiki syntax is allowed:
If you can't read the letters on the image, download this .wav file to get them read to you.
 
configuring_the_audio_and_updating_alsa_for_fedora_10.txt · Last modified: 2009/02/12 04:03 by billg
Contact Us Sister Sites Privacy Policy Terms of Use
Copyright © 2006-2013 Linlap.com and other authors