- Populate select:
/srv/http/settings/system-i2smodules.php- set
selectedand showname=/srv/http/data/system/audio-outputsysname=/srv/http/data/system/audio-aplayname
- set
- Selected:
/srv/http/assets/js/system.js/boot/config.txt- disable on-board audio
- append
dtoverlay=<sysname>
sysname>/srv/http/data/system/audio-aplaynamename>/srv/http/data/system/audio-output- set reboot flag
- Populate select:
/srv/http/settings/mpd.php- get
aplaynamelist withaplay -l - each card:
aplayname- if subdevices, append index
- get from
/srv/http/settings/i2s/<aplayname>mixer_controlfor each card- if
routecmdexists, route to subdevice extlabelfor USB DAC notify change
- set
selected
- get
- Selected: (skip if USB DAC)
/srv/http/assets/js/mpd.jsname>/srv/http/data/system/audio-outputsysname>/srv/http/data/system/audio-aplayname
- Script:
/srv/http/settings/mpd-conf.sh