Add a softvol preamp to boost volume a LOT.

This commit is contained in:
fewtarius 2023-01-05 08:35:36 -05:00
parent dd1a68beae
commit a07fabc55d
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A
2 changed files with 30 additions and 4 deletions

View file

@ -162,7 +162,19 @@ ctl.!default {
pcm.!default { pcm.!default {
type plug type plug
slave.pcm "dmixer" slave.pcm "softvol"
}
pcm.softvol {
type softvol
slave.pcm "dmixer"
control {
name "Pre-Amp"
card ${CARD}
}
min_dB -5.0
max_dB 20.0
resolution 6
} }
pcm.dmixer { pcm.dmixer {
@ -171,8 +183,8 @@ pcm.dmixer {
slave { slave {
pcm "${HWDEV}" pcm "${HWDEV}"
period_time 0 period_time 0
period_size 1024 period_size 4096
buffer_size 8192 buffer_size 131072
rate 176400 rate 176400
} }
bindings { bindings {
@ -186,10 +198,22 @@ EOF
pcm.!default { pcm.!default {
type plug type plug
slave { slave {
pcm "${HWDEV}" pcm "softvol"
} }
} }
pcm.softvol {
type softvol
slave.pcm "dmixer"
control {
name "Pre-Amp"
card ${CARD}
}
min_dB -5.0
max_dB 20.0
resolution 6
}
ctl.!default { ctl.!default {
type hw type hw
card ${CARD} card ${CARD}

View file

@ -29,5 +29,7 @@ then
alsactl restore -f /storage/.config/asound.state alsactl restore -f /storage/.config/asound.state
fi fi
amixer -M set Pre-Amp -- 80%
VOL=$(get_setting "audio.volume" 2>/dev/null) VOL=$(get_setting "audio.volume" 2>/dev/null)
amixer -M set "${DEVICE_AUDIO_MIXER}" ${VOL}% amixer -M set "${DEVICE_AUDIO_MIXER}" ${VOL}%