[alsa-devel] Confused about 'default' device

Clemens Ladisch cladisch at fastmail.net
Thu Oct 25 09:02:27 CEST 2007

Timur Tabi wrote:
> Clemens Ladisch wrote:
> > Takashi Iwai wrote:
> >> Timur Tabi wrote:
> > Are there any definitions in ~/.asoundrc or /etc/asound.conf?  If not,
> > what driver is used, and does it have a file in /usr/share/alsa/cards/?
> Ok, I made some progress.
> According to http://alsa.opensrc.org/.asoundrc, because I'm using ALSA
> 1.0.8, I need to have an .asoundrc.

You'd need it to activate dmix, but sample rate/format conversion
already works with earlier versions.

>  So I added this .asoundrc:
> pcm.!default {
> 	type hw
> 	card 0
> }

This disables all automatic conversions.

> And now sample rate conversion works!

Well, it always worked because mplayer does it itself.

Please try this:

    pcm.!default = "plughw:0"

And if this works, there is something wrong with you default device
definitions.  Please tell us the driver name and whether it has a file
in /usr/share/alsa/cards/.


More information about the Alsa-devel mailing list