1# 2# Configuration for the EMU10K1X chip 3# 4 5# default with dmix & dsnoop 6EMU10K1X.pcm.default { 7 @args [ CARD ] 8 @args.CARD { 9 type string 10 } 11 type asym 12 playback.pcm { 13 type plug 14 slave.pcm { 15 @func concat 16 strings [ "dmix:" $CARD ] 17 } 18 } 19 capture.pcm { 20 type plug 21 slave.pcm { 22 @func concat 23 strings [ "dsnoop:" $CARD ] 24 } 25 } 26} 27 28<confdir:pcm/front.conf> 29 30EMU10K1X.pcm.front.0 { 31 @args [ CARD ] 32 @args.CARD { 33 type string 34 } 35 type hw 36 card $CARD 37} 38 39<confdir:pcm/rear.conf> 40 41EMU10K1X.pcm.rear.0 { 42 @args [ CARD ] 43 @args.CARD { 44 type string 45 } 46 type hw 47 card $CARD 48 device 1 49} 50 51<confdir:pcm/center_lfe.conf> 52 53EMU10K1X.pcm.center_lfe.0 { 54 @args [ CARD ] 55 @args.CARD { 56 type string 57 } 58 type hw 59 card $CARD 60 device 2 61} 62 63<confdir:pcm/surround40.conf> 64 65EMU10K1X.pcm.surround40.0 { 66 @args [ CARD ] 67 @args.CARD { 68 type string 69 } 70 type multi 71 slaves [ 72 { 73 pcm { 74 @func concat 75 strings [ 76 "cards.EMU10K1X.pcm.front.0:CARD=" $CARD 77 ] 78 } 79 channels 2 80 } 81 { 82 pcm { 83 @func concat 84 strings [ 85 "cards.EMU10K1X.pcm.rear.0:CARD=" $CARD 86 ] 87 } 88 channels 2 89 } 90 ] 91 bindings [ 92 { slave 0 channel 0 } 93 { slave 0 channel 1 } 94 { slave 1 channel 0 } 95 { slave 1 channel 1 } 96 ] 97} 98 99<confdir:pcm/surround21.conf> 100<confdir:pcm/surround41.conf> 101<confdir:pcm/surround50.conf> 102<confdir:pcm/surround51.conf> 103 104EMU10K1X.pcm.surround51.0 { 105 @args [ CARD ] 106 @args.CARD { 107 type string 108 } 109 type multi 110 slaves [ 111 { 112 pcm { 113 @func concat 114 strings [ 115 "cards.EMU10K1X.pcm.front.0:CARD=" $CARD 116 ] 117 } 118 channels 2 119 } 120 { 121 pcm { 122 @func concat 123 strings [ 124 "cards.EMU10K1X.pcm.rear.0:CARD=" $CARD 125 ] 126 } 127 channels 2 128 } 129 { 130 pcm { 131 @func concat 132 strings [ 133 "cards.EMU10K1X.pcm.center_lfe.0:CARD=" $CARD 134 ] 135 } 136 channels 2 137 } 138 ] 139 bindings [ 140 { slave 0 channel 0 } 141 { slave 0 channel 1 } 142 { slave 1 channel 0 } 143 { slave 1 channel 1 } 144 { slave 2 channel 0 } 145 { slave 2 channel 1 } 146 ] 147} 148 149<confdir:pcm/iec958.conf> 150 151EMU10K1X.pcm.iec958.0 { 152 @args [ CARD AES0 AES1 AES2 AES3 ] 153 @args.CARD { 154 type string 155 } 156 @args.AES0 { 157 type integer 158 } 159 @args.AES1 { 160 type integer 161 } 162 @args.AES2 { 163 type integer 164 } 165 @args.AES3 { 166 type integer 167 } 168 type hooks 169 slave.pcm { 170 type hw 171 card $CARD 172 } 173 hooks.0 { 174 type ctl_elems 175 hook_args [ 176 { 177 name "Analog/Digital Output Jack" 178 lock true 179 preserve true 180 value 0 181 } 182 { 183 interface PCM 184 name "IEC958 Playback Default" 185 index 0 186 lock true 187 preserve true 188 optional true 189 value [ $AES0 $AES1 $AES2 $AES3 ] 190 } 191 { 192 # for compatibility with older drivers 193 name "IEC958 Playback Default" 194 index 0 195 lock true 196 preserve true 197 optional true 198 value [ $AES0 $AES1 $AES2 $AES3 ] 199 } 200 ] 201 } 202} 203