Thanks for the tip. I put that line in my /etc/asound.conf . It is the only line present.:

pcm.!default "plughw:0,0"

I run mpg321 -o alsa something.mp3 and I get:

ALSA lib pcm.c:1959:(snd_pcm_open_conf) Invalid type for PCM default definition 
(id: default, value: plughw:0,0)
ALSA snd_pcm_open error: Invalid argument


...but it plays perfectly, no underruns.


I don't think I have anything else running when this happens, my complere ps is:

[EMAIL PROTECTED]:/etc# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root 1 0 0 21:09 ? 00:00:00 init [3] root 2 1 0 21:09 ? 00:00:00 [ksoftirqd/0]
root         3     1  0 21:09 ?        00:00:00 [events/0]
root         4     1  0 21:09 ?        00:00:00 [khelper]
root         5     1  0 21:09 ?        00:00:00 [kthread]
root         7     5  0 21:09 ?        00:00:00 [kblockd/0]
root         8     5  0 21:09 ?        00:00:00 [kacpid]
root        82     5  0 21:09 ?        00:00:00 [khubd]
root       114     5  0 21:09 ?        00:00:00 [pdflush]
root       115     5  0 21:09 ?        00:00:00 [pdflush]
root       117     5  0 21:09 ?        00:00:00 [aio/0]
root       116     1  0 21:09 ?        00:00:00 [kswapd0]
root       188     5  0 21:09 ?        00:00:00 [kseriod]
root       231     1  0 21:09 ?        00:00:00 [kjournald]
root       279     1  0 21:09 ?        00:00:00 udevd
root       424     1  0 21:09 ?        00:00:00 /home/ibus/docker
root       425     1  0 21:09 ?        00:00:00 /home/ibus/cdemulator
root       730     1  0 21:09 ?        00:00:00 /usr/sbin/syslogd
root       735     1  0 21:09 ?        00:00:00 /usr/sbin/klogd -c 3 -x
root      1256     1  0 21:09 ?        00:00:00 [pccardd]
root      1267     1  0 21:09 ?        00:00:00 [pccardd]
root      2796     1  0 21:09 ?        00:00:00 /usr/sbin/inetd
root      2801     1  0 21:09 ?        00:00:00 /usr/sbin/sshd
root      2839     1  0 21:09 ?        00:00:00 /usr/sbin/crond -l10
daemon    2841     1  0 21:09 ?        00:00:00 /usr/sbin/atd -b 15 -l 1
root      2844     1  0 21:09 ?        00:00:00 /usr/sbin/acpid
root      2896     1  0 21:10 ?        00:00:00 /usr/sbin/httpd
root 2910 1 0 21:10 tty1 00:00:00 /sbin/agetty 38400 tty1 linux root 2917 1 0 21:10 tty2 00:00:00 /sbin/agetty 38400 tty2 linux root 2918 1 0 21:10 tty3 00:00:00 /sbin/agetty 38400 tty3 linux root 2919 1 0 21:10 tty4 00:00:00 /sbin/agetty 38400 tty4 linux root 2953 1 0 21:10 tty5 00:00:00 /sbin/agetty 38400 tty5 linux root 2967 1 0 21:10 tty6 00:00:00 /sbin/agetty 38400 tty6 linux
nobody    3015  2896  0 21:10 ?        00:00:00 /usr/sbin/httpd
nobody    3016  2896  0 21:10 ?        00:00:00 /usr/sbin/httpd
nobody    3017  2896  0 21:10 ?        00:00:00 /usr/sbin/httpd
nobody    3018  2896  0 21:10 ?        00:00:00 /usr/sbin/httpd
nobody    3019  2896  0 21:10 ?        00:00:00 /usr/sbin/httpd
root      3028  2801  0 21:10 ?        00:00:00 sshd: [EMAIL PROTECTED]/0
root      3036  3028  0 21:10 pts/0    00:00:00 -bash
root      3098  3036  0 21:11 pts/0    00:00:00 ps -ef


Takashi Iwai wrote:

At Mon, 27 Mar 2006 16:58:10 -0500,
Lee Revell wrote:
On Mon, 2006-03-27 at 22:50 +0100, scott wrote:
Thanks for the reply. I take it that means something like "mpg321 -o alsa -a plughw:0,0 ..." I run that and I get:

Can't open libao driver with device plughw (is device in use?)

In case its important I dont have a /proc/asound/dev directory, could that be a problem?
Do you have a sound server running, or another app that might be
blocking the sound device?

This might be a problem of dmix and libao combination.
libao tries to open the default PCM at first to probe the availability
of the sound driver, close it, then reopen again with the given PCM.
The dmix(-server) tends to keep the file descriptor for a short
period, and this prevents the reopen.  This problem should be fixed my
patches posted yesterday.

A quick fix is to redefine default to plughw in ~/.asoundrc

        pcm.!default "plughw:0,0"


Takashi


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to