Revert back to mapped volume mode when changing volume.

This commit is contained in:
fewtarius 2023-08-06 16:24:42 +00:00
parent 54fa8fed69
commit e5017e6f30
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -68,7 +68,7 @@ if [ "${1}" == "vol" ];then
[ "$STEPVOL" -ge "$MAXVOL" ] && STEPVOL="$MAXVOL"
[ "$STEPVOL" -le "$MINVOL" ] && STEPVOL="$MINVOL"
amixer set "${DEVICE_AUDIO_MIXER}" ${STEPVOL}%
amixer -M set "${DEVICE_AUDIO_MIXER}" ${STEPVOL}%
alsactl store -f /storage/.config/asound.state
set_setting "audio.volume" ${STEPVOL}
fi