- Populate select:
/srv/http/settings/system-i2smodules.php
- set
selected
and showname
=/srv/http/data/system/audio-output
sysname
=/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-aplayname
name
>/srv/http/data/system/audio-output
- set reboot flag
- Populate select:
/srv/http/settings/mpd.php
- get
aplayname
list withaplay -l
- each card:
aplayname
- if subdevices, append index
- get from
/srv/http/settings/i2s/<aplayname>
mixer_control
for each card- if
routecmd
exists, route to subdevice extlabel
for USB DAC notify change
- set
selected
- get
- Selected: (skip if USB DAC)
/srv/http/assets/js/mpd.js
name
>/srv/http/data/system/audio-output
sysname
>/srv/http/data/system/audio-aplayname
- Script:
/srv/http/settings/mpd-conf.sh