1# 2# Default control device 3# 4 5ctl.!default { 6 @args [ CARD ] 7 @args.CARD { 8 type string 9 default { 10 @func getenv 11 vars [ 12 ALSA_PCM_CARD 13 ALSA_CARD 14 ] 15 default { 16 @func refer 17 name defaults.ctl.card 18 } 19 } 20 } 21 type empty 22 child { 23 # use card-specific definition if exists 24 @func refer 25 name { 26 @func concat 27 strings [ 28 "cards." 29 { 30 @func card_inum 31 card $CARD 32 } 33 ".ctl.default:CARD=" $CARD 34 ] 35 } 36 default { 37 type hw 38 card $CARD 39 } 40 } 41 hint.description "Default Control Device" 42} 43