Skip to content

Instantly share code, notes, and snippets.

@MatejLach
Created September 4, 2018 21:48
Show Gist options
  • Save MatejLach/c93f52b650e8a184e39c946ed24ce04d to your computer and use it in GitHub Desktop.
Save MatejLach/c93f52b650e8a184e39c946ed24ce04d to your computer and use it in GitHub Desktop.
Alsa config for Pi carwarings
pcm.mic {
type plug
slave {
pcm "hw:1,0"
}
}
pcm.speakerbonnet {
type hw card 0
}
pcm.dmixer {
type dmix
ipc_key 1024
ipc_perm 0666
slave {
pcm "speakerbonnet"
period_time 0
period_size 1024
buffer_size 8192
rate 44100
channels 2
}
}
ctl.dmixer {
type hw card 0
}
pcm.softvol {
type softvol
slave.pcm "dmixer"
control.name "PCM"
control.card 0
}
ctl.softvol {
type hw card 0
}
pcm.!default {
type plug
slave.pcm "softvol"
capture.pcm "mic"
playback.pcm "speakerbonnet"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment