Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #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.dmix6 {
- type dmix
- ipc_key 1022
- ipc_perm 0666
- ipc_key_add_uid false
- slave {
- pcm "snd_card"
- format S32_LE
- rate 48000
- period_size 2048 # must be power of 2
- buffer_size 16384 # dito. It
- channels 6
- }
- }
- #pcm.dsnooped {
- # ipc_key 1027
- # type dsnoop
- # slave.pcm "hw:0,0"
- # }
- pcm.softvol {
- type softvol
- slave {
- pcm "dmix6" #redirect the output to dmix (instead of "hw:0,0")
- }
- control {
- name "PCM Playback Volume" #override the PCM slider to set the softvol volume level globally
- card 0
- }
- }
- # upmixing - duplicate stereo data to all 6 channels
- pcm.ch51dup {
- type route
- slave.pcm softvol
- slave.channels 6
- ttable {
- 0.0 1 # front left
- 1.1 1 # front right
- 0.2 1 # rear left
- 1.3 1 # rear right
- 0.4 0.5 # center
- 1.4 0.5 # center
- # 0.5 0.5 # subwoofer
- # 1.5 0.5 # subwoofer
- }
- }
- pcm.surround6 {
- type plug
- slave.pcm asymed6
- }
- pcm.asymed6 {
- type asym
- playback.pcm "softvol"
- capture.pcm {
- type plug
- slave.pcm "dsnoop:0"
- }
- }
- pcm.asymed {
- type asym
- playback.pcm "ch51dup"
- capture.pcm {
- type plug
- slave.pcm "dsnoop:0"
- }
- }
- pcm.!default {
- type plug
- slave.channels 6
- slave.pcm "asymed"
- hint {
- show on
- description "Onboard Soundcard"
- }
- }
- pcm.!plug:surround51 "surround6"
- pcm.!surround51 "surround6"
- pcm.!surround51:0 "surround6"
- pcm.!plug:surround51:0 "surround6"
- pcm.dsp {
- type plug
- slave.pcm "softvol"
- }
- ctl.mixer {
- type plug
- slave.pcm "asymed"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement