(07-15-2021, 12:33 PM)Tim Curtis Wrote: It's prolly the use of parenthesis by the vendor in the mixer name thats causing an issue in the code that parses the mixer name "iFi (by AMR) HD USB Audio"
What is output from command below?
Code:sudo /var/www/command/util.sh get-mixername
pi@moode:~ $ sudo /var/www/command/util.sh get-mixername
(iFi (by AMR) HD USB Audio )
(iFi (by AMR) HD USB Audio )
pi@moode:~ $
Don't know if it is significant that this is different to both the MPD name and the Alsamixer name;
20210715 130827 worker: MPD audio output (iFi (by AMR) HD USB Audio) - No space before final bracket ?
20210715 130828 worker: ALSA mixer name (iFi by AMR HD USB Audio ) - Space before final bracket but no brackets around "by AMR"
The error "Unable to find simple control 'iFi by AMR HD USB Audio ',0" does look to be because the brackets are missing around "by AMR";
pi@moode:~ $ amixer -c 2 scontrols
Simple mixer control 'iFi (by AMR) HD USB Audio ',0
Simple mixer control 'iFi (by AMR) HD USB Audio ',1