The CL answer (while not being too verbose and not providing example) is right; if you want to also use microphone while using dmix, you need to use asym too.
Example configuration allowing both dmix and microphone access might look like this:
pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 8192
rate 44100
}
bindings {
0 0
1 1
}
}
pcm.asymed {
type asym
playback.pcm "dmixer"
capture.pcm "hw:0,0"
}
pcm.dsp0 {
type plug
slave.pcm "asymed"
}
pcm.!default {
type plug
slave.pcm "asymed"
}
pcm.default {
type plug
slave.pcm "asymed"
}
ctl.mixer0 {
type hw
card 0
}
or whatever your configuration is, you want your default not be to dmixer but asym (and have that pcm.asymed block with defines separate playback [your old dmixer and capture devices)