This commit is contained in:
legop3
2025-11-27 17:31:15 -05:00
parent e2a4d2f3e5
commit bc0aa86381
2 changed files with 12 additions and 38 deletions
+3 -37
View File
@@ -1,45 +1,11 @@
# Use the Google Voice HAT soundcard as index 0 (primary card)
options snd_rpi_googlevoicehat_soundcard index=0
# Define a soft volume control for the speaker (Playback)
pcm.softvol {
type softvol
slave.pcm "dmix" # route through dmix for mixing
control {
name "Master" # name of volume control
card 0
}
}
# Shareable mic capture on the Google Voice HAT (card 0)
pcm.micdup {
type dsnoop
ipc_key 2048
slave {
pcm "hw:0,0"
channels 1
rate 16000
}
}
# Define a software volume (gain) for the microphone (Capture)
pcm.micboost {
type softvol
slave.pcm "micdup" # route through dsnoop wrapper
control {
name "Micro" # name of mic gain control
card 0
}
min_dB -10.0
max_dB 50.0
resolution 256
}
# Set default devices to use the above for asymmetrical playback/capture
# Simple defaults: direct playback/capture on card 0
pcm.!default {
type asym
playback.pcm "plug:softvol"
capture.pcm "plug:micboost"
playback.pcm "plughw:0,0"
capture.pcm "plughw:0,0"
}
ctl.!default {