commit
329646047a
5 changed files with 13 additions and 3 deletions
|
@ -25,6 +25,7 @@ audio.bgmusic=1
|
|||
audio.device=headphone
|
||||
audio.display_titles=1
|
||||
audio.persystem=0
|
||||
audio.preamp=50
|
||||
audio.volume=75
|
||||
bluetooth.enabled=0
|
||||
boot=Emulationstation
|
||||
|
|
|
@ -67,5 +67,5 @@ log() {
|
|||
SOURCE=${1//\/*\//}
|
||||
MESSAGE=${*#${1}}
|
||||
MESSAGE=${MESSAGE# }
|
||||
logger -t ${SOURCE}.notice "${MESSAGE}"
|
||||
logger -t ${SOURCE} "${MESSAGE}"
|
||||
}
|
||||
|
|
|
@ -147,6 +147,14 @@ then
|
|||
mkcontroller
|
||||
fi
|
||||
|
||||
# Set a default for the audio preamp
|
||||
PREAMP=$(get_setting audio.preamp)
|
||||
if [ -z "${PREAMP}" ]
|
||||
then
|
||||
echo "Set default preamp." >>${LOG}
|
||||
set_setting audio.preamp 50
|
||||
fi
|
||||
|
||||
# Disable IPv6 by default
|
||||
IPV6=$(get_setting ipv6.enabled)
|
||||
if [ -z "${IPV6}" ]
|
||||
|
|
|
@ -29,7 +29,8 @@ then
|
|||
alsactl restore -f /storage/.config/asound.state
|
||||
fi
|
||||
|
||||
amixer -M set Pre-Amp -- 60%
|
||||
PREAMP=$(get_setting "audio.preamp" 2>/dev/null)
|
||||
amixer -M set Pre-Amp -- ${PREAMP}%
|
||||
|
||||
VOL=$(get_setting "audio.volume" 2>/dev/null)
|
||||
amixer -M set "${DEVICE_AUDIO_MIXER}" ${VOL}%
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Copyright (C) 2020-present Fewtarius
|
||||
|
||||
PKG_NAME="emulationstation"
|
||||
PKG_VERSION="40e235c"
|
||||
PKG_VERSION="e5714fb"
|
||||
PKG_GIT_CLONE_BRANCH="main"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
|
|
Loading…
Reference in a new issue