DEV Community

Arseny Zinchenko
Arseny Zinchenko

Posted on • Originally published at rtfm.co.ua on

Linux: ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave

Have a fresh Arch Linux system setup.

After some Viber’s fixes (see the Viber: no connection – qt.network.ssl: Incompatible version of OpenSSL post) – sound system sometimes stops working.

It looks like next: run qmmp, press Play and:

...
DecoderMAD: Fixed rate detected
DecoderMAD: Total time: 297900
ReplayGain: disabled
Dithering: disabled
ALSA lib pcm\_dmix.c:1108:(snd\_pcm\_dmix\_open) unable to open slave
OutputALSA: Error opening PCM device default
OutputWriter: unable to initialize output
StateHandler: Current state: FatalError; previous state: Stopped
DecoderMAD: deleting input\_buf
OutputALSA: setupMixer()
OutputALSA: setupMixer() success
StateHandler: Current state: Stopped; previous state: FatalError
...

The solution

Check audio-devices and drivers:

$ lspci -knn|grep -iA2 audio
00:1b.0 Audio device [0403]: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller [8086:8c20] (rev 05)
Subsystem: ASUSTeK Computer Inc. 8 Series/C220 Series Chipset High Definition Audio Controller [1043:8576]
Kernel driver in use: snd\_hda\_intel
Kernel modules: snd\_hda\_intel
--
01:00.1 Audio device [0403]: NVIDIA Corporation GP107GL High Definition Audio Controller [10de:0fb9] (rev a1)
Subsystem: ASUSTeK Computer Inc. GP107GL High Definition Audio Controller [1043:8613]
Kernel driver in use: snd\_hda\_intel
Kernel modules: snd\_hda\_intel

Create the /etc/modprobe.d/default.conf file:

options snd_hda_intel index=1

And reboot the system.

Then check audio with for example speaker-test:

$ speaker-test -c2
speaker-test 1.1.8
Playback device is default
Stream parameters are 48000Hz, S16\_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 96 to 1048576
Period size range from 32 to 349526
Using max buffer size 1048576
Periods = 4
was set period\_size = 262144
was set buffer\_size = 1048576
0 - Front Left
1 - Front Right
^CTime per period = 10.940188

Done.

Similar posts

Oldest comments (4)

Collapse
 
raydelrosario profile image
Ray Del Rosario

¡Thank you! Me sirvió en Void Linux

Collapse
 
erickciudaz profile image
erick-ciudaz

Thank you !!!

Collapse
 
nguyenhai97ict profile image
Nguyễn Đăng Hải

Thank, you saved my day =)) I have same problem but with wine

Collapse
 
todwulff profile image
TodWulff

Bloody forehead be damned. Thank you!