Disable user-provided ALSA config handling

Commented out the section that handles user-provided ALSA config.
This commit is contained in:
Alexandre
2026-07-09 17:08:35 +02:00
committed by GitHub
parent f649d3dd44
commit fab1ace9a3

View File

@@ -11,16 +11,16 @@ echo " "
# Allow advanced users to supply their own ALSA config (e.g. to enable JACK
# or a custom dsnoop chain) by dropping asound.conf into the addon config
# folder. Written to /root/.asoundrc because /etc/asound.conf is read-only.
if [ -f /config/asound.conf ]; then
if [ -r /config/asound.conf ]; then
bashio::log.info "Using user-provided /config/asound.conf, overriding addon defaults"
if ! cp /config/asound.conf /root/.asoundrc; then
bashio::log.warning "Failed to copy /config/asound.conf; continuing with bundled /root/.asoundrc defaults"
fi
else
bashio::log.warning "/config/asound.conf exists but is not readable; continuing with bundled /root/.asoundrc defaults"
fi
fi
#if [ -f /config/asound.conf ]; then
# if [ -r /config/asound.conf ]; then
# bashio::log.info "Using user-provided /config/asound.conf, overriding addon defaults"
# if ! cp /config/asound.conf /root/.asoundrc; then
# bashio::log.warning "Failed to copy /config/asound.conf; continuing with bundled /root/.asoundrc defaults"
# fi
# else
# bashio::log.warning "/config/asound.conf exists but is not readable; continuing with bundled /root/.asoundrc defaults"
# fi
#fi
# Check if alsa_card is provided
CONFIG_LOCATION="/config/config.yaml"