Merge pull request #1694 from fewtarius/dev

Ensure audio preamp value exists.
This commit is contained in:
fewtarius 2023-07-10 12:49:09 -04:00 committed by GitHub
commit 2d7fb2281d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,6 +31,11 @@ then
fi
PREAMP=$(get_setting "audio.preamp" 2>/dev/null)
if [ -z "${PREAMP}" ]
then
PREAMP=50
set_setting audio.preamp ${PREAMP}
fi
amixer -M set Pre-Amp -- ${PREAMP}%
VOL=$(get_setting "audio.volume" 2>/dev/null)