OSDN Git Service

Added iec958 PCM definition
[android-x86/external-alsa-lib.git] / src / alsa.conf
1
2 pcm.default {
3         type plug
4         slave.pcm {
5                 type hw
6                 card 0
7                 device 0
8         }
9 }
10
11 pcm.hw {
12         $.0 CARD
13         $.1 DEV
14         $.2 SUBDEV
15         $.CARD {
16                 type integer
17         }
18         $.DEV {
19                 type integer
20         }
21         $.SUBDEV {
22                 type integer
23                 default -1
24         }               
25         type hw
26         card $CARD
27         device $DEV
28         subdevice $SUBDEV
29 }
30
31 pcm.plughw {
32         $.0 CARD
33         $.1 DEV
34         $.2 SUBDEV
35         $.CARD {
36                 type integer
37         }
38         $.DEV {
39                 type integer
40         }
41         $.SUBDEV {
42                 type integer
43                 default -1
44         }               
45         type plug
46         slave.pcm {
47                 type hw
48                 card $CARD
49                 device $DEV
50                 subdevice $SUBDEV
51         }
52 }
53
54 pcm.plug {
55         $.0 SLAVE
56         $.SLAVE {
57                 type string
58         }
59         type plug
60         slave.pcm $SLAVE
61 }
62
63 pcm.shm {
64         $.0 SOCKET
65         $.1 PCM
66         $.SOCKET {
67                 type string
68         }
69         $.PCM {
70                 type string
71         }
72         type shm
73         server $SOCKET
74         pcm $PCM
75 }
76
77 pcm.tee {
78         $.0 SLAVE
79         $.1 FILE
80         $.2 FORMAT
81         $.SLAVE {
82                 type string
83         }
84         $.FILE {
85                 type string
86         }
87         $.FORMAT {
88                 type string
89                 default raw
90         }
91         type file
92         slave.pcm $SLAVE
93         file $FILE
94         format $FORMAT
95 }
96
97 pcm.file {
98         $.0 FILE
99         $.1 FORMAT
100         $.FILE {
101                 type string
102         }
103         $.FORMAT {
104                 type string
105                 default raw
106         }
107         type file
108         slave.pcm null
109         file $FILE
110         format $FORMAT
111 }
112
113 pcm.surround40 {
114         $.0 CARD
115         $.1 DEV
116         $.CARD {
117                 type integer
118         }
119         $.DEV {
120                 type integer
121                 default 0
122         }
123         type surround
124         card $CARD
125         device $DEVICE
126         stype 4.0
127 }
128         
129 pcm.surround51 {
130         $.0 CARD
131         $.1 DEV
132         $.CARD {
133                 type integer
134         }
135         $.DEV {
136                 type integer
137                 default 0
138         }
139         type surround
140         card $CARD
141         device $DEVICE
142         stype 5.1
143 }
144         
145 pcm.null {
146         type null
147 }
148         
149 ctl.default {
150         type hw
151         card 0
152 }
153
154 ctl.hw {
155         $.0 CARD
156         $.CARD {
157                 type integer
158         }
159         type hw
160         card $CARD
161 }
162
163 ctl.shm {
164         $.0 SOCKET
165         $.1 PCM
166         $.SOCKET {
167                 type string
168         }
169         $.PCM {
170                 type string
171         }
172         type shm
173         server $SOCKET
174         ctl $PCM
175 }
176
177 rawmidi.hw {
178         $.0 CARD
179         $.1 DEV
180         $.2 SUBDEV
181         $.CARD {
182                 type integer
183         }
184         $.DEV {
185                 type integer
186         }
187         $.SUBDEV {
188                 type integer
189                 default -1
190         }               
191         type hw
192         card $CARD
193         device $DEV
194         subdevice $SUBDEV
195 }
196
197 seq.hw {
198         type hw
199 }
200
201 pcm.iec958 {
202         $.0 PCM
203         $.1 AES0
204         $.2 AES1
205         $.3 AES2
206         $.4 AES3
207         $.PCM {
208                 type string
209                 default default
210         }
211         $.AES0 {
212                 type integer
213                 # IEC958_AES0_PROFESSIONAL | IEC958_AES0_NONAUDIO |
214                 # IEC958_AES0_PRO_EMPHASIS_NONE | IEC958_AES0_PRO_FS_48000
215                 default 0x87
216         }
217         $.AES1 {
218                 type integer
219                 default 0x00
220         }
221         $.AES2 {
222                 type integer
223                 default 0x00
224         }
225         $.AES3 {
226                 type integer
227                 default 0x00
228         }
229         type hooks
230         slave.pcm $PCM
231         hooks.0 {
232                 type ctl_elems
233                 args.0 {
234                         name "IEC958 Playback PCM Stream"
235                         subdevice 0
236                         preserve true
237                         lock true
238                         value.0 $AES0
239                         value.1 $AES1
240                         value.2 $AES2
241                         value.3 $AES3
242                 }
243         }
244 }
245