rendered paste body# Un dmix en 6 canaux.
pcm.dmix51 {
type dmix
ipc_key 1042
slave {
pcm "hw:0,0"
channels 6
rate 44100
period_time 0
period_size 1024
buffer_size 4096
periods 128
}
#correction des channels
bindings {
0 0 # from 0 => to 0
1 1 # from 1 => to 1
2 4
3 5
4 2
5 3
}
}
pcm.duplex {
type asym
playback.pcm "dmix51"
capture.pcm "dsnoop"
}
# On remix les 2 canaux stéréo vers les 6 canaux 5.1
pcm.51mix {
type route
#0 front left
#1 front right
#2 rear left
#3 rear right
#4 front center
#5 surround
slave.pcm "duplex"
ttable.0.0 1
ttable.1.1 1
ttable.0.2 1
ttable.1.3 1
ttable.0.4 0.8
ttable.1.4 0.8
ttable.0.5 0.8
ttable.1.5 0.8
}
pcm.!default {
type plug
slave.pcm "51mix"
}
# L'entrée 5.1 par défaut
pcm.!surround51 {
type copy
slave.pcm "duplex" # use our new PCM here
}
ctl.mixer0 {
type hw
card 0}