This commit is contained in:
legop3
2026-03-17 03:11:04 -04:00
parent aaa93847e1
commit 84eaab3c9c
13 changed files with 107 additions and 79 deletions
+51 -11
View File
@@ -17,29 +17,69 @@ pcm.dmixer {
}
}
# Software playback volume (adjust with: amixer -c0 sset 'SoftMaster' 70%)
pcm.softvol {
# TTS volume control (used by default playback path).
pcm.tts_softvol {
type softvol
slave.pcm "dmixer"
control {
name "SoftMaster"
name "TTSMaster"
card 0
}
min_dB -51.0
max_dB 0.0
min_dB -60.0
max_dB 12.0
}
# Allow clients with mismatched sample formats/rates to use the mixer.
pcm.playback {
# Horn volume control.
pcm.horn_softvol {
type softvol
slave.pcm "dmixer"
control {
name "HornMaster"
card 0
}
min_dB -60.0
max_dB 12.0
}
# Forwarded audio volume control.
pcm.forward_softvol {
type softvol
slave.pcm "dmixer"
control {
name "ForwardMaster"
card 0
}
min_dB -60.0
max_dB 12.0
}
# Per-source playback PCMs.
pcm.tts {
type plug
slave.pcm "softvol"
slave.pcm "tts_softvol"
}
# Defaults: playback through shared mixer + softvol, capture raw on the HAT
pcm.horn {
type plug
slave.pcm "horn_softvol"
}
pcm.forward {
type plug
slave.pcm "forward_softvol"
}
# Capture alias used by rover config defaults.
pcm.rovermic {
type plug
slave.pcm "hw:0,0"
}
# Defaults: TTS direct playback + raw capture on the HAT.
pcm.!default {
type asym
playback.pcm "playback"
capture.pcm "hw:0,0"
playback.pcm "tts"
capture.pcm "rovermic"
}
ctl.!default {