Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 717438 - media-libs/alsa-lib: (snd_pcm_dmix_open) unable to open slave
Summary: media-libs/alsa-lib: (snd_pcm_dmix_open) unable to open slave
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-14 11:48 UTC by Tube709
Modified: 2020-04-20 19:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tube709 2020-04-14 11:48:44 UTC
I have installed the latest version 5.4.28 on two AMD64 machines; one Mac Pro and one ACER Laptop. I used the tool to upgrade the .config kernel file with success. Everything regarding sound is working well on the Mac Pro but the ALSA lib doesn't seem to recognize the hardware on the laptop.

Reproducible: Always

Steps to Reproduce:
1. aplay --list-devices
2. arecord --list-devices
3. ls -al /proc/asound
4. cat /proc/asound/cards
5. cat .asoundrc
6. lspci | grep -i audio
7. speaker-test -t sine -c 2
8. speaker-test -t wav -c 2

Actual Results:  
Voyager ~ # aplay --list-devices
**** Liste des Périphériques Matériels PLAYBACK ****
carte 0: HDMI [HDA ATI HDMI], périphérique 3: HDMI 0 [HDMI 0]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 1: Generic [HD-Audio Generic], périphérique 0: ALC283 Analog [ALC283 Analog]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 2: pcsp [pcsp], périphérique 0: pcspeaker [pcsp]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
Voyager ~ #  arecord --list-devices
**** Liste des Périphériques Matériels CAPTURE ****
carte 1: Generic [HD-Audio Generic], périphérique 0: ALC283 Analog [ALC283 Analog]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
Voyager ~ # ls -al /proc/asound
total 0
dr-xr-xr-x   6 root root 0 14 avr 07:39 .
dr-xr-xr-x 107 root root 0 14 avr 06:40 ..
dr-xr-xr-x   3 root root 0 14 avr 07:39 card0
dr-xr-xr-x   4 root root 0 14 avr 07:39 card1
dr-xr-xr-x   3 root root 0 14 avr 07:39 card2
-r--r--r--   1 root root 0 14 avr 07:39 cards
-r--r--r--   1 root root 0 14 avr 07:39 devices
lrwxrwxrwx   1 root root 5 14 avr 07:39 Generic -> card1
lrwxrwxrwx   1 root root 5 14 avr 07:39 HDMI -> card0
-r--r--r--   1 root root 0 14 avr 07:39 hwdep
dr-xr-xr-x   2 root root 0 14 avr 07:39 oss
-r--r--r--   1 root root 0 14 avr 07:39 pcm
lrwxrwxrwx   1 root root 5 14 avr 07:39 pcsp -> card2
-r--r--r--   1 root root 0 14 avr 07:39 timers
-r--r--r--   1 root root 0 14 avr 07:39 version
Voyager ~ # cat /proc/asound/cards
 0 [HDMI           ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xf0d60000 irq 40
 1 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xf0d64000 irq 41
 2 [pcsp           ]: PC-Speaker - pcsp
                      Internal PC-Speaker at port 0x61
Voyager ~ # lspci | grep -i audio
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kabini HDMI/DP Audio
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 02)
Voyager ~ # speaker-test -t sine -c 2

speaker-test 1.2.1

Le périphérique de lecture est default
Les paramètres du flux sont 48000Hz, S16_LE, 2 canaux
La fréquence de la courbe sinus est 440,0000Hz
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/pcm/pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
Erreur d'ouverture à la lecture: -2,Aucun fichier ou dossier de ce type
Voyager ~ # speaker-test -t wav -c 2

speaker-test 1.2.1

Le périphérique de lecture est default
Les paramètres du flux sont 48000Hz, S16_LE, 2 canaux
fichier(s) WAV
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/pcm/pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
Erreur d'ouverture à la lecture: -2,Aucun fichier ou dossier de ce type


Expected Results:  
Deep_Space_Nine ~ # speaker-test -t wav -c 2

speaker-test 1.2.1

Le périphérique de lecture est default
Les paramètres du flux sont 48000Hz, S16_LE, 2 canaux
fichier(s) WAV
La fréquence est 48000Hz (demandée 48000Hz)
L'intervalle de la taille du tampon est de 2048 à 8192
L'intervalle de la taille de la période est de 1024 à 1024
Taille max. de tampon 8192 utilisée
Périodes = 4
was set period_size = 1024
was set buffer_size = 8192
 0 - Front Left
 1 - Front Right
Temps par période = 2,857409


It was working before the upgrade to 5.4.28!
Comment 1 Tube709 2020-04-20 19:29:16 UTC
Hi,

After trying to install my video camera with cheese, I noticed that I had to put my userid into the group "video".

Once this was fixed, I tried to add also my userid into the "audio" group and it fix my alsa problem. Comparing both /etc/group of this laptop and the other computer reveal that onto the other computer, the userid was already a member of group audio!

I don't know where I miss to add myself in the audio group, but for now, the problem is fixed.

Regards,