Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pcm.dmixed {
- type asym
- playback.pcm {
- # See plugin:dmix at http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html
- type dmix
- # Don't block other users, e.g. the Timidity midi-player daemon
- # http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html
- ipc_key_add_uid true
- ipc_key 5678293
- ipc_perm 0660
- ipc_gid audio
- slave {
- channels 6
- pcm {
- #format S16_LE
- #format S24_LE
- format S32_LE
- #format FLOAT_LE
- #rate 44100
- #rate 48000
- rate 96000
- # http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html
- # Maybe helps
- nonblock true
- type hw
- card 0
- device 0
- subdevice 0
- }
- # period_size 512 with buffer_size 16384 stops crackling in xmame
- # 320 breaks flash - https://bbs.archlinux.org/viewtopic.php?id=129458
- #period_size 512
- period_size 1024
- # If too large, use CONFIG_SND_HDA_PREALLOC_SIZE=2048
- buffer_size 16384
- }
- }
- capture.pcm "hw:0,1"
- }
- #Default PCM used by most applications unless otherwise specified. ALSA_DEFAULT_PCM variable can be used to change it's slave, the default is upmixing from 2.0 to 5.1 via the stereo pcm.
- pcm.!default {
- type plug
- slave.pcm { @func getenv
- vars [ ALSA_DEFAULT_PCM ]
- default "stereo"
- }
- }
- pcm.!surround20 {
- type plug
- slave.pcm "surround41"
- }
- #HDMI Output on 4.0 pcm
- pcm.!surround40 {
- type plug
- slave.pcm {
- type hw
- card 3
- device 3
- }
- }
- #HDMI Output on 5.0
- pcm.!surround41 {
- type plug
- slave.pcm "dmixed"
- route_policy duplicate
- }
- pcm.!surround50 {
- type plug
- slave.pcm "dmixed"
- route_policy duplicate
- }
- pcm.!surround51 {
- type plug
- slave.pcm "dmixed"
- }
- #Downmix 7.1 to 5.1
- pcm.!surround71{
- type plug
- slave.pcm "dmixed"
- # Front and rear
- ttable.0.0 0.9
- ttable.1.1 0.9
- ttable.2.2 1
- ttable.3.3 1
- # Center and LFE
- ttable.4.4 1
- ttable.5.5 1
- # Side left and Side Right to Rear Left and Rear Right
- ttable.6.2 1
- ttable.7.3 1
- }
- #Upmix mono to 5.1
- pcm.mono {
- type plug
- slave.pcm "dmixed"
- ttable.0.0 0.9
- ttable.0.1 0.9
- ttable.0.2 1
- ttable.0.3 1
- ttable.0.4 1
- ttable.0.5 1
- }
- #Upmix stereo to 5.1
- pcm.stereo {
- slave.pcm "dmixed"
- type route
- # Front and rear
- ttable.0.0 0.9
- ttable.1.1 0.9
- ttable.2.2 1
- ttable.3.3 1
- # Center and LFE
- ttable.4.4 1
- ttable.5.5 1
- # Front left/right to center
- ttable.0.4 0.5
- ttable.1.4 0.5
- # Front left/right to rear
- ttable.0.2 0.5
- ttable.1.3 0.5
- }
Advertisement
Add Comment
Please, Sign In to add comment