Skip to content

Configure ALSA

Yihui Xiong edited this page Oct 1, 2017 · 2 revisions

ALSA configuration file can be placed at /etc/asound.conf or ~/.asoundrc. We can enable dmix with the following configuration.

  1. ~./.asoundrc for respeaker mic array on raspbian
pcm.!default {
    type asym
    playback.pcm "dmixed"
    capture.pcm "plughw:1"
}

pcm.dmixed {
    type dmix
    slave.pcm "hw:1"
    ipc_key 55555
}
  1. /etc/asound.conf for respeaker v2
pcm.!default {
    type asym
    playback.pcm "dmixed"
    capture.pcm "plughw:0,0"
}

pcm.dmixed {
    type dmix
    slave.pcm "hw:0,2"
    ipc_key 55555
}
Clone this wiki locally