1# 2# Hardware output from rear speakers 3# 4 5pcm.!rear { 6 @args [ CARD DEV ] 7 @args.CARD { 8 type string 9 default { 10 @func getenv 11 vars [ 12 ALSA_REAR_CARD 13 ALSA_PCM_CARD 14 ALSA_CARD 15 ] 16 default { 17 @func refer 18 name defaults.pcm.rear.card 19 } 20 } 21 } 22 @args.DEV { 23 type integer 24 default { 25 @func igetenv 26 vars [ 27 ALSA_REAR_DEVICE 28 ] 29 default { 30 @func refer 31 name defaults.pcm.rear.device 32 } 33 } 34 } 35 type empty 36 slave.pcm { 37 @func refer 38 name { 39 @func concat 40 strings [ 41 "cards." 42 { 43 @func card_inum 44 card $CARD 45 } 46 ".pcm.rear." $DEV ":CARD=" $CARD 47 ] 48 } 49 } 50 hint { 51 show { 52 @func refer 53 name defaults.namehint.basic 54 } 55 description "Rear speakers" 56 device $DEV 57 } 58} 59