Just to save you guys wasting any more time... I *think* I have worked
out what's happening.
The initial root of the problem is in configuration file
/usr/local/share/pcp/cards/USB.conf. It sets CARD="USB DAC".
In $WWWROOT\cgi-bin\pcp-soundcard-functions, the function
"pcp_load_card_conf" sets variable CARDNAME to "USB", which in not
correct and generates the error messages at boot time and prevents the
restoration of ALSA settings.
Code:
--------------------
pcp_load_card_conf() {
#OUTPUT is declared in card conf file. Delcare local context, so
OUTPUT=equal is not changed.
local OUTPUT
pcp_blank_audio_conf
shini_parse ${DACLOCATION}/${AUDIO}.conf
case $CARD in
USB*) CARDNAME="USB";;
*) CARDNAME=$CARD;;
esac
CARDNO=$(cat /proc/asound/cards | grep '\[' | grep $CARDNAME | cut -d '
' -f2)
}
--------------------
If the CARDNAME got set properly, no problem.
We have a few options to fix the issue:
1. Add a CARDNAME field on the [Squeezelite Settings] page.
2. Generate CARDNAME from $OUTPUT
3. Have separate config files for USB DACs just like i2s DACs
regards
Greg
------------------------------------------------------------------------
Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403
View this thread: http://forums.slimdevices.com/showthread.php?t=111540
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix