Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-01-2008, 03:42 PM   #1
LQ Newbie
Registered: May 2008
Posts: 23

Rep: Reputation: 15
alsa card


on my LFS system, I managed to get my speakers to produce some output like this:

speaker-test -Dhw:2 -c2

it won't work if the number of channels is lower or higher.

Now I want to make that Device (hw:2) to be the default card alsa uses. I tried to use mplayer by using that device and two channels (mplayer /path/to/audioFile.mp3 -ao alsa:device=hw=2 -channels 2), but it only says "could not initialize audio device". And as you see, I have to set alsa manually as the audio driver, is there some way to configure this? I don't have a /dev/dsp file, why is that??

EDIT: OK, I figured out how to set the card default, so that it works with speaker-test, but it still doesn't work with mplayer. Before I set this card default, a "virtual MIDI card" was default, and mplayer managed to load that, and play, but of course I couldn't hear anything. Now mplayer says could not open/initialize audio device I have a ubuntu installation on the same machine, and the sound works there..


Last edited by dracayr; 12-01-2008 at 04:18 PM.
Old 12-07-2008, 08:59 PM   #2
LQ Newbie
Registered: Apr 2008
Location: Mesa, Arizona
Distribution: Slackware 11
Posts: 3

Rep: Reputation: 0
Hello, dracayr.

I'm not sure what is going on but I suggest finding and installing Xine, if you can find it.
It may be the mplayer just doesn't like your speakers...changing the program might work.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Sound card conflict with Vid-Capture card ALSA Optimistic Debian 5 11-05-2007 11:20 PM
USB sound card not detected by ALSA but is by lsusb, using alsa 1.0.15 mjkelly93 Linux - Hardware 1 10-20-2007 10:23 AM
Alsa is only able to use one card kummiliim Slackware 20 04-03-2007 11:30 PM
card 0:intel8x0m card 1: intel8x0, alsa mixer cannot locate them T.T Fortuner Slackware 3 06-06-2006 01:39 AM
ALSA Doesn't like my card arew264 Linux - Software 2 01-15-2006 11:17 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration