tizen 2.3.1 release
[external/alsa-lib.git] / src / conf / cards / EMU10K1.conf
1 #
2 # Configuration for the EMU10K1 chip
3 #
4
5 <confdir:pcm/front.conf>
6
7 EMU10K1.pcm.front.0 {
8         @args [ CARD ]
9         @args.CARD {
10                 type string
11         }
12         type asym
13         playback.pcm {
14                 type hooks
15                 slave.pcm {
16                         type hw
17                         card $CARD
18                 }
19                 hooks.0 {
20                         type ctl_elems
21                         hook_args [
22                                 {
23                                         interface PCM
24                                         name "EMU10K1 PCM Send Volume"
25                                         index { @func private_pcm_subdevice }
26                                         # lock true
27                                         optional true
28                                         value [ 255 255 0 0 255 0 0 0 0 255 0 0 ]
29                                 }
30                                 {
31                                         # for compatibility with older drivers
32                                         name "EMU10K1 PCM Send Volume"
33                                         index { @func private_pcm_subdevice }
34                                         # lock true
35                                         optional true
36                                         value [ 255 255 0 0 255 0 0 0 0 255 0 0 ]
37                                 }
38                                 {
39                                         interface PCM
40                                         name "EMU10K1 PCM Send Routing"
41                                         index { @func private_pcm_subdevice }
42                                         # lock true
43                                         optional true
44                                         value [ 8 9 0 0 8 9 0 0 8 9 0 0 ]
45                                 }
46                                 {
47                                         # for compatibility with older drivers
48                                         name "EMU10K1 PCM Send Routing"
49                                         index { @func private_pcm_subdevice }
50                                         # lock true
51                                         optional true
52                                         value [ 8 9 0 0 8 9 0 0 8 9 0 0 ]
53                                 }
54                         ]
55                 }
56         }
57         capture.pcm {
58                 type hw
59                 card $CARD
60         }
61 }       
62
63 <confdir:pcm/rear.conf>
64
65 EMU10K1.pcm.rear.0 {
66         @args [ CARD ]
67         @args.CARD {
68                 type string
69         }
70         type asym
71         playback.pcm {
72                 type hooks
73                 slave.pcm {
74                         type hw
75                         card $CARD
76                 }
77                 hooks.0 {
78                         type ctl_elems
79                         hook_args [
80                                 {
81                                         interface PCM
82                                         name "EMU10K1 PCM Send Volume"
83                                         index { @func private_pcm_subdevice }
84                                         # lock true
85                                         optional true
86                                         value [ 0 0 255 255 0 0 255 0 0 0 0 255 ]
87                                 }
88                                 {
89                                         # for compatibility with older drivers
90                                         name "EMU10K1 PCM Send Volume"
91                                         index { @func private_pcm_subdevice }
92                                         # lock true
93                                         optional true
94                                         value [ 0 0 255 255 0 0 255 0 0 0 0 255 ]
95                                 }
96                         ]
97                 }
98         }
99 }       
100
101 <confdir:pcm/center_lfe.conf>
102
103 EMU10K1.pcm.center_lfe.0 {
104         @args [ CARD ]
105         @args.CARD {
106                 type string
107         }
108         type asym
109         playback.pcm {
110                 type hooks
111                 slave.pcm {
112                         type hw
113                         card $CARD
114                 }
115                 hooks.0 {
116                         type ctl_elems
117                         hook_args [
118                                 {
119                                         name "Headphone Center Playback Switch"
120                                         index 1
121                                         preserve true
122                                         # lock true
123                                         optional true
124                                         value true
125                                 }
126                                 {
127                                         name "Headphone LFE Playback Switch"
128                                         index 1
129                                         preserve true
130                                         # lock true
131                                         optional true
132                                         value true
133                                 }
134 # if you have a creative's digital receiver, you can get surround/center/lfe
135 # output through the digital jack.  so, the following is commented out.
136 # pay attention in case of analog output from the shared center/digital
137 # jack!
138 #                               {
139 #                                       name "SB Live Analog/Digital Output Jack"
140 #                                       preserve true
141 #                                       lock true
142 #                                       value 0
143 #                               }
144                                 {
145                                         interface PCM
146                                         name "EMU10K1 PCM Send Volume"
147                                         index { @func private_pcm_subdevice }
148                                         # lock true
149                                         optional true
150                                         value [ 255 255 0 0 255 0 0 0 0 255 0 0 ]
151                                 }
152                                 {
153                                         # for compatibility with older drivers
154                                         name "EMU10K1 PCM Send Volume"
155                                         index { @func private_pcm_subdevice }
156                                         # lock true
157                                         optional true
158                                         value [ 255 255 0 0 255 0 0 0 0 255 0 0 ]
159                                 }
160                                 {
161                                         interface PCM
162                                         name "EMU10K1 PCM Send Routing"
163                                         index { @func private_pcm_subdevice }
164                                         # lock true
165                                         optional true
166                                         value [ 6 7 0 0 6 7 0 0 6 7 0 0 ]
167                                 }
168                                 {
169                                         # for compatibility with older drivers
170                                         name "EMU10K1 PCM Send Routing"
171                                         index { @func private_pcm_subdevice }
172                                         # lock true
173                                         optional true
174                                         value [ 6 7 0 0 6 7 0 0 6 7 0 0 ]
175                                 }
176                         ]
177                 }
178         }
179 }       
180
181 <confdir:pcm/surround40.conf>
182
183 EMU10K1.pcm.surround40.0 {
184         @args [ CARD ]
185         @args.CARD {
186                 type string
187         }
188         type multi
189         slaves [
190                 {
191                         pcm {
192                                 @func concat
193                                 strings [
194                                         "cards.EMU10K1.pcm.front.0:CARD=" $CARD
195                                 ]
196                         }
197                         channels 2
198                 }
199                 {
200                         pcm {
201                                 @func concat
202                                 strings [
203                                         "cards.EMU10K1.pcm.rear.0:CARD=" $CARD
204                                 ]
205                         }
206                         channels 2
207                 }
208         ]
209         bindings [
210                 { slave 0 channel 0 }
211                 { slave 0 channel 1 }
212                 { slave 1 channel 0 }
213                 { slave 1 channel 1 }
214         ]
215 }
216
217 <confdir:pcm/surround41.conf>
218 <confdir:pcm/surround50.conf>
219 <confdir:pcm/surround51.conf>
220
221 EMU10K1.pcm.surround51.0 {
222         @args [ CARD ]
223         @args.CARD {
224                 type string
225         }
226         type multi
227         slaves [
228                 {
229                         pcm {
230                                 @func concat
231                                 strings [
232                                         "cards.EMU10K1.pcm.front.0:CARD=" $CARD
233                                 ]
234                         }
235                         channels 2
236                 }
237                 {
238                         pcm {
239                                 @func concat
240                                 strings [
241                                         "cards.EMU10K1.pcm.rear.0:CARD=" $CARD
242                                 ]
243                         }
244                         channels 2
245                 }
246                 {
247                         pcm {
248                                 @func concat
249                                 strings [
250                                         "cards.EMU10K1.pcm.center_lfe.0:CARD=" $CARD
251                                 ]
252                         }
253                         channels 2
254                 }
255         ]
256         bindings [
257                 { slave 0 channel 0 }
258                 { slave 0 channel 1 }
259                 { slave 1 channel 0 }
260                 { slave 1 channel 1 }
261                 { slave 2 channel 0 }
262                 { slave 2 channel 1 }
263         ]
264 }
265
266 <confdir:pcm/iec958.conf>
267
268 EMU10K1.pcm.iec958.0 {
269         @args [ CARD AES0 AES1 AES2 AES3 ]
270         @args.CARD {
271                 type string
272         }
273         @args.AES0 {
274                 type integer
275         }
276         @args.AES1 {
277                 type integer
278         }
279         @args.AES2 {
280                 type integer
281         }
282         @args.AES3 {
283                 type integer
284         }
285         type hooks
286         slave.pcm {
287                 type hw
288                 card $CARD
289                 device 2
290         }
291         hooks.0 {
292                 type ctl_elems
293                 hook_args [
294                         {
295                                 interface PCM
296                                 name "IEC958 Playback Default"
297                                 device 2
298                                 lock true
299                                 preserve true
300                                 optional true
301                                 value [ $AES0 $AES1 $AES2 $AES3 ]
302                         }
303                         {
304                                 # for compatibility with older drivers
305                                 name "IEC958 Playback Default"
306                                 lock true
307                                 preserve true
308                                 optional true
309                                 value [ $AES0 $AES1 $AES2 $AES3 ]
310                         }
311                         {
312                                 name "IEC958 Optical Raw Playback Switch"
313                                 lock true
314                                 preserve true
315                                 value [ 1 1 ]
316                         }
317                         {
318                                 name "SB Live Analog/Digital Output Jack"
319                                 lock true
320                                 preserve true
321                                 value 1
322                         }
323                 ]
324         }
325 }