Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
The ONE Campaign to make poverty history

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 275 guest(s) and 5 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

HOWTO Home

Current HOWTO: Alsa-sound-mini-HOWTO


Alsa-sound-mini-HOWTO: NOWTO - a quick install guide Next Previous Contents

2. NOWTO - a quick install guide

If you want sound and you want it NOW! and not after reading this HOWTO, this quick tour through the ALSA driver installation might be of help. Please note: there are a couple of differences between the ALSA versions that support 2.0 kernels and those that support 2.2 kernels.

2.1 Installing ALSA for kernels 2.2.x

You will probably want to use the ALSA 0.4.1e (or later) version if your kernel is 2.2.x. If your kernel is older, please use 0.3.0-pre4 and see below.

Just the all time ``./configure - make - make install'' stuff. Do this for drivers, library and utilities. You need all three because the utilities help you to unmute your card. Kernels 2.2.x need to have general sound support in the kernel (without choosing a specific card).

The ALSA drivers have their own devices, you can make them usinge the ./snddevices script.

You need to load the module for your card (or use kmod) and if you want sound to be backwards compatible with the Linux kernel sound drivers (yes you want this) you need two other modules called snd-pcm1-oss and snd-mixer-oss. See the section Which module for which card to find out which module to load. After loading, you can look in /proc/asound for various information about the ALSA drivers.

2.2 Playing and recording sound

A few remarks. ALSA has it's own devices in /dev/snd, for example /dev/snd/pcmC0D1 is Card 0, Device 1. You can use the old /dev/pcmXY devices if you loaded snd-pcm1-oss for backwards compatibility. You'll also want to use /dev/mixer, so load snd-mixer-oss as well. Before you can play any sound, you need to unmute the card with ``amixer''. Type ``amixer groups'', then try something like

amixer set PCM 100 unmute

Generally you can use options ``mute'' or ``unmute'', ``capture'' or ``nocapture'' and numbers.

That's it! Now if it works, it works. If it doesn't work, you may need to actually read this HOWTO...

2.3 Installing ALSA for 2.0.x

The ALSA drivers versions 0.3.0, 0.3.1 and 0.3.2 have various problems due to the restructuring of the mixer interface. Later versions do not support kernel 2.0.x, so you definately will want to use version 0.3.0-pre4 if you have a 2.0 version kernel.

Just the all time ``./configure - make - make install'' stuff. Do this for drivers, library and utilities. You need all three because the utilities help you to unmute your card. Kernels 2.0.x need to have all sound support disabled in the kernel setup

The ALSA drivers have their own devices, you can make them usinge the ./snddevices script.

You need to load the module for your card (or use kmod) and if you want sound to be backwards compatible with the Linux kernel sound drivers (yes you want this) you need another modules called snd-pcm1-oss. See the section Which module for which card to find out which module to load. After loading, you can look in /proc/asound for various information about the ALSA drivers.

2.4 Playing and recording sound

A few remarks. ALSA has it's own devices in /dev/snd, for example /dev/snd/pcmC0D1 is Card 0, Device 1. You can use the old /dev/pcmXY devices if you loaded snd-pcm1-oss for backwards compatibility. Before you can play any sound, you need to unmute the card with ``amixer''. Type ``amixer'', then try something like

amixer pcm 100 unmute

Generally you can use options ``mute'' or ``unmute'', ``rec'' or ``norec'', numbers or left:right.

That's it! Now if it works, it works. If it doesn't work, you may need to actually read this HOWTO...


Next Previous Contents

The Linux Tutorial completely respects the rights of authors and artists to decide for themselves if and how their works can be used, independent of any existing licenses. This means if you are the author of any document presented on this site and do no wish it to be displayed as it is on this site or do not wish it to be displayed at all, please contact us and we will do our very best to accommodate you. If we are unable to accommodate you, we will, at your request, remove your document as quickly as possible.

If you are the author of any document presented on this site and would like a share of the advertising revenue, please contact us using the standard Feedback Form.


  
Help us cut cost by not downloading the whole site!
Use of automated download sofware ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and therefore is expressedly prohibited. For more details on this, take a look here

Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
You can get all the latest Site and Linux news by checking out our news page.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.52 Seconds