From 6868577cdf2e60aa58381d596dd24e5bf78bd467 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Wed, 23 Dec 2015 23:41:41 +0100 Subject: Add a softvol pre-amp to ALSA - some computers have too low audio volume. --- make_slackware_live.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'make_slackware_live.sh') diff --git a/make_slackware_live.sh b/make_slackware_live.sh index 4f54e99..3898f2e 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -1028,6 +1028,22 @@ sed -i ${LIVE_ROOTDIR}/etc/inittab -e "s/\(id:\).\(:initdefault:\)/\1${RUNLEVEL} # But enable NFS client support: [ -f ${LIVE_ROOTDIR}/etc/rc.d/rc.rpc ] && chmod +x ${LIVE_ROOTDIR}/etc/rc.d/rc.rpc +# Add a softvol pre-amp to ALSA - some computers have too low volumes: +cat < ${LIVE_ROOTDIR}/etc/asound.conf +pcm.!default { + type asym + playback.pcm "plug:softvol" + capture.pcm "plug:dsnoop" +} + +pcm.softvol { + type softvol + slave.pcm "dmix" + control { name "PCM"; card 0; } + max_dB 32.0 +} +EOAL + # Skip all filesystem checks at boot: touch ${LIVE_ROOTDIR}/etc/fastboot -- cgit v1.2.3