1# 2# Hardware output from 5.0 speakers. 3# Samples must be positioned: 4# chn0 - front left 5# chn1 - front right 6# chn2 - rear left 7# chn3 - rear right 8# chn4 - center 9# 10 11pcm.!surround50 { 12 @args [ CARD DEV ] 13 @args.CARD { 14 type string 15 default { 16 @func getenv 17 vars [ 18 ALSA_SURROUND50_CARD 19 ALSA_PCM_CARD 20 ALSA_CARD 21 ] 22 default { 23 @func refer 24 name defaults.pcm.surround50.card 25 } 26 } 27 } 28 @args.DEV { 29 type integer 30 default { 31 @func igetenv 32 vars [ 33 ALSA_SURROUND50_DEVICE 34 ] 35 default { 36 @func refer 37 name defaults.pcm.surround50.device 38 } 39 } 40 } 41 type route 42 slave.pcm { 43 @func refer 44 name { 45 @func concat 46 strings [ 47 "cards." 48 { 49 @func card_inum 50 card $CARD 51 } 52 ".pcm.surround51." $DEV ":CARD=" $CARD 53 ] 54 } 55 } 56 ttable.0.FL 1 57 ttable.1.FR 1 58 ttable.2.RL 1 59 ttable.3.RR 1 60 ttable.4.FC 1 61 hint { 62 description "5.0 Surround output to Front, Center and Rear speakers" 63 device_output $DEV 64 omit_noargs true 65 } 66} 67