I got problems using alsa dmix plugin on raspberry : http://stackoverflow.com/questions/4220 ... -with-dmix
I thought it was because of an error in my alsa config. So I tried with some very simple configs only using dmix :
$this->bbcode_second_pass_code('', '
pcm.dmixer {
type dmix
ipc_key 1024
ipc_key_add_uid 0
ipc_perm 0666
slave.pcm "hw:0,0"
}
pcm.dsp0 {
type plug
slave.pcm "dmixer"
}
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.default {
type plug
slave.pcm "dmixer"
}
ctl.mixer0 {
type hw
card 0
}
')
I figured out I cannot use dmix plugin, when I run a speaker-test with this config, its stays stuck.
When I use default alsa config (direct use of hw:0,0 without dmix), mixing is done as said here :
$this->bbcode_second_pass_quote('', 'N')OTE: For ALSA 1.0.9rc2 and higher you don't need to setup dmix for analogue output. Dmix is enabled by default for soundcards which don't support hardware mixing. You still need to set it up for digital outputs.