Discussion:
[Alsa-user] alsa-problem
kunt1z
2006-01-09 07:57:05 UTC
Permalink
Something happens...
I run alsaconf, a script that modify /etc/modules.conf file, then I
restart /etc/init.d/alsasound service and I try to play a sound with
aplay. Here's what happens:

$ aplay test.wav
ALSA lib pcm_dmix.c:852:(snd_pcm_dmix_open) unable to open slave
aplay: main:547: audio open error: No such file or directory

What does it mean "unable to open slave"? And why it says "no such file
or directory"? Which file? The test.wav has correct path.
I try to run as root speaker-test, the result is similar:

# speaker-test

speaker-test 1.0.11rc2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:852:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directory
ALSA lib pcm_dmix.c:852:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directory
[...]

I don't have a .asoundrc file, my user is in the "audio" group and
permission of /dev/dsp files (and other files) is correct.
Any suggestion?
Thanx!
James Courtier-Dutton
2006-01-09 10:25:06 UTC
Permalink
Post by kunt1z
Something happens...
I run alsaconf, a script that modify /etc/modules.conf file, then I
restart /etc/init.d/alsasound service and I try to play a sound with
$ aplay test.wav
ALSA lib pcm_dmix.c:852:(snd_pcm_dmix_open) unable to open slave
aplay: main:547: audio open error: No such file or directory
What does it mean "unable to open slave"? And why it says "no such
file or directory"? Which file? The test.wav has correct path.
I agree. We should at least have alsa-lib report the filename it was
trying to open.
Takashi Iwai
2006-01-13 17:26:02 UTC
Permalink
At Mon, 09 Jan 2006 12:24:21 +0000,
Post by James Courtier-Dutton
Post by kunt1z
Something happens...
I run alsaconf, a script that modify /etc/modules.conf file, then I
restart /etc/init.d/alsasound service and I try to play a sound with
$ aplay test.wav
ALSA lib pcm_dmix.c:852:(snd_pcm_dmix_open) unable to open slave
aplay: main:547: audio open error: No such file or directory
What does it mean "unable to open slave"? And why it says "no such
file or directory"? Which file? The test.wav has correct path.
I agree. We should at least have alsa-lib report the filename it was
trying to open.
You can see it when you set the environment variable
LIBASOUND_DEBUG=2. See alsa-lib/NOTES for details.


Takashi
Lee Revell
2006-01-13 17:31:09 UTC
Permalink
Post by Takashi Iwai
At Mon, 09 Jan 2006 12:24:21 +0000,
Post by James Courtier-Dutton
Post by kunt1z
Something happens...
I run alsaconf, a script that modify /etc/modules.conf file, then I
restart /etc/init.d/alsasound service and I try to play a sound with
$ aplay test.wav
ALSA lib pcm_dmix.c:852:(snd_pcm_dmix_open) unable to open slave
aplay: main:547: audio open error: No such file or directory
What does it mean "unable to open slave"? And why it says "no such
file or directory"? Which file? The test.wav has correct path.
I agree. We should at least have alsa-lib report the filename it was
trying to open.
You can see it when you set the environment variable
LIBASOUND_DEBUG=2. See alsa-lib/NOTES for details.
That's disabled by default, you have to build alsa-lib with
--with-debug=yes for it to work.

Lee
Takashi Iwai
2006-01-13 17:36:01 UTC
Permalink
At Fri, 13 Jan 2006 14:30:35 -0500,
Post by Lee Revell
Post by Takashi Iwai
At Mon, 09 Jan 2006 12:24:21 +0000,
Post by James Courtier-Dutton
Post by kunt1z
Something happens...
I run alsaconf, a script that modify /etc/modules.conf file, then I
restart /etc/init.d/alsasound service and I try to play a sound with
$ aplay test.wav
ALSA lib pcm_dmix.c:852:(snd_pcm_dmix_open) unable to open slave
aplay: main:547: audio open error: No such file or directory
What does it mean "unable to open slave"? And why it says "no such
file or directory"? Which file? The test.wav has correct path.
I agree. We should at least have alsa-lib report the filename it was
trying to open.
You can see it when you set the environment variable
LIBASOUND_DEBUG=2. See alsa-lib/NOTES for details.
That's disabled by default, you have to build alsa-lib with
--with-debug=yes for it to work.
The debug option is enabled as default.


Takashi

Loading...