Greg Erskine wrote:
> 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
Thank you.
Its not urgent in any way, I dont know much about this, so could I
just wait for an update of pcp?
Or is there anything I should do by myself?
The Earth Has Music For Those Who Listen
------------------------------------------------------------------------
Pommes's Profile: http://forums.slimdevices.com/member.php?userid=67682
View this thread: http://forums.slimdevices.com/showthread.php?t=111540
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix