Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ALSA error unable to open slave
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
enhaced
n00b
n00b


Joined: 10 Mar 2022
Posts: 26

PostPosted: Tue May 09, 2023 1:07 am    Post subject: ALSA error unable to open slave Reply with quote

Hello there my fellow Gentooers!
I have been caught offguard by this random error after I ran emerge --ask --depclean to clean my system (I checked the packages before, btw)
but apparently something has managed to slip through my watch and now ALSA is broken!
whenever I try to play a file in VLC this happens:
Code:

ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.9/work/alsa-lib-1.2.9/src/pcm/pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave
[0000559fc10aafd0] alsa audio output error: cannot open ALSA device "default": Arquivo ou diretório inexistente //leaving a note here, for those wondering this is the default 'No such file or directory' error

and I can confirm that indeed /var/tmp/portage/media-libs doesn't exist!
Another very interesting thing to note is that the /etc/modprobe.d/alsa file is also absent.
I tried to update my use flags, my system and my kernel settings, but to no help!
what should I do :?:
Back to top
View user's profile Send private message
krumpf
Apprentice
Apprentice


Joined: 15 Jul 2018
Posts: 175

PostPosted: Tue May 09, 2023 6:09 am    Post subject: Reply with quote

Try recreating /etc/modprobe.d/alsa.conf with those lines (warning it's very trimmed, I removed all the OSS part)

Code:
# Alsa kernel modules' configuration file.
# ALSA portion
alias char-major-116 snd
# sound card slots, comma separated list
options snd slots=snd-driver1


Replace snd-driver1 by your main soundcard driver (for onboard realtek chips/HDMI outputs it's usually snd-hda-intel ), then reload the sound driver module.
It should work unless your cleaning also removed essential alsa packages.
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 922
Location: Romania

PostPosted: Tue May 09, 2023 10:56 am    Post subject: Reply with quote

Does speaker-test work, or does it error our the same way?
Also, IMHO sound should be built into the kernel as you usually want sound to work at all times.
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
enhaced
n00b
n00b


Joined: 10 Mar 2022
Posts: 26

PostPosted: Tue May 09, 2023 6:18 pm    Post subject: Reply with quote

stefan11111 wrote:
Does speaker-test work, or does it error our the same way?
Also, IMHO sound should be built into the kernel as you usually want sound to work at all times.


Nope, same thing with speaker-test

Code:

speaker-test 1.2.9

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.9/work/alsa-lib-1.2.9/src/pcm/pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,Arquivo ou diretório inexistente // No such file or directory

_________________
addict with a pen
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 922
Location: Romania

PostPosted: Tue May 09, 2023 6:35 pm    Post subject: Reply with quote

These are the packages I have installed for alsa:
Code:
[?] media-libs/alsa-lib
     Available versions:  1.2.7.2 (~)1.2.7.2-r1 (~)1.2.8-r1 {alisp debug doc python +thread-safety ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32" PYTHON_SINGLE_TARGET="python3_9 python3_10 python3_11"}
     Installed versions:  1.2.9(02:39:48 AM 05/06/2023)(-alisp -debug -doc -python ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32" PYTHON_SINGLE_TARGET="python3_11 -python3_10")
     Homepage:            https://alsa-project.org/wiki/Main_Page
     Description:         Advanced Linux Sound Architecture Library

[I] media-libs/alsa-topology-conf
     Available versions:  1.2.5.1
     Installed versions:  1.2.5.1(01:19:26 AM 03/28/2023)
     Homepage:            https://alsa-project.org/wiki/Main_Page
     Description:         ALSA topology configuration files

[?] media-libs/alsa-ucm-conf
     Available versions:  1.2.7.2 (~)1.2.8
     Installed versions:  1.2.9(02:38:50 AM 05/06/2023)
     Homepage:            https://alsa-project.org/wiki/Main_Page
     Description:         ALSA ucm configuration files

[?] media-sound/alsa-utils
     Available versions:  (0.9) 1.2.7-r1 (~)1.2.8 (~)1.2.8-r2
       {bat doc ieee1394 +libsamplerate +ncurses nls selinux}
     Installed versions:  1.2.9(0.9)(02:40:30 AM 05/06/2023)(libsamplerate ncurses -bat -doc -ieee1394 -nls -selinux)
     Homepage:            https://alsa-project.org/wiki/Main_Page
     Description:         Advanced Linux Sound Architecture Utils (alsactl, alsamixer, etc.)

Are you missing any of them?
Also, post the output of:
Code:
strace speaker-test

_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
enhaced
n00b
n00b


Joined: 10 Mar 2022
Posts: 26

PostPosted: Tue May 09, 2023 6:40 pm    Post subject: Reply with quote

stefan11111 wrote:
These are the packages I have installed for alsa:
...
Are you missing any of them?

nope, not missing any, but just to be sure i also re-emerged them.

Quote:
Also, post the output of:

Here you go:
Code:

brk(NULL)                               = 0x55bef20fa000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=114644, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 114644, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fa6a4775000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib64/libasound.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=975256, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa6a4773000
mmap(NULL, 978160, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fa6a4684000
mmap(0x7fa6a46b2000, 561152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2e000) = 0x7fa6a46b2000
mmap(0x7fa6a473b000, 196608, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb7000) = 0x7fa6a473b000
mmap(0x7fa6a476b000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe6000) = 0x7fa6a476b000
close(3)                                = 0
openat(AT_FDCWD, "/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=895208, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 897264, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fa6a45a8000
mmap(0x7fa6a45b6000, 466944, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe000) = 0x7fa6a45b6000
mmap(0x7fa6a4628000, 368640, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x80000) = 0x7fa6a4628000
mmap(0x7fa6a4682000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd9000) = 0x7fa6a4682000
close(3)                                = 0
openat(AT_FDCWD, "/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220:\2\0\0\0\0\0"..., 832) = 832
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=1905496, ...}, AT_EMPTY_PATH) = 0
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
mmap(NULL, 1936688, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fa6a43cf000
mmap(0x7fa6a43f1000, 1400832, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22000) = 0x7fa6a43f1000
mmap(0x7fa6a4547000, 339968, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x178000) = 0x7fa6a4547000
mmap(0x7fa6a459a000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ca000) = 0x7fa6a459a000
mmap(0x7fa6a45a0000, 32048, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fa6a45a0000
close(3)                                = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa6a43cc000
arch_prctl(ARCH_SET_FS, 0x7fa6a43cc740) = 0
set_tid_address(0x7fa6a43cca10)         = 5494
set_robust_list(0x7fa6a43cca20, 24)     = 0
rseq(0x7fa6a43cd060, 0x20, 0, 0x53053053) = 0
mprotect(0x7fa6a459a000, 16384, PROT_READ) = 0
mprotect(0x7fa6a4682000, 4096, PROT_READ) = 0
mprotect(0x7fa6a476b000, 24576, PROT_READ) = 0
mprotect(0x55bef051e000, 4096, PROT_READ) = 0
mprotect(0x7fa6a47c1000, 8192, PROT_READ) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
munmap(0x7fa6a4775000, 114644)          = 0
getrandom("\x72\x7d\xaa\xba\xde\xcb\xe7\x76", 8, GRND_NONBLOCK) = 8
brk(NULL)                               = 0x55bef20fa000
brk(0x55bef211b000)                     = 0x55bef211b000
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=3393152, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 3393152, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fa6a4000000
close(3)                                = 0
newfstatat(1, "", {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0x4), ...}, AT_EMPTY_PATH) = 0
write(1, "\n", 1
)                       = 1
write(1, "speaker-test 1.2.9\n", 19speaker-test 1.2.9
)    = 19
write(1, "\n", 1
)                       = 1
openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=2998, ...}, AT_EMPTY_PATH) = 0
read(3, "# Locale name alias data base.\n#"..., 4096) = 2998
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/usr/share/locale/pt_BR.utf8/LC_MESSAGES/alsa-utils.mo", O_RDONLY) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/usr/share/locale/pt_BR/LC_MESSAGES/alsa-utils.mo", O_RDONLY) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/usr/share/locale/pt.utf8/LC_MESSAGES/alsa-utils.mo", O_RDONLY) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/usr/share/locale/pt/LC_MESSAGES/alsa-utils.mo", O_RDONLY) = -1 ENOENT (Arquivo ou diretório inexistente)
write(1, "Playback device is default\n", 27Playback device is default
) = 27
write(1, "Stream parameters are 48000Hz, S"..., 50Stream parameters are 48000Hz, S16_LE, 1 channels
) = 50
write(1, "Using 16 octaves of pink noise\n", 31Using 16 octaves of pink noise
) = 31
rt_sigaction(SIGINT, {sa_handler=0x55bef051b7f0, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fa6a4407ba0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=0x55bef051b7f0, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fa6a4407ba0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGABRT, {sa_handler=0x55bef051b7f0, sa_mask=[ABRT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fa6a4407ba0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
futex(0x7fa6a47729e0, FUTEX_WAKE_PRIVATE, 2147483647) = 0
newfstatat(AT_FDCWD, "/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=10119, ...}, 0) = 0
openat(AT_FDCWD, "/usr/share/alsa/alsa.conf", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=10119, ...}, AT_EMPTY_PATH) = 0
read(3, "#\n#  ALSA library configuration "..., 4096) = 4096
read(3, "mehint.extended\n\t\t}\n\t\tdescriptio"..., 4096) = 4096
read(3, "ace\n#\n\nhwdep.default {\n\ttype hw\n"..., 4096) = 1927
read(3, "", 4096)                       = 0
close(3)                                = 0
access("/var/lib/alsa/conf.d", R_OK)    = -1 ENOENT (Arquivo ou diretório inexistente)
access("/usr/etc/alsa/conf.d", R_OK)    = -1 ENOENT (Arquivo ou diretório inexistente)
access("/etc/alsa/conf.d", R_OK)        = 0
newfstatat(AT_FDCWD, "/etc/alsa/conf.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
openat(AT_FDCWD, "/etc/alsa/conf.d", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
newfstatat(3, "", {st_mode=S_IFDIR|0755, st_size=4096, ...}, AT_EMPTY_PATH) = 0
getdents64(3, 0x55bef210ec40 /* 5 entries */, 32768) = 168
getdents64(3, 0x55bef210ec40 /* 0 entries */, 32768) = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/alsa/conf.d/60-upmix.conf", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=389, ...}, AT_EMPTY_PATH) = 0
read(3, "pcm.upmix {\n\t@args [ SLAVE CHANN"..., 4096) = 389
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/alsa/conf.d/60-vdownmix.conf", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=393, ...}, AT_EMPTY_PATH) = 0
read(3, "pcm.vdownmix {\n\t@args [ SLAVE CH"..., 4096) = 393
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/alsa/conf.d/98-usb-stream.conf", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=395, ...}, AT_EMPTY_PATH) = 0
read(3, "pcm.usbstream {\n\t@args [ CARD RA"..., 4096) = 395
read(3, "", 4096)                       = 0
close(3)                                = 0
access("/etc/asound.conf", R_OK)        = -1 ENOENT (Arquivo ou diretório inexistente)
access("/usr/etc/asound.conf", R_OK)    = -1 ENOENT (Arquivo ou diretório inexistente)
access("/home/enhaced/.asoundrc", R_OK) = -1 ENOENT (Arquivo ou diretório inexistente)
access("/home/enhaced/.config/alsa/asoundrc", R_OK) = -1 ENOENT (Arquivo ou diretório inexistente)
newfstatat(AT_FDCWD, "/usr/share/alsa/cards/aliases.conf", {st_mode=S_IFREG|0644, st_size=1487, ...}, 0) = 0
openat(AT_FDCWD, "/usr/share/alsa/cards/aliases.conf", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=1487, ...}, AT_EMPTY_PATH) = 0
read(3, "#\n#  Define aliases for various "..., 4096) = 1487
openat(AT_FDCWD, "/usr/share/alsa/ctl/default.conf", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=539, ...}, AT_EMPTY_PATH) = 0
read(4, "#\n# Default control device\n#\n\nct"..., 4096) = 539
read(4, "", 4096)                       = 0
close(4)                                = 0
openat(AT_FDCWD, "/usr/share/alsa/pcm/default.conf", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=760, ...}, AT_EMPTY_PATH) = 0
read(4, "#\n# Default output\n#\n\npcm.!defau"..., 4096) = 760
read(4, "", 4096)                       = 0
close(4)                                = 0
openat(AT_FDCWD, "/usr/share/alsa/pcm/dmix.conf", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=1708, ...}, AT_EMPTY_PATH) = 0
read(4, "#\n# dmix output\n#\n\npcm.!dmix {\n\t"..., 4096) = 1708
read(4, "", 4096)                       = 0
close(4)                                = 0
openat(AT_FDCWD, "/usr/share/alsa/pcm/dsnoop.conf", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=1590, ...}, AT_EMPTY_PATH) = 0
read(4, "#\n# dsnoop\n#\n\npcm.!dsnoop {\n\t@ar"..., 4096) = 1590
brk(0x55bef213c000)                     = 0x55bef213c000
read(4, "", 4096)                       = 0
close(4)                                = 0
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11ba6a0) = 0
close(3)                                = 0
newfstatat(AT_FDCWD, "/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=10119, ...}, 0) = 0
openat(AT_FDCWD, "/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11ba170) = 0
close(3)                                = 0
openat(AT_FDCWD, "/dev/snd/controlC0", O_RDWR|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_PVERSION, 0x7ffeb11ba544) = 0
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11ba710) = 0
close(3)                                = 0
access("/usr/share/alsa/cards/HDA-Intel.conf", R_OK) = 0
newfstatat(AT_FDCWD, "/usr/share/alsa/cards/HDA-Intel.conf", {st_mode=S_IFREG|0644, st_size=8074, ...}, 0) = 0
openat(AT_FDCWD, "/usr/share/alsa/cards/HDA-Intel.conf", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=8074, ...}, AT_EMPTY_PATH) = 0
read(3, "#\n# Configuration for the Intel "..., 4096) = 4096
openat(AT_FDCWD, "/usr/share/alsa/pcm/front.conf", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=802, ...}, AT_EMPTY_PATH) = 0
read(4, "#\n# Hardware output from front s"..., 4096) = 802
read(4, "", 4096)                       = 0
close(4)                                = 0
openat(AT_FDCWD, "/usr/share/alsa/pcm/surround21.conf", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=923, ...}, AT_EMPTY_PATH) = 0
read(4, "#\n#  Hardware output from 2.1 sp"..., 4096) = 923
read(4, "", 4096)                       = 0
close(4)                                = 0
openat(AT_FDCWD, "/usr/share/alsa/pcm/surround40.conf", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=901, ...}, AT_EMPTY_PATH) = 0
read(4, "#\n#  Hardware output from 4.0 sp"..., 4096) = 901
read(4, "", 4096)                       = 0
close(4)                                = 0
openat(AT_FDCWD, "/usr/share/alsa/pcm/surround41.conf", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=1004, ...}, AT_EMPTY_PATH) = 0
read(4, "#\n#  Hardware output from 4.1 sp"..., 4096) = 1004
read(4, "", 4096)                       = 0
close(4)                                = 0
openat(AT_FDCWD, "/usr/share/alsa/pcm/surround50.conf", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=1003, ...}, AT_EMPTY_PATH) = 0
read(4, "#\n#  Hardware output from 5.0 sp"..., 4096) = 1003
read(4, "", 4096)                       = 0
close(4)                                = 0
openat(AT_FDCWD, "/usr/share/alsa/pcm/surround51.conf", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=954, ...}, AT_EMPTY_PATH) = 0
read(4, "#\n#  Hardware output from 5.1 sp"..., 4096) = 954
read(4, "", 4096)                       = 0
close(4)                                = 0
openat(AT_FDCWD, "/usr/share/alsa/pcm/surround71.conf", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=1002, ...}, AT_EMPTY_PATH) = 0
read(4, "#\n#  Hardware output from 7.1 sp"..., 4096) = 1002
read(4, "", 4096)                       = 0
close(4)                                = 0
openat(AT_FDCWD, "/usr/share/alsa/pcm/iec958.conf", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=1218, ...}, AT_EMPTY_PATH) = 0
read(4, "#\n#  Hardware output from iec958"..., 4096) = 1218
read(4, "", 4096)                       = 0
close(4)                                = 0
openat(AT_FDCWD, "/usr/share/alsa/pcm/hdmi.conf", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=1186, ...}, AT_EMPTY_PATH) = 0
read(4, "#\n#  Hardware output from HDMI\n#"..., 4096) = 1186
read(4, "", 4096)                       = 0
close(4)                                = 0
read(3, "s.CARD { type string }\n\t@args.AE"..., 4096) = 3978
brk(0x55bef215d000)                     = 0x55bef215d000
openat(AT_FDCWD, "/usr/share/alsa/pcm/modem.conf", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=1312, ...}, AT_EMPTY_PATH) = 0
read(4, "#\n# \"raw\" modem - phoneline\n#\n\np"..., 4096) = 1312
read(4, "", 4096)                       = 0
close(4)                                = 0
read(3, "", 4096)                       = 0
close(3)                                = 0
access("/var/lib/alsa/card0.conf.d", R_OK) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC1", O_RDONLY|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11ba6a0) = 0
close(3)                                = 0
newfstatat(AT_FDCWD, "/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=10119, ...}, 0) = 0
openat(AT_FDCWD, "/dev/snd/controlC1", O_RDONLY|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11ba170) = 0
close(3)                                = 0
openat(AT_FDCWD, "/dev/snd/controlC1", O_RDWR|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_PVERSION, 0x7ffeb11ba544) = 0
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11ba710) = 0
close(3)                                = 0
openat(AT_FDCWD, "/dev/snd/controlC2", O_RDONLY|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11ba6a0) = 0
close(3)                                = 0
newfstatat(AT_FDCWD, "/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=10119, ...}, 0) = 0
openat(AT_FDCWD, "/dev/snd/controlC2", O_RDONLY|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11ba170) = 0
close(3)                                = 0
openat(AT_FDCWD, "/dev/snd/controlC2", O_RDWR|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_PVERSION, 0x7ffeb11ba544) = 0
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11ba710) = 0
close(3)                                = 0
access("/usr/share/alsa/cards/USB-Audio.conf", R_OK) = 0
newfstatat(AT_FDCWD, "/usr/share/alsa/cards/USB-Audio.conf", {st_mode=S_IFREG|0644, st_size=9742, ...}, 0) = 0
openat(AT_FDCWD, "/usr/share/alsa/cards/USB-Audio.conf", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=9742, ...}, AT_EMPTY_PATH) = 0
read(3, "#\n#  USB-Audio.conf - configurat"..., 4096) = 4096
read(3, " }\n\t@args.AES3 { type integer }\n"..., 4096) = 4096
openat(AT_FDCWD, "/usr/share/alsa/pcm/front.conf", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=802, ...}, AT_EMPTY_PATH) = 0
read(4, "#\n# Hardware output from front s"..., 4096) = 802
read(4, "", 4096)                       = 0
close(4)                                = 0
openat(AT_FDCWD, "/usr/share/alsa/pcm/surround40.conf", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=901, ...}, AT_EMPTY_PATH) = 0
read(4, "#\n#  Hardware output from 4.0 sp"..., 4096) = 901
read(4, "", 4096)                       = 0
close(4)                                = 0
openat(AT_FDCWD, "/usr/share/alsa/pcm/surround21.conf", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=923, ...}, AT_EMPTY_PATH) = 0
read(4, "#\n#  Hardware output from 2.1 sp"..., 4096) = 923
read(4, "", 4096)                       = 0
close(4)                                = 0
openat(AT_FDCWD, "/usr/share/alsa/pcm/surround41.conf", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=1004, ...}, AT_EMPTY_PATH) = 0
read(4, "#\n#  Hardware output from 4.1 sp"..., 4096) = 1004
read(4, "", 4096)                       = 0
close(4)                                = 0
openat(AT_FDCWD, "/usr/share/alsa/pcm/surround50.conf", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=1003, ...}, AT_EMPTY_PATH) = 0
read(4, "#\n#  Hardware output from 5.0 sp"..., 4096) = 1003
read(4, "", 4096)                       = 0
close(4)                                = 0
openat(AT_FDCWD, "/usr/share/alsa/pcm/surround51.conf", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=954, ...}, AT_EMPTY_PATH) = 0
read(4, "#\n#  Hardware output from 5.1 sp"..., 4096) = 954
read(4, "", 4096)                       = 0
close(4)                                = 0
openat(AT_FDCWD, "/usr/share/alsa/pcm/surround71.conf", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=1002, ...}, AT_EMPTY_PATH) = 0
read(4, "#\n#  Hardware output from 7.1 sp"..., 4096) = 1002
read(4, "", 4096)                       = 0
close(4)                                = 0
read(3, ".4 1\n\t\tttable.3.5 1\n\t\tttable.4.2"..., 4096) = 1550
openat(AT_FDCWD, "/usr/share/alsa/pcm/iec958.conf", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=1218, ...}, AT_EMPTY_PATH) = 0
read(4, "#\n#  Hardware output from iec958"..., 4096) = 1218
read(4, "", 4096)                       = 0
close(4)                                = 0
read(3, "", 4096)                       = 0
close(3)                                = 0
access("/var/lib/alsa/card2.conf.d", R_OK) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC3", O_RDONLY|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11ba6a0) = 0
close(3)                                = 0
newfstatat(AT_FDCWD, "/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=10119, ...}, 0) = 0
openat(AT_FDCWD, "/dev/snd/controlC3", O_RDONLY|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11ba170) = 0
close(3)                                = 0
openat(AT_FDCWD, "/dev/snd/controlC3", O_RDWR|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_PVERSION, 0x7ffeb11ba544) = 0
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11ba710) = 0
close(3)                                = 0
openat(AT_FDCWD, "/dev/snd/controlC4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC7", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC7", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC8", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC8", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC9", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC9", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC10", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC10", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC11", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC11", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC12", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC12", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC13", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC13", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC14", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC14", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC15", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC15", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC16", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC16", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC17", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC17", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC18", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC18", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC19", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC19", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC20", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC20", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC21", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC21", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC22", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC22", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC23", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC23", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC24", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC24", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC25", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC25", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC26", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC26", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC27", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC27", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC28", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC28", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC29", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC29", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC30", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC30", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC31", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/aloadC31", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11b9f20) = 0
close(3)                                = 0
openat(AT_FDCWD, "/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11b9550) = 0
close(3)                                = 0
newfstatat(AT_FDCWD, "/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=10119, ...}, 0) = 0
openat(AT_FDCWD, "/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11b93c0) = 0
close(3)                                = 0
openat(AT_FDCWD, "/dev/snd/controlC0", O_RDWR|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_PVERSION, 0x7ffeb11b9794) = 0
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11b9960) = 0
close(3)                                = 0
openat(AT_FDCWD, "/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11b9550) = 0
close(3)                                = 0
newfstatat(AT_FDCWD, "/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=10119, ...}, 0) = 0
openat(AT_FDCWD, "/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11b93c0) = 0
close(3)                                = 0
openat(AT_FDCWD, "/dev/snd/controlC0", O_RDWR|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_PVERSION, 0x7ffeb11b9794) = 0
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11b9960) = 0
close(3)                                = 0
openat(AT_FDCWD, "/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11b9550) = 0
close(3)                                = 0
newfstatat(AT_FDCWD, "/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=10119, ...}, 0) = 0
openat(AT_FDCWD, "/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11b93c0) = 0
close(3)                                = 0
openat(AT_FDCWD, "/dev/snd/controlC0", O_RDWR|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_PVERSION, 0x7ffeb11b9794) = 0
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11b9960) = 0
close(3)                                = 0
newfstatat(AT_FDCWD, "/etc/nsswitch.conf", {st_mode=S_IFREG|0644, st_size=2091, ...}, 0) = 0
newfstatat(AT_FDCWD, "/", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
openat(AT_FDCWD, "/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=2091, ...}, AT_EMPTY_PATH) = 0
read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 2091
read(3, "", 4096)                       = 0
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=2091, ...}, AT_EMPTY_PATH) = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/group", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=926, ...}, AT_EMPTY_PATH) = 0
lseek(3, 0, SEEK_SET)                   = 0
read(3, "root:x:0:root\nbin:x:1:root,bin,d"..., 4096) = 926
close(3)                                = 0
openat(AT_FDCWD, "/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11b9d60) = 0
close(3)                                = 0
semget(0x56a4d5, 1, IPC_CREAT|0660)     = 4
semctl(4, 0, IPC_STAT, {sem_perm={uid=1000, gid=1000, mode=0660, key=5678293, cuid=1000, cgid=1000}, sem_otime=0, sem_ctime=1683657515, sem_nsems=1}) = 0
semctl(4, 0, IPC_SET, {sem_perm={uid=1000, gid=18, mode=0660}}) = 0
semtimedop(4, [{sem_num=0, sem_op=0, sem_flg=0}, {sem_num=0, sem_op=1, sem_flg=SEM_UNDO}], 2, NULL) = 0
shmget(0x56a4d5, 488, 0660)             = -1 ENOENT (Arquivo ou diretório inexistente)
shmget(0x56a4d5, 488, IPC_CREAT|IPC_EXCL|0660) = 19
shmat(19, NULL, 0)                      = 0x7fa6a4790000
mlock(0x7fa6a4790000, 488)              = 0
shmctl(19, IPC_STAT, {shm_perm={uid=1000, gid=1000, mode=0660, key=5678293, cuid=1000, cgid=1000}, shm_segsz=488, shm_cpid=5494, shm_lpid=5494, shm_nattch=1, shm_atime=1683657515, shm_dtime=0, shm_ctime=1683657515}) = 0
shmctl(19, IPC_SET, {shm_perm={uid=1000, gid=18, mode=0660}}) = 0
openat(AT_FDCWD, "/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ffeb11b9ca0) = 0
close(3)                                = 0
openat(AT_FDCWD, "/dev/snd/controlC0", O_RDWR|O_CLOEXEC) = 3
ioctl(3, SNDRV_CTL_IOCTL_PVERSION, 0x7ffeb11b9e44) = 0
ioctl(3, SNDRV_CTL_IOCTL_PCM_PREFER_SUBDEVICE, 0x7ffeb11b9eac) = 0
openat(AT_FDCWD, "/dev/snd/pcmC0D0p", O_RDWR|O_NONBLOCK|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)
close(3)                                = 0
write(2, "ALSA lib /var/tmp/portage/media-"..., 115ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.9/work/alsa-lib-1.2.9/src/pcm/pcm_dmix.c:999:(snd_pcm_dmix_open) ) = 115
write(2, "unable to open slave", 20unable to open slave)    = 20
write(2, "\n", 1
)                       = 1
shmdt(NULL)                             = -1 EINVAL (Argumento inválido)
shmdt(0x7fa6a4790000)                   = 0
shmctl(19, IPC_STAT, {shm_perm={uid=1000, gid=18, mode=0660, key=5678293, cuid=1000, cgid=1000}, shm_segsz=488, shm_cpid=5494, shm_lpid=5494, shm_nattch=0, shm_atime=1683657515, shm_dtime=1683657515, shm_ctime=1683657515}) = 0
shmctl(19, IPC_RMID, NULL)              = 0
semctl(4, 0, IPC_RMID, NULL)            = 0
openat(AT_FDCWD, "/usr/share/locale/pt_BR.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (Arquivo ou diretório inexistente)
openat(AT_FDCWD, "/usr/share/locale/pt_BR/LC_MESSAGES/libc.mo", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=145993, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 145993, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fa6a43a8000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=27012, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 27012, PROT_READ, MAP_SHARED, 3, 0) = 0x7fa6a478a000
close(3)                                = 0
futex(0x7fa6a459fa6c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
write(1, "Playback open error: -2,Arquivo "..., 58Playback open error: -2,Arquivo ou diretório inexistente
) = 58
exit_group(1)                           = ?
+++ exited with 1 +++

_________________
addict with a pen
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 922
Location: Romania

PostPosted: Tue May 09, 2023 6:45 pm    Post subject: Reply with quote

What is the output of ls -lah /dev/snd ?
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
enhaced
n00b
n00b


Joined: 10 Mar 2022
Posts: 26

PostPosted: Tue May 09, 2023 6:46 pm    Post subject: Reply with quote

stefan11111 wrote:
What is the output of ls -lah /dev/snd ?


Code:

total 0
drwxr-xr-x   4 root root      460 mai  9 15:15 .
drwxr-xr-x  18 root root     4,5K mai  9 15:15 ..
drwxr-xr-x   2 root root       80 mai  9 15:15 by-id
drwxr-xr-x   2 root root      120 mai  9 15:15 by-path
crw-rw----+  1 root audio 116,  7 mai  9 15:15 controlC0
crw-rw----+  1 root audio 116, 13 mai  9 15:15 controlC1
crw-rw----+  1 root audio 116, 15 mai  9 15:15 controlC2
crw-rw----+  1 root audio 116, 18 mai  9 15:15 controlC3
crw-rw----+  1 root audio 116,  6 mai  9 15:15 hwC0D0
crw-rw----+  1 root audio 116, 12 mai  9 15:15 hwC1D0
crw-rw----+  1 root audio 116, 14 mai  9 15:15 midiC2D0
crw-rw----+  1 root audio 116,  2 mai  9 15:15 pcmC0D3p
crw-rw----+  1 root audio 116,  3 mai  9 15:15 pcmC0D7p
crw-rw----+  1 root audio 116,  4 mai  9 15:15 pcmC0D8p
crw-rw----+  1 root audio 116,  5 mai  9 15:15 pcmC0D9p
crw-rw----+  1 root audio 116,  9 mai  9 15:15 pcmC1D0c
crw-rw----+  1 root audio 116,  8 mai  9 15:15 pcmC1D0p
crw-rw----+  1 root audio 116, 10 mai  9 15:15 pcmC1D1p
crw-rw----+  1 root audio 116, 11 mai  9 15:15 pcmC1D2c
crw-rw----+  1 root audio 116, 17 mai  9 15:15 pcmC3D0c
crw-rw----+  1 root audio 116, 16 mai  9 15:15 pcmC3D0p
crw-rw----+  1 root audio 116,  1 mai  9 15:16 seq
crw-rw----+  1 root audio 116, 33 mai  9 12:15 timer

_________________
addict with a pen
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 922
Location: Romania

PostPosted: Tue May 09, 2023 6:49 pm    Post subject: Reply with quote

Do you have an asound.conf or .asoundrc?
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
enhaced
n00b
n00b


Joined: 10 Mar 2022
Posts: 26

PostPosted: Tue May 09, 2023 6:50 pm    Post subject: Reply with quote

stefan11111 wrote:
Do you have an asound.conf or .asoundrc?

nop
_________________
addict with a pen
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 922
Location: Romania

PostPosted: Tue May 09, 2023 6:59 pm    Post subject: Reply with quote

The problem seems to be here:
Code:
openat(AT_FDCWD, "/dev/snd/pcmC0D0p", O_RDWR|O_NONBLOCK|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)

You seems to be missing /dev/snd/pcmC0D0p.
Judging from the output of ls -lah /dev/snd, you have SND_DYNAMIC_MINORS=Y, so I don't know what minor number /dev/snd/pcmC0D0p should have.
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
enhaced
n00b
n00b


Joined: 10 Mar 2022
Posts: 26

PostPosted: Tue May 09, 2023 7:22 pm    Post subject: Reply with quote

stefan11111 wrote:
The problem seems to be here:
Code:
openat(AT_FDCWD, "/dev/snd/pcmC0D0p", O_RDWR|O_NONBLOCK|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)

You seems to be missing /dev/snd/pcmC0D0p.
Judging from the output of ls -lah /dev/snd, you have SND_DYNAMIC_MINORS=Y, so I don't know what minor number /dev/snd/pcmC0D0p should have.


Any ideas on how I can solve this?
_________________
addict with a pen
Back to top
View user's profile Send private message
krumpf
Apprentice
Apprentice


Joined: 15 Jul 2018
Posts: 175

PostPosted: Tue May 09, 2023 7:24 pm    Post subject: Reply with quote

Your ls /dev/snd makes me believe alsa detects 4 soundcards (controlC0 to 3).
Would you mind doing cat /proc/asound/cards ?
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 922
Location: Romania

PostPosted: Tue May 09, 2023 7:35 pm    Post subject: Reply with quote

enhaced wrote:
stefan11111 wrote:
The problem seems to be here:
Code:
openat(AT_FDCWD, "/dev/snd/pcmC0D0p", O_RDWR|O_NONBLOCK|O_CLOEXEC) = -1 ENOENT (Arquivo ou diretório inexistente)

You seems to be missing /dev/snd/pcmC0D0p.
Judging from the output of ls -lah /dev/snd, you have SND_DYNAMIC_MINORS=Y, so I don't know what minor number /dev/snd/pcmC0D0p should have.


Any ideas on how I can solve this?

Assuming you use udev or something similar, a temporary fix would be to mknod the proper /dev/snd nodes.
You could try different minor number to see if anything works.
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
enhaced
n00b
n00b


Joined: 10 Mar 2022
Posts: 26

PostPosted: Tue May 09, 2023 7:47 pm    Post subject: Reply with quote

krumpf wrote:
Your ls /dev/snd makes me believe alsa detects 4 soundcards (controlC0 to 3).
Would you mind doing cat /proc/asound/cards ?

Here you go
Code:

 0 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xf6080000 irq 73 //My GPU's audio
 1 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xf6400000 irq 75 //No idea
 2 [MK3            ]: USB-Audio - Launchkey Mini MK3
                      Focusrite A.E Launchkey Mini MK3 at usb-0000:02:00.0-1, full speed //My midi keyboard
 3 [Device         ]: USB-Audio - USB Audio Device
                      C-Media Electronics Inc. USB Audio Device at usb-0000:02:00.0-2, full speed //My headphones

_________________
addict with a pen
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 922
Location: Romania

PostPosted: Tue May 09, 2023 7:58 pm    Post subject: Reply with quote

enhaced wrote:
krumpf wrote:
Your ls /dev/snd makes me believe alsa detects 4 soundcards (controlC0 to 3).
Would you mind doing cat /proc/asound/cards ?

Here you go
Code:

 0 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xf6080000 irq 73 //My GPU's audio
 1 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xf6400000 irq 75 //No idea
 2 [MK3            ]: USB-Audio - Launchkey Mini MK3
                      Focusrite A.E Launchkey Mini MK3 at usb-0000:02:00.0-1, full speed //My midi keyboard
 3 [Device         ]: USB-Audio - USB Audio Device
                      C-Media Electronics Inc. USB Audio Device at usb-0000:02:00.0-2, full speed //My headphones

Which one do you want to use?
If it's not the nvidia card, you will probably need an asound.conf
Here is mine:
Code:
ctl.!default {
type hw
card 2
}
pcm.!default{
type asym
playback.pcm {
type plug
slave.pcm "dmix:CARD=2,RATE=48000"
}
}

For you, something like this will probably do:
Code:
defaults.pcm.card x
defaults.ctl.card x

Replace x with the right number.
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
krumpf
Apprentice
Apprentice


Joined: 15 Jul 2018
Posts: 175

PostPosted: Tue May 09, 2023 8:01 pm    Post subject: Reply with quote

Try speaker-test -c2 -Dplughw:3
It if works, you should get sound from your headphones (careful about volume).

edit : kill your webbrowser (or any app that usually output sounds) before

PS : "Generic" might be your motherboard audio device.
Back to top
View user's profile Send private message
enhaced
n00b
n00b


Joined: 10 Mar 2022
Posts: 26

PostPosted: Tue May 09, 2023 10:55 pm    Post subject: Reply with quote

krumpf wrote:
Try speaker-test -c2 -Dplughw:3
It if works, you should get sound from your headphones (careful about volume).

edit : kill your webbrowser (or any app that usually output sounds) before

PS : "Generic" might be your motherboard audio device.


yep, that works!
_________________
addict with a pen
Back to top
View user's profile Send private message
enhaced
n00b
n00b


Joined: 10 Mar 2022
Posts: 26

PostPosted: Tue May 09, 2023 11:11 pm    Post subject: Reply with quote

stefan11111 wrote:
enhaced wrote:
krumpf wrote:
Your ls /dev/snd makes me believe alsa detects 4 soundcards (controlC0 to 3).
Would you mind doing cat /proc/asound/cards ?

Here you go
Code:

 0 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xf6080000 irq 73 //My GPU's audio
 1 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xf6400000 irq 75 //No idea
 2 [MK3            ]: USB-Audio - Launchkey Mini MK3
                      Focusrite A.E Launchkey Mini MK3 at usb-0000:02:00.0-1, full speed //My midi keyboard
 3 [Device         ]: USB-Audio - USB Audio Device
                      C-Media Electronics Inc. USB Audio Device at usb-0000:02:00.0-2, full speed //My headphones

Which one do you want to use?
If it's not the nvidia card, you will probably need an asound.conf
Here is mine:
Code:
ctl.!default {
type hw
card 2
}
pcm.!default{
type asym
playback.pcm {
type plug
slave.pcm "dmix:CARD=2,RATE=48000"
}
}

For you, something like this will probably do:
Code:
defaults.pcm.card x
defaults.ctl.card x

Replace x with the right number.


that did the trick (kind of)
while i can hear rhythmbox and vlc, i cant hear firefox (even after a restart and a re-emerge)
also if possible, i'd like to know how to change to pipewire...? (my system used pipewire before the --depclean broke everything)
_________________
addict with a pen
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 922
Location: Romania

PostPosted: Tue May 09, 2023 11:14 pm    Post subject: Reply with quote

enhaced wrote:

that did the trick (kind of)
while i can hear rhythmbox and vlc, i cant hear firefox (even after a restart and a re-emerge)
also if possible, i'd like to know how to change to pipewire...? (my system used pipewire before the --depclean broke everything)

I can't help you with pipewire as I don't use it.
I use alsa only and apulse for mic support in librewolf.
You may have dmix disabled. Does firefox not work even if it's the only app launched?
Why do you need pipewire?
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
enhaced
n00b
n00b


Joined: 10 Mar 2022
Posts: 26

PostPosted: Tue May 09, 2023 11:18 pm    Post subject: Reply with quote

[quote="stefan11111"]
enhaced wrote:

Does firefox not work even if it's the only app launched?


nope

Quote:
Why do you need pipewire?

The audio quality is better imo (At least it sounds better and has less delay in my DAW)
_________________
addict with a pen
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 922
Location: Romania

PostPosted: Tue May 09, 2023 11:20 pm    Post subject: Reply with quote

post the output of emerge -pqv firefox
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
enhaced
n00b
n00b


Joined: 10 Mar 2022
Posts: 26

PostPosted: Tue May 09, 2023 11:28 pm    Post subject: Reply with quote

stefan11111 wrote:
post the output of emerge -pqv firefox


Code:

[ebuild   R   ] www-client/firefox-113.0  USE="X clang dbus gmp-autoupdate jumbo-build openh264 pulseaudio system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp telemetry -debug -eme-free -geckodriver -hardened -hwaccel -jack -libproxy -lto -pgo -screencast (-selinux) -sndio -system-png (-system-python-libs) -wayland -wifi" L10N="-ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fur -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -ne -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -sc -sco -si -sk -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW"

_________________
addict with a pen
Back to top
View user's profile Send private message
krumpf
Apprentice
Apprentice


Joined: 15 Jul 2018
Posts: 175

PostPosted: Wed May 10, 2023 6:01 am    Post subject: Reply with quote

As stefan1111 suggested, putting those 2 lines
Code:
defaults.pcm.card x
defaults.ctl.card x
in a ~/.asoundrc or /etc/asound.conf (in your case with x=3) should be enough for you to get sound playback, firefox included.

Firefox devs dropped alsa support a few years ago. It can still work on a pure alsa system, but it's a bit touchy (I think it doesn't work with anything else than 16bit 48Khz stereo output).
One solution can be to install apulse and then change your firefox shortcut to apulse firefox.

I don't agree with better audio quality through pipewire, quality should be unchanged, or worse if e.g. pipewire does a resampling, and then pass the signal to alsa which does another resampling.
Afaik, many people using their computer to record music use JACK, maybe you should read about it (but then you will need more qualified people for proper help :D ).
Back to top
View user's profile Send private message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1878
Location: Switzerland (Romandie)

PostPosted: Thu Jun 08, 2023 10:44 pm    Post subject: Reply with quote

krumpf wrote:
Firefox devs dropped alsa support a few years ago. It can still work on a pure alsa system, but it's a bit touchy (I think it doesn't work with anything else than 16bit 48Khz stereo output).
One solution can be to install apulse and then change your firefox shortcut to apulse firefox.

I don't agree with better audio quality through pipewire, quality should be unchanged, or worse if e.g. pipewire does a resampling, and then pass the signal to alsa which does another resampling.
Afaik, many people using their computer to record music use JACK, maybe you should read about it (but then you will need more qualified people for proper help :D ).


firefox have jack support, and it is very easy to get all the ALSA applications into the JACK graph, that with the jack alsa plugin (media-plugins/alsa-plugins).

In my system, I have an old style /etc/modprobe.d/alsa.conf file. It have worked from years on several computers with very minor changes:
Code:
# Alsa kernel modules' configuration file.

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
alias snd-card-0 snd-aloop
alias snd-card-1 snd-intel
alias snd-card-2 snd-intel
alias snd-card-4 snd-usb-audio
##  OSS/Free portion
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
alias sound-slot-2 snd-card-2
alias sound-slot-3 snd-card-3
##

# The alsa applications will use it:
options snd-aloop index=0
# for the model option, see the output of 'lspci -s ... -n'
options snd-hda-intel index=1 model=1002:1637
options snd-hda-intel index=2 model=1022:15e3
options snd-usb-audio index=3

# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
##  OSS/Free portion - card #2
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-12 snd-pcm-oss
##  OSS/Free portion - card #3
alias sound-service-2-0 snd-mixer-oss
alias sound-service-2-3 snd-pcm-oss
alias sound-service-2-12 snd-pcm-oss
##  OSS/Free portion - card #4
alias sound-service-3-0 snd-mixer-oss
alias sound-service-3-3 snd-pcm-oss
alias sound-service-3-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=3


The ~/.asoundrc file look like that:
Code:
pcm.!default {
    type plug
    slave { pcm "jack" }
}

pcm.jack {
    type jack
    playback_ports {
        0 system:playback_1
        1 system:playback_2
    }
    capture_ports {
        0 system:capture_1
        1 system:capture_2
    }
}

ctl.mixer0 {
    type hw
    card 0
}


In cadence, it is just to select the ALSA -> JACK plugin, and the real sound hardware card for the alsa input and output devices. And for native jack support with firefox and other supported software, I put the "jack" USE flag directly into /etc/portage/make.conf.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum