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