Git Product home page Git Product logo

Comments (6)

pms967 avatar pms967 commented on July 17, 2024

Had the same problem... it turned out that there is a space embedded at the end of the device name. Check it out, you may have to use something like this:

-V "DIYINHK USB Audio 2.0 Output Playback Volume "

(notice the space at the end)

from squeezelite.

sonnius avatar sonnius commented on July 17, 2024

Thanks for the tip, but unfortunately that didn't work either..

root@living:/home/tc# /usr/local/bin/squeezelite -n "living" -o front:CARD=D20,DEV=0 -a 80:4:32:1: -C 15 -V "DIYINHK USB Audio 2.0 Output Playback Volum "
[09:07:41.780943] mixer_init_alsa:869 attach error: No such file or directory
[09:07:41.781215] output_init_alsa:989 Initialization of mixer failed, reverting to software volume

root@living:/home/tc# /usr/local/bin/squeezelite -n "living" -o front:CARD=D20,DEV=0 -a 80:4:32:1: -C 15 -V "DIYINHK USB Audio 2.0 Output Playback Volume "
[09:07:45.950241] mixer_init_alsa:869 attach error: No such file or directory
[09:07:45.950489] output_init_alsa:989 Initialization of mixer failed, reverting to software volume

from squeezelite.

sonnius avatar sonnius commented on July 17, 2024

strace output of the squeezeplayer process:

root@living:/home/tc# strace -f /usr/local/bin/squeezelite -n "living" -o front:CARD=D20,DEV=0 -a 80:4:32:1: -C 15 -V 'DIYINHK USB Audio 2.0 Output Playback Volum'
execve("/usr/local/bin/squeezelite", ["/usr/local/bin/squeezelite", "-n", "living", "-o", "front:CARD=D20,DEV=0", "-a", "80:4:32:1:", "-C", "15", "-V", "DIYINHK USB Audio 2.0 Output Pla"...], [/* 17 vars /]) = 0
brk(NULL) = 0xe7d000
uname({sysname="Linux", nodename="living", ...}) = 0
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x76fec000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=10879, ...}) = 0
mmap2(NULL, 10879, PROT_READ, MAP_PRIVATE, 3, 0) = 0x76fe9000
close(3) = 0
open("/usr/local/lib/libasound.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\20\345\1\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=857404, ...}) = 0
mmap2(NULL, 921880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76edd000
mprotect(0x76fab000, 61440, PROT_NONE) = 0
mmap2(0x76fba000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xcd000) = 0x76fba000
mmap2(0x76fbe000, 280, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x76fbe000
close(3) = 0
open("/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\34I\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=96776, ...}) = 0
mmap2(NULL, 168528, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76eb3000
mprotect(0x76eca000, 61440, PROT_NONE) = 0
mmap2(0x76ed9000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x76ed9000
mmap2(0x76edb000, 4688, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x76edb000
close(3) = 0
open("/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\300E\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=472536, ...}) = 0
mmap2(NULL, 536700, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76e2f000
mprotect(0x76ea2000, 61440, PROT_NONE) = 0
mmap2(0x76eb1000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x72000) = 0x76eb1000
close(3) = 0
open("/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0000\27\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=26540, ...}) = 0
mmap2(NULL, 90640, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76e18000
mprotect(0x76e1e000, 61440, PROT_NONE) = 0
mmap2(0x76e2d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x76e2d000
close(3) = 0
open("/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\230\t\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=9716, ...}) = 0
mmap2(NULL, 73920, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76e05000
mprotect(0x76e07000, 61440, PROT_NONE) = 0
mmap2(0x76e16000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x76e16000
close(3) = 0
open("/usr/local/lib/libwiringPi.so", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0 .\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=52652, ...}) = 0
mmap2(NULL, 121004, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76de7000
mprotect(0x76df3000, 61440, PROT_NONE) = 0
mmap2(0x76e02000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb000) = 0x76e02000
mmap2(0x76e04000, 2220, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x76e04000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\320i\1\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1230512, ...}) = 0
mmap2(NULL, 1299776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76ca9000
mprotect(0x76dd1000, 65536, PROT_NONE) = 0
mmap2(0x76de1000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x128000) = 0x76de1000
mmap2(0x76de4000, 9536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x76de4000
close(3) = 0
open("/lib/libcrypt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0008\10\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=30188, ...}) = 0
mmap2(NULL, 254304, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x76c6a000
mprotect(0x76c71000, 61440, PROT_NONE) = 0
mmap2(0x76c80000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x76c80000
mmap2(0x76c82000, 156000, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x76c82000
close(3) = 0
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x76fe7000
set_tls(0x76fe7b10, 0x76fe8200, 0x76fef050, 0x76fe7b10, 0x76fef050) = 0
mprotect(0x76de1000, 8192, PROT_READ) = 0
mprotect(0x76c80000, 4096, PROT_READ) = 0
mprotect(0x76ed9000, 4096, PROT_READ) = 0
mprotect(0x76eb1000, 4096, PROT_READ) = 0
mprotect(0x76e2d000, 4096, PROT_READ) = 0
mprotect(0x76e02000, 4096, PROT_READ) = 0
mprotect(0x76e16000, 4096, PROT_READ) = 0
mprotect(0x44000, 4096, PROT_READ) = 0
mprotect(0x76fee000, 4096, PROT_READ) = 0
munmap(0x76fe9000, 10879) = 0
set_tid_address(0x76fe76b8) = 12442
set_robust_list(0x76fe76c0, 12) = 0
rt_sigaction(SIGRTMIN, {0x76eb7280, [], SA_RESTORER|SA_SIGINFO, 0x76cd55e0}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x76eb7360, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x76cd55e0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
ugetrlimit(RLIMIT_STACK, {rlim_cur=8192
1024, rlim_max=RLIM_INFINITY}) = 0
socket(AF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
ioctl(3, SIOCGIFCONF, {4 * sizeof(struct ifreq) => 2 * sizeof(struct ifreq), [{ifr_name="lo", ifr_addr={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("127.0.0.1")}}, {ifr_name="wlan0", ifr_addr={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("192.168.20.105")}}]}) = 0
ioctl(3, SIOCGIFHWADDR, {ifr_name="lo", ifr_hwaddr=00:00:00:00:00:00}) = 0
ioctl(3, SIOCGIFHWADDR, {ifr_name="wlan0", ifr_hwaddr=7c:dd:90:99:d1:fa}) = 0
close(3) = 0
rt_sigaction(SIGINT, {0x130b0, [INT], SA_RESTORER|SA_RESTART, 0x76cd55d0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x130b0, [TERM], SA_RESTORER|SA_RESTART, 0x76cd55d0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {0x130b0, [QUIT], SA_RESTORER|SA_RESTART, 0x76cd55d0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGHUP, {0x130b0, [HUP], SA_RESTORER|SA_RESTART, 0x76cd55d0}, {SIG_DFL, [], 0}, 8) = 0
mmap2(NULL, 2101248, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x76a69000
futex(0x7ea85714, FUTEX_UNLOCK_PI, 0) = -1 EPERM (Operation not permitted)
brk(NULL) = 0xe7d000
brk(0xe9f000) = 0xe9f000
mmap2(NULL, 81920, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x76a55000
mprotect(0x76a55000, 4096, PROT_NONE) = 0
clone(strace: Process 12443 attached
child_stack=0x76a67f98, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x76a684c8, tls=0x76a68920, child_tidptr=0x76a684c8) = 12443
[pid 12443] set_robust_list(0x76a684d0, 12 <unfinished ...>
[pid 12442] mmap2(NULL, 3530752, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 <unfinished ...>
[pid 12443] <... set_robust_list resumed> ) = 0
[pid 12442] <... mmap2 resumed> ) = 0x766f7000
[pid 12442] futex(0x76fbdfc4, FUTEX_WAKE_PRIVATE, 2147483647 <unfinished ...>
[pid 12443] nanosleep({0, 100000000}, <unfinished ...>
[pid 12442] <... futex resumed> ) = 0
[pid 12442] stat64("/usr/local/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=9665, ...}) = 0
[pid 12442] open("/usr/local/share/alsa/alsa.conf", O_RDONLY) = 3
[pid 12442] fstat64(3, {st_mode=S_IFREG|0644, st_size=9665, ...}) = 0
[pid 12442] read(3, "#\n# ALSA library configuration "..., 1024) = 1024
[pid 12442] read(3, "lts.pcm.minperiodtime 5000\t\t# in"..., 1024) = 1024
[pid 12442] read(3, " defaults.pcm.device\ndefaults.pc"..., 1024) = 1024
[pid 12442] read(3, "t\npcm.rear cards.pcm.rear\npcm.ce"..., 1024) = 1024
[pid 12442] read(3, "@func refer\n\t\t\tname defaults.nam"..., 1024) = 1024
[pid 12442] read(3, "ET\n\tpcm $PCM\n}\n\npcm.tee {\n\t@args"..., 1024) = 1024
[pid 12442] read(3, "tl.default ctl.sysdefault\n\nctl.h"..., 1024) = 1024
[pid 12442] read(3, "integer\n\t\tdefault {\n\t\t\t@func ige"..., 1024) = 1024
[pid 12442] read(3, "CARD\n\t\t\t\tALSA_CARD\n\t\t\t]\n\t\t\tdefa"..., 1024) = 1024
[pid 12442] read(3, "ts.timer.sclass\n\t\t}\n\t}\n\[email protected]"..., 1024) = 449
[pid 12442] read(3, "", 1024) = 0
[pid 12442] read(3, "", 1024) = 0
[pid 12442] close(3) = 0
[pid 12442] futex(0x76e170b4, FUTEX_WAKE_PRIVATE, 2147483647) = 0
[pid 12442] access("/usr/local/share/alsa/alsa.conf.d/", R_OK) = 0
[pid 12442] stat64("/usr/local/share/alsa/alsa.conf.d/", {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
[pid 12442] open("/usr/local/share/alsa/alsa.conf.d/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3
[pid 12442] fstat64(3, {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
[pid 12442] getdents(3, /* 3 entries /, 32768) = 52
[pid 12442] getdents(3, /
0 entries */, 32768) = 0
[pid 12442] close(3) = 0
[pid 12442] access("/etc/asound.conf", R_OK) = 0
[pid 12442] stat64("/etc/asound.conf", {st_mode=S_IFREG|0664, st_size=477, ...}) = 0
[pid 12442] open("/etc/asound.conf", O_RDONLY) = 3
[pid 12442] fstat64(3, {st_mode=S_IFREG|0664, st_size=477, ...}) = 0
[pid 12442] read(3, "# default - Generated by piCoreP"..., 4096) = 477
[pid 12442] read(3, "", 4096) = 0
[pid 12442] read(3, "", 4096) = 0
[pid 12442] close(3) = 0
[pid 12442] access("/root/.asoundrc", R_OK) = -1 ENOENT (No such file or directory)
[pid 12442] stat64("/usr/local/share/alsa/cards/aliases.conf", {st_mode=S_IFREG|0644, st_size=1405, ...}) = 0
[pid 12442] open("/usr/local/share/alsa/cards/aliases.conf", O_RDONLY) = 3
[pid 12442] fstat64(3, {st_mode=S_IFREG|0644, st_size=1405, ...}) = 0
[pid 12442] read(3, "#\n# Define aliases for various "..., 1024) = 1024
[pid 12442] read(3, "S-X2Y\n'Serial MIDI' cards.Serial"..., 1024) = 381
[pid 12442] open("/usr/local/share/alsa/pcm/default.conf", O_RDONLY) = 4
[pid 12442] fstat64(4, {st_mode=S_IFREG|0644, st_size=762, ...}) = 0
[pid 12442] read(4, "#\n# Default output\n#\n\npcm.!defau"..., 1024) = 762
[pid 12442] read(4, "", 1024) = 0
[pid 12442] close(4) = 0
[pid 12442] open("/usr/local/share/alsa/pcm/dmix.conf", O_RDONLY) = 4
[pid 12442] fstat64(4, {st_mode=S_IFREG|0644, st_size=1517, ...}) = 0
[pid 12442] read(4, "#\n# dmix output\n#\n\npcm.!dmix {\n\t"..., 1024) = 1024
[pid 12442] read(4, "name {\n\t\t\t\t@func concat\n\t\t\t\tstri"..., 1024) = 493
[pid 12442] read(4, "", 1024) = 0
[pid 12442] close(4) = 0
[pid 12442] open("/usr/local/share/alsa/pcm/dsnoop.conf", O_RDONLY) = 4
[pid 12442] fstat64(4, {st_mode=S_IFREG|0644, st_size=1532, ...}) = 0
[pid 12442] read(4, "#\n# dsnoop\n#\n\npcm.!dsnoop {\n\t@ar"..., 1024) = 1024
[pid 12442] read(4, "fer\n\t\t\tname {\n\t\t\t\t@func concat\n\t"..., 1024) = 508
[pid 12442] read(4, "", 1024) = 0
[pid 12442] close(4) = 0
[pid 12442] read(3, "", 1024) = 0
[pid 12442] read(3, "", 1024) = 0
[pid 12442] close(3) = 0
[pid 12442] open("/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 3
[pid 12442] fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
[pid 12442] ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ea84f58) = 0
[pid 12442] close(3) = 0
[pid 12442] stat64("/usr/local/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=9665, ...}) = 0
[pid 12442] open("/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 3
[pid 12442] fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
[pid 12442] ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ea84b40) = 0
[pid 12442] close(3) = 0
[pid 12442] open("/dev/snd/controlC0", O_RDWR|O_CLOEXEC) = 3
[pid 12442] fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
[pid 12442] ioctl(3, SNDRV_CTL_IOCTL_PVERSION, 0x7ea84e60) = 0
[pid 12442] ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ea84fa8) = 0
[pid 12442] close(3) = 0
[pid 12442] access("/usr/local/share/alsa/cards/USB-Audio.conf", R_OK) = 0
[pid 12442] stat64("/usr/local/share/alsa/cards/USB-Audio.conf", {st_mode=S_IFREG|0644, st_size=9031, ...}) = 0
[pid 12442] open("/usr/local/share/alsa/cards/USB-Audio.conf", O_RDONLY) = 3
[pid 12442] fstat64(3, {st_mode=S_IFREG|0644, st_size=9031, ...}) = 0
[pid 12442] read(3, "#\n# USB-Audio.conf - configurat"..., 1024) = 1024
[pid 12442] read(3, "tereo_devices\n\t"OmniStudio" two
"..., 1024) = 1024
[pid 12442] read(3, "58 device number, if any.\nUSB-Au"..., 1024) = 1024
[pid 12442] read(3, "s.AES3 { type integer }\n\ttype as"..., 1024) = 1024
[pid 12442] open("/usr/local/share/alsa/pcm/front.conf", O_RDONLY) = 4
[pid 12442] fstat64(4, {st_mode=S_IFREG|0644, st_size=752, ...}) = 0
[pid 12442] read(4, "#\n# Hardware output from front s"..., 1024) = 752
[pid 12442] read(4, "", 1024) = 0
[pid 12442] close(4) = 0
[pid 12442] read(3, "ype string }\n\t@func refer\n\tname "..., 1024) = 1024
[pid 12442] read(3, "yback_dmix_no {\n\t@args [ CARD ]\n"..., 1024) = 1024
[pid 12442] open("/usr/local/share/alsa/pcm/surround40.conf", O_RDONLY) = 4
[pid 12442] fstat64(4, {st_mode=S_IFREG|0644, st_size=877, ...}) = 0
[pid 12442] read(4, "#\n# Hardware output from 4.0 sp"..., 1024) = 877
[pid 12442] read(4, "", 1024) = 0
[pid 12442] close(4) = 0
[pid 12442] read(3, ".pcm.surround40_two_stereo_devic"..., 1024) = 1024
[pid 12442] open("/usr/local/share/alsa/pcm/surround21.conf", O_RDONLY) = 4
[pid 12442] fstat64(4, {st_mode=S_IFREG|0644, st_size=899, ...}) = 0
[pid 12442] read(4, "#\n# Hardware output from 2.1 sp"..., 1024) = 899
[pid 12442] read(4, "", 1024) = 0
[pid 12442] close(4) = 0
[pid 12442] open("/usr/local/share/alsa/pcm/surround41.conf", O_RDONLY) = 4
[pid 12442] fstat64(4, {st_mode=S_IFREG|0644, st_size=980, ...}) = 0
[pid 12442] read(4, "#\n# Hardware output from 4.1 sp"..., 1024) = 980
[pid 12442] read(4, "", 1024) = 0
[pid 12442] close(4) = 0
[pid 12442] open("/usr/local/share/alsa/pcm/surround50.conf", O_RDONLY) = 4
[pid 12442] fstat64(4, {st_mode=S_IFREG|0644, st_size=979, ...}) = 0
[pid 12442] read(4, "#\n# Hardware output from 5.0 sp"..., 1024) = 979
[pid 12442] read(4, "", 1024) = 0
[pid 12442] close(4) = 0
[pid 12442] open("/usr/local/share/alsa/pcm/surround51.conf", O_RDONLY) = 4
[pid 12442] fstat64(4, {st_mode=S_IFREG|0644, st_size=930, ...}) = 0
[pid 12442] read(4, "#\n# Hardware output from 5.1 sp"..., 1024) = 930
[pid 12442] brk(0xec0000) = 0xec0000
[pid 12442] read(4, "", 1024) = 0
[pid 12442] close(4) = 0
[pid 12442] read(3, "\nconfdir:pcm/surround71.conf\n\n"..., 1024) = 1024
[pid 12442] open("/usr/local/share/alsa/pcm/surround71.conf", O_RDONLY) = 4
[pid 12442] fstat64(4, {st_mode=S_IFREG|0644, st_size=978, ...}) = 0
[pid 12442] read(4, "#\n# Hardware output from 7.1 sp"..., 1024) = 978
[pid 12442] read(4, "", 1024) = 0
[pid 12442] close(4) = 0
[pid 12442] open("/usr/local/share/alsa/pcm/iec958.conf", O_RDONLY) = 4
[pid 12442] fstat64(4, {st_mode=S_IFREG|0644, st_size=1213, ...}) = 0
[pid 12442] read(4, "#\n# Hardware output from iec958"..., 1024) = 1024
[pid 12442] read(4, "\t"AES2=" $AES2 ","\n\t\t\t\t"AES3=" $"..., 1024) = 189
[pid 12442] read(4, "", 1024) = 0
[pid 12442] close(4) = 0
[pid 12442] read(3, "ame {\n\t\t\t\t@func concat\n\t\t\t\tstrin"..., 1024) = 839
[pid 12442] read(3, "", 1024) = 0
[pid 12442] read(3, "", 1024) = 0
[pid 12442] close(3) = 0
[pid 12442] open("/dev/snd/controlC1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC3", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC3", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC7", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC7", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC8", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC8", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC9", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC9", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC10", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC10", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC11", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC11", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC12", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC12", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC13", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC13", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC14", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC14", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC15", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC15", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC16", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC16", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC17", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC17", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC18", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC18", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC19", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC19", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC20", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC20", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC21", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC21", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC22", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC22", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC23", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC23", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC24", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC24", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC25", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC25", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC26", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC26", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC27", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC27", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC28", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC28", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC29", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC29", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC30", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC30", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC31", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/aloadC31", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] open("/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 3
[pid 12442] fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
[pid 12442] ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ea84af8) = 0
[pid 12442] close(3) = 0
[pid 12442] open("/dev/snd/controlC0", O_RDWR|O_CLOEXEC) = 3
[pid 12442] fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
[pid 12442] ioctl(3, SNDRV_CTL_IOCTL_PVERSION, 0x7ea84c88) = 0
[pid 12442] ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ea84cd8) = 0
[pid 12442] close(3) = 0
[pid 12442] stat64("/usr/local/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=9665, ...}) = 0
[pid 12442] open("/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 3
[pid 12442] fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
[pid 12442] ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ea84860) = 0
[pid 12442] close(3) = 0
[pid 12442] open("/dev/snd/controlC0", O_RDWR|O_CLOEXEC) = 3
[pid 12442] fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
[pid 12442] ioctl(3, SNDRV_CTL_IOCTL_PVERSION, 0x7ea84b80) = 0
[pid 12442] ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ea84cc8) = 0
[pid 12442] close(3) = 0
[pid 12442] open("/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 3
[pid 12442] fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
[pid 12442] ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ea847b0) = 0
[pid 12442] close(3) = 0
[pid 12442] open("/dev/snd/controlC0", O_RDWR|O_CLOEXEC) = 3
[pid 12442] fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
[pid 12442] ioctl(3, SNDRV_CTL_IOCTL_PVERSION, 0x7ea84940) = 0
[pid 12442] ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ea84990) = 0
[pid 12442] close(3) = 0
[pid 12442] stat64("/usr/local/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=9665, ...}) = 0
[pid 12442] open("/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 3
[pid 12442] fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
[pid 12442] ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ea846f0) = 0
[pid 12442] close(3) = 0
[pid 12442] open("/dev/snd/controlC0", O_RDWR|O_CLOEXEC) = 3
[pid 12442] fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
[pid 12442] ioctl(3, SNDRV_CTL_IOCTL_PVERSION, 0x7ea84a10) = 0
[pid 12442] ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ea84b58) = 0
[pid 12442] close(3) = 0
[pid 12442] open("/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 3
[pid 12442] fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
[pid 12442] ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ea84d68) = 0
[pid 12442] close(3) = 0
[pid 12442] open("/dev/snd/controlC0", O_RDWR|O_CLOEXEC) = 3
[pid 12442] fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
[pid 12442] ioctl(3, SNDRV_CTL_IOCTL_PVERSION, 0x7ea84ef8) = 0
[pid 12442] ioctl(3, SNDRV_CTL_IOCTL_CARD_INFO, 0x7ea84f48) = 0
[pid 12442] close(3) = 0
[pid 12442] open("/dev/snd/controlC0", O_RDWR|O_CLOEXEC) = 3
[pid 12442] fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
[pid 12442] ioctl(3, SNDRV_CTL_IOCTL_PVERSION, 0x7ea84f00) = 0
[pid 12442] ioctl(3, SNDRV_CTL_IOCTL_PCM_PREFER_SUBDEVICE, 0x7ea84f3c) = 0
[pid 12442] open("/dev/snd/pcmC0D0p", O_RDWR|O_NONBLOCK|O_CLOEXEC) = 4
[pid 12442] fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
[pid 12442] close(3) = 0
[pid 12442] ioctl(4, SNDRV_PCM_IOCTL_INFO, 0x7ea84e00) = 0
[pid 12442] fcntl64(4, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK)
[pid 12442] ioctl(4, AGPIOC_INFO or SNDRV_PCM_IOCTL_PVERSION, 0x7ea84d70) = 0
[pid 12442] ioctl(4, AGPIOC_SETUP or SNDRV_PCM_IOCTL_TTSTAMP, 0x7ea84d78) = 0
[pid 12442] mmap2(NULL, 4096, PROT_READ, MAP_SHARED, 4, 0x80000000) = -1 ENXIO (No such device or address)
[pid 12442] ioctl(4, SNDRV_PCM_IOCTL_SYNC_PTR, 0x7ea84d7c) = 0
[pid 12442] fcntl64(4, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK)
[pid 12442] fcntl64(4, F_SETFL, O_RDWR) = 0
[pid 12442] ioctl(4, SNDRV_PCM_IOCTL_HW_REFINE, 0x7ea85330) = 0
[pid 12442] ioctl(4, SNDRV_PCM_IOCTL_HW_REFINE, 0x7ea8509c) = 0
[pid 12442] ioctl(4, SNDRV_PCM_IOCTL_HW_REFINE, 0x7ea8509c) = 0
[pid 12442] ioctl(4, SNDRV_PCM_IOCTL_HW_REFINE, 0x7ea8509c) = 0
[pid 12442] ioctl(4, SNDRV_PCM_IOCTL_HW_REFINE, 0x7ea8509c) = 0
[pid 12442] ioctl(4, SNDRV_PCM_IOCTL_HW_REFINE, 0x7ea8509c) = 0
[pid 12442] ioctl(4, SNDRV_PCM_IOCTL_HW_REFINE, 0x7ea8509c) = 0
[pid 12442] close(4) = 0
[pid 12442] stat64("/usr/local/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=9665, ...}) = 0
[pid 12442] open("/usr/share/zoneinfo/EST-10EST,M10.1.0,M4.1.0/3", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 12442] write(2, "[08:33:35.043210] mixer_init_als"..., 78[08:33:35.043210] mixer_init_alsa:869 attach error: No such file or directory
) = 78
[pid 12442] write(2, "[08:33:35.043878] output_init_al"..., 100[08:33:35.043878] output_init_alsa:989 Initialization of mixer failed, reverting to software volume
) = 100
[pid 12442] mlockall(MCL_CURRENT|MCL_FUTURE) = 0
[pid 12442] mmap2(NULL, 81920, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x766e3000
[pid 12442] mprotect(0x766e3000, 4096, PROT_NONE) = 0

from squeezelite.

pms967 avatar pms967 commented on July 17, 2024

Thanks for the tip, but unfortunately that didn't work either..

root@living:/home/tc# /usr/local/bin/squeezelite -n "living" -o front:CARD=D20,DEV=0 -a 80:4:32:1: -C 15 -V "DIYINHK USB Audio 2.0 Output Playback Volum "
[09:07:41.780943] mixer_init_alsa:869 attach error: No such file or directory
[09:07:41.781215] output_init_alsa:989 Initialization of mixer failed, reverting to software volume

It was just an hint, I was not suggesting to use that exact string. You must find out which one it is for your own device and it's installed firmware.

(e.g., IIRC in my case I had to use -V 'DIYINHK USB Audio 2.0 ').

Try to check:

amixer contents
aplay -l
squeezelite -L
squeezelite -o hw:CARD=D20 -L # (replace "D20" with the name of your device)

etc.

from squeezelite.

ralph-irving avatar ralph-irving commented on July 17, 2024

You need to add the output device before -L otherwise the default output device is used.
squeezelite -o hw:CARD=Intel,DEV=0 -L
Volume controls for hw:CARD=Intel,DEV=0
Master
PCM
Front
Front Mic
Front Mic Boost
Surround
Center
LFE
Side
Line
CD
Mic
Mic Boost
Beep

from squeezelite.

sonnius avatar sonnius commented on July 17, 2024

I figured it out.

The mixer definition was correct but I needed to set the output device as:
hw:CARD=D20,DEV=0
and not:
front:CARD=D20,DEV=0

It's now working with:
/usr/local/bin/squeezelite -n living -o hw:CARD=D20,DEV=0 -a 80:4:32:1 -C 15 -V "DIYINHK USB Audio 2.0 Output Playback Volum"

Many thanks for the help and the great software!

from squeezelite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.