[Pkg-alsa-devel] Bug#913045: Bug#913045: libasound2: ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
Ryan Lue
ryan.lue at gmail.com
Fri Nov 16 03:51:09 GMT 2018
Hi Elimar,
Sorry for the radio silence. I thought I responded in a previous email,
but I guess it never went through?
I believe the issue goes deeper than simply setting soundcard priority.
I’m experiencing it on two different machines, and I’m trying (and
failing) to play sound out of the default device.
Desktop:
$ cat /proc/asound/cards
0 [HDMI ]: HDA-Intel - HDA Intel HDMI
HDA Intel HDMI at 0xf7e14000 irq 50
1 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xf7e10000 irq 48
2 [U0x46d0x81b ]: USB-Audio - USB Device 0x46d:0x81b
USB Device 0x46d:0x81b at usb-0000:00:14.0-1, high speed
Laptop:
$ cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xe1240000 irq 127
Both the .asoundrc you suggested and the one given by Pedro Silva solve
the problem for me, but it would be nice not to need an .asoundrc to
play sound out of the default (or only) sound device.
Given that this is happening on a machine with only one sound card
device, and that it was working in 1.1.6-1, is there any chance we could
have this issue reopened?
(FWIW, I’m working against libasound2-plugins 1.1.7-2; don’t know how to
upgrade to 1.1.7-3, since I’m on testing and not unstable. Happy to
help with any additional debugging.)
—Ryan
On 2018 Nov 06, Elimar Riesebieter wrote:
> * Ryan Lue <ryan.lue at gmail.com> [2018-11-06 18:51 +0800]:
>
> > Package: libasound2
> > Version: 1.1.7-1
> > Severity: important
> >
> > Dear Maintainer,
> >
> > Please forgive my lack of familiarity with ALSA.
> >
> > I use sox in a script to play an mp3 via STDIN, using the
> > AUDIODRIVER=alsa environment variable. Since upgrading libasound2 from
> > 1.1.6-1 to 1.1.7-1 this morning, the script now gives the following
> > error:
> >
> > ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
> > play FAIL formats: can’t open output file `default’: snd_pcm_open error: No such file or directory
> >
> > I ran speaker-test to try to isolate the problem. The output is below:
> >
> > speaker-test 1.1.6
> >
> > Playback device is default
> > Stream parameters are 48000Hz, S16_LE, 1 channels
> > Using 16 octaves of pink noise
> > ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
> > Playback open error: -2,No such file or directory
> >
> > Sound works throughout the rest of the system – I assume via PulseAudio?
> >
> > I’m happy to provide any other information to help diagnose the problem.
>
> libasound2-plugins 1.1.7-2 and alsa-utils 1.1.7-1 should arrive soon
> in testing. Please update them first and come back to this bug
> report.
>
> Thanks for your patience
>
> Elimar
> --
> Obviously the human brain works like a computer.
> Since there are no stupid computers humans can't be stupid.
> There are just a few running with Windows or even CE ;-)
More information about the Pkg-alsa-devel
mailing list