diff options
author | Eric Hameleers <alien@slackware.com> | 2015-12-23 23:41:41 +0100 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2015-12-23 23:41:41 +0100 |
commit | 6868577cdf2e60aa58381d596dd24e5bf78bd467 (patch) | |
tree | c177bba779f759d8bf8b9f473817afd7a4486099 /make_slackware_live.sh | |
parent | 8c91ec56db15f4dddb5f46e36443501e781eb49e (diff) | |
download | liveslak-6868577cdf2e60aa58381d596dd24e5bf78bd467.tar.gz liveslak-6868577cdf2e60aa58381d596dd24e5bf78bd467.tar.xz |
Add a softvol pre-amp to ALSA - some computers have too low audio volume.
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-x | make_slackware_live.sh | 16 |
1 files changed, 16 insertions, 0 deletions
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 <<EOAL > ${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 |