#Define the soundcard to use pcm.snd_card { type hw card 0 device 0 } # 6 channel dmix - output whatever audio, to all 6 speakers pcm.!surround51 { type dmix ipc_key 1024 ipc_key_add_uid false ipc_perm 0660 slave { pcm "snd_card" rate 48000 channels 6 period_time 0 period_size 1024 buffer_time 0 buffer_size 4096 } # Some cards, like the "nforce" variants require the following to be uncommented. It routes the audio to the correct speakers. bindings { 0 0 1 1 2 4 3 5 4 2 5 3 } } # upmixing - duplicate stereo data to all 6 channels pcm.ch51dup { type route slave.pcm surround51 slave.channels 6 ttable.0.0 1 ttable.1.1 1 ttable.0.2 1 ttable.1.3 1 ttable.0.4 0.5 ttable.1.4 0.5 ttable.0.5 0.5 ttable.1.5 0.5 } # 'full-duplex' device for use with aoss pcm.duplex { type asym playback.pcm "ch51dup" capture.pcm "hw:0" } # change default device: pcm.!default { type softvol slave.pcm "duplex" control { name "Software Master" card 0 } } # for aoss pcm.dsp "duplex" pcm.dsp1 "duplex"