1c72fcc34Sopenharmony_ci# Test code
2c72fcc34Sopenharmony_ci# Just for debugging purposes
3c72fcc34Sopenharmony_ci
4c72fcc34Sopenharmony_ciPRINT="Default CTL:\n"
5c72fcc34Sopenharmony_ciPRINT="  CTL{numid}=\"$ctl{numid}\"\n"
6c72fcc34Sopenharmony_ciPRINT="  CTL{iface}=\"$ctl{iface}\"\n"
7c72fcc34Sopenharmony_ciPRINT="  CTL{device}=\"$ctl{device}\"\n"
8c72fcc34Sopenharmony_ciPRINT="  CTL{subdevice}=\"$ctl{subdevice}\"\n"
9c72fcc34Sopenharmony_ciPRINT="  CTL{name}=\"$ctl{name}\"\n"
10c72fcc34Sopenharmony_ciPRINT="  CTL{index}=\"$ctl{index}\"\n"
11c72fcc34Sopenharmony_ci
12c72fcc34Sopenharmony_ciCTL{reset}="mixer"
13c72fcc34Sopenharmony_ci
14c72fcc34Sopenharmony_ciPRINT="After CTL{reset}=\"mixer\":\n"
15c72fcc34Sopenharmony_ciPRINT="  CTL{numid}=\"$ctl{numid}\"\n"
16c72fcc34Sopenharmony_ciPRINT="  CTL{iface}=\"$ctl{iface}\"\n"
17c72fcc34Sopenharmony_ciPRINT="  CTL{device}=\"$ctl{device}\"\n"
18c72fcc34Sopenharmony_ciPRINT="  CTL{subdevice}=\"$ctl{subdevice}\"\n"
19c72fcc34Sopenharmony_ciPRINT="  CTL{name}=\"$ctl{name}\"\n"
20c72fcc34Sopenharmony_ciPRINT="  CTL{index}=\"$ctl{index}\"\n"
21c72fcc34Sopenharmony_ci
22c72fcc34Sopenharmony_ciCTL{numid}="987"
23c72fcc34Sopenharmony_ciCTL{iface}="sequencer"
24c72fcc34Sopenharmony_ciCTL{device}="10"
25c72fcc34Sopenharmony_ciCTL{subdevice}="20"
26c72fcc34Sopenharmony_ciCTL{name}="Just Test"
27c72fcc34Sopenharmony_ciCTL{index}="999"
28c72fcc34Sopenharmony_ci
29c72fcc34Sopenharmony_ciPRINT="After test sequence:\n"
30c72fcc34Sopenharmony_ciPRINT="  CTL{numid}=\"$ctl{numid}\"\n"
31c72fcc34Sopenharmony_ciPRINT="  CTL{iface}=\"$ctl{iface}\"\n"
32c72fcc34Sopenharmony_ciPRINT="  CTL{device}=\"$ctl{device}\"\n"
33c72fcc34Sopenharmony_ciPRINT="  CTL{subdevice}=\"$ctl{subdevice}\"\n"
34c72fcc34Sopenharmony_ciPRINT="  CTL{name}=\"$ctl{name}\"\n"
35c72fcc34Sopenharmony_ciPRINT="  CTL{index}=\"$ctl{index}\"\n"
36c72fcc34Sopenharmony_ci
37c72fcc34Sopenharmony_ciERROR="Ignore following error:\n  "
38c72fcc34Sopenharmony_ciPROGRAM="__just_test"
39c72fcc34Sopenharmony_ci
40c72fcc34Sopenharmony_ciPRINT="CTL{do_count} test:\n"
41c72fcc34Sopenharmony_ciCTL{search}="mixer", CTL{name}="*Switch*", \
42c72fcc34Sopenharmony_ci  PRINT="  *Switch* count result: $ctl{do_count}\n"
43c72fcc34Sopenharmony_ci
44c72fcc34Sopenharmony_ciPRINT="__ctl_search test:\n"
45c72fcc34Sopenharmony_ciCTL{search}="mixer", CTL{name}="*Switch*", PROGRAM!="__ctl_search", GOTO="skip_switch_search"
46c72fcc34Sopenharmony_ciPRINT="  *Switch 0* search result: $result\n"
47c72fcc34Sopenharmony_ciPRINT="    CTL{numid}=\"$ctl{numid}\"\n"
48c72fcc34Sopenharmony_ciPRINT="    CTL{iface}=\"$ctl{iface}\"\n"
49c72fcc34Sopenharmony_ciPRINT="    CTL{device}=\"$ctl{device}\"\n"
50c72fcc34Sopenharmony_ciPRINT="    CTL{subdevice}=\"$ctl{subdevice}\"\n"
51c72fcc34Sopenharmony_ciPRINT="    CTL{name}=\"$ctl{name}\"\n"
52c72fcc34Sopenharmony_ciPRINT="    CTL{index}=\"$ctl{index}\"\n"
53c72fcc34Sopenharmony_ciCTL{search}="mixer", CTL{name}="*Switch*", PROGRAM!="__ctl_search 1", GOTO="skip_switch_search"
54c72fcc34Sopenharmony_ciPRINT="  *Switch 1* search result: $result\n"
55c72fcc34Sopenharmony_ciPRINT="    CTL{numid}=\"$ctl{numid}\"\n"
56c72fcc34Sopenharmony_ciPRINT="    CTL{iface}=\"$ctl{iface}\"\n"
57c72fcc34Sopenharmony_ciPRINT="    CTL{device}=\"$ctl{device}\"\n"
58c72fcc34Sopenharmony_ciPRINT="    CTL{subdevice}=\"$ctl{subdevice}\"\n"
59c72fcc34Sopenharmony_ciPRINT="    CTL{name}=\"$ctl{name}\"\n"
60c72fcc34Sopenharmony_ciPRINT="    CTL{index}=\"$ctl{index}\"\n"
61c72fcc34Sopenharmony_ci
62c72fcc34Sopenharmony_ciPRINT="First ten elements:\n"
63c72fcc34Sopenharmony_ciCTL{search}="mixer", CTL{name}="*", CTL{do_search 0}!="1", GOTO="skip_first_ten_search"
64c72fcc34Sopenharmony_ciPRINT="  Element #0:\n"
65c72fcc34Sopenharmony_ciPRINT="    CTL{numid}=\"$ctl{numid}\"\n"
66c72fcc34Sopenharmony_ciPRINT="    CTL{iface}=\"$ctl{iface}\"\n"
67c72fcc34Sopenharmony_ciPRINT="    CTL{device}=\"$ctl{device}\"\n"
68c72fcc34Sopenharmony_ciPRINT="    CTL{subdevice}=\"$ctl{subdevice}\"\n"
69c72fcc34Sopenharmony_ciPRINT="    CTL{name}=\"$ctl{name}\"\n"
70c72fcc34Sopenharmony_ciPRINT="    CTL{index}=\"$ctl{index}\"\n"
71c72fcc34Sopenharmony_ciPRINT="    CTL{type}=\"$ctl{type}\"\n"
72c72fcc34Sopenharmony_ciPRINT="    CTL{attr}=\"$ctl{attr}\"\n"
73c72fcc34Sopenharmony_ciPRINT="    CTL{owner}=\"$ctl{owner}\"\n"
74c72fcc34Sopenharmony_ciPRINT="    CTL{count}=\"$ctl{count}\"\n"
75c72fcc34Sopenharmony_ciPRINT="    CTL{min}=\"$ctl{min}\"\n"
76c72fcc34Sopenharmony_ciPRINT="    CTL{max}=\"$ctl{max}\"\n"
77c72fcc34Sopenharmony_ciPRINT="    CTL{step}=\"$ctl{step}\"\n"
78c72fcc34Sopenharmony_ciPRINT="    CTL{dBmin}=\"$ctl{dBmin}\"\n"
79c72fcc34Sopenharmony_ciPRINT="    CTL{dBmax}=\"$ctl{dBmax}\"\n"
80c72fcc34Sopenharmony_ciPRINT="    CTL{items}=\"$ctl{items}\"\n"
81c72fcc34Sopenharmony_ciPRINT="    CTL{value}=\"$ctl{value}\"\n"
82c72fcc34Sopenharmony_ciCTL{search}="mixer", CTL{name}="*", CTL{do_search 1}!="1", GOTO="skip_first_ten_search"
83c72fcc34Sopenharmony_ciPRINT="  Element #1:\n"
84c72fcc34Sopenharmony_ciPRINT="    CTL{numid}=\"$ctl{numid}\"\n"
85c72fcc34Sopenharmony_ciPRINT="    CTL{iface}=\"$ctl{iface}\"\n"
86c72fcc34Sopenharmony_ciPRINT="    CTL{device}=\"$ctl{device}\"\n"
87c72fcc34Sopenharmony_ciPRINT="    CTL{subdevice}=\"$ctl{subdevice}\"\n"
88c72fcc34Sopenharmony_ciPRINT="    CTL{name}=\"$ctl{name}\"\n"
89c72fcc34Sopenharmony_ciPRINT="    CTL{index}=\"$ctl{index}\"\n"
90c72fcc34Sopenharmony_ciPRINT="    CTL{type}=\"$ctl{type}\"\n"
91c72fcc34Sopenharmony_ciPRINT="    CTL{attr}=\"$ctl{attr}\"\n"
92c72fcc34Sopenharmony_ciPRINT="    CTL{owner}=\"$ctl{owner}\"\n"
93c72fcc34Sopenharmony_ciPRINT="    CTL{count}=\"$ctl{count}\"\n"
94c72fcc34Sopenharmony_ciPRINT="    CTL{min}=\"$ctl{min}\"\n"
95c72fcc34Sopenharmony_ciPRINT="    CTL{max}=\"$ctl{max}\"\n"
96c72fcc34Sopenharmony_ciPRINT="    CTL{step}=\"$ctl{step}\"\n"
97c72fcc34Sopenharmony_ciPRINT="    CTL{dBmin}=\"$ctl{dBmin}\"\n"
98c72fcc34Sopenharmony_ciPRINT="    CTL{dBmax}=\"$ctl{dBmax}\"\n"
99c72fcc34Sopenharmony_ciPRINT="    CTL{items}=\"$ctl{items}\"\n"
100c72fcc34Sopenharmony_ciPRINT="    CTL{value}=\"$ctl{value}\"\n"
101c72fcc34Sopenharmony_ciCTL{search}="mixer", CTL{name}="*", CTL{do_search 2}!="1", GOTO="skip_first_ten_search"
102c72fcc34Sopenharmony_ciPRINT="  Element #2:\n"
103c72fcc34Sopenharmony_ciPRINT="    CTL{numid}=\"$ctl{numid}\"\n"
104c72fcc34Sopenharmony_ciPRINT="    CTL{iface}=\"$ctl{iface}\"\n"
105c72fcc34Sopenharmony_ciPRINT="    CTL{device}=\"$ctl{device}\"\n"
106c72fcc34Sopenharmony_ciPRINT="    CTL{subdevice}=\"$ctl{subdevice}\"\n"
107c72fcc34Sopenharmony_ciPRINT="    CTL{name}=\"$ctl{name}\"\n"
108c72fcc34Sopenharmony_ciPRINT="    CTL{index}=\"$ctl{index}\"\n"
109c72fcc34Sopenharmony_ciPRINT="    CTL{type}=\"$ctl{type}\"\n"
110c72fcc34Sopenharmony_ciPRINT="    CTL{attr}=\"$ctl{attr}\"\n"
111c72fcc34Sopenharmony_ciPRINT="    CTL{owner}=\"$ctl{owner}\"\n"
112c72fcc34Sopenharmony_ciPRINT="    CTL{count}=\"$ctl{count}\"\n"
113c72fcc34Sopenharmony_ciPRINT="    CTL{min}=\"$ctl{min}\"\n"
114c72fcc34Sopenharmony_ciPRINT="    CTL{max}=\"$ctl{max}\"\n"
115c72fcc34Sopenharmony_ciPRINT="    CTL{step}=\"$ctl{step}\"\n"
116c72fcc34Sopenharmony_ciPRINT="    CTL{dBmin}=\"$ctl{dBmin}\"\n"
117c72fcc34Sopenharmony_ciPRINT="    CTL{dBmax}=\"$ctl{dBmax}\"\n"
118c72fcc34Sopenharmony_ciPRINT="    CTL{items}=\"$ctl{items}\"\n"
119c72fcc34Sopenharmony_ciPRINT="    CTL{value}=\"$ctl{value}\"\n"
120c72fcc34Sopenharmony_ciCTL{search}="mixer", CTL{name}="*", CTL{do_search 3}!="3", GOTO="skip_first_ten_search"
121c72fcc34Sopenharmony_ciPRINT="  Element #3:\n"
122c72fcc34Sopenharmony_ciPRINT="    CTL{numid}=\"$ctl{numid}\"\n"
123c72fcc34Sopenharmony_ciPRINT="    CTL{iface}=\"$ctl{iface}\"\n"
124c72fcc34Sopenharmony_ciPRINT="    CTL{device}=\"$ctl{device}\"\n"
125c72fcc34Sopenharmony_ciPRINT="    CTL{subdevice}=\"$ctl{subdevice}\"\n"
126c72fcc34Sopenharmony_ciPRINT="    CTL{name}=\"$ctl{name}\"\n"
127c72fcc34Sopenharmony_ciPRINT="    CTL{index}=\"$ctl{index}\"\n"
128c72fcc34Sopenharmony_ciPRINT="    CTL{type}=\"$ctl{type}\"\n"
129c72fcc34Sopenharmony_ciPRINT="    CTL{attr}=\"$ctl{attr}\"\n"
130c72fcc34Sopenharmony_ciPRINT="    CTL{owner}=\"$ctl{owner}\"\n"
131c72fcc34Sopenharmony_ciPRINT="    CTL{count}=\"$ctl{count}\"\n"
132c72fcc34Sopenharmony_ciPRINT="    CTL{min}=\"$ctl{min}\"\n"
133c72fcc34Sopenharmony_ciPRINT="    CTL{max}=\"$ctl{max}\"\n"
134c72fcc34Sopenharmony_ciPRINT="    CTL{dBmin}=\"$ctl{dBmin}\"\n"
135c72fcc34Sopenharmony_ciPRINT="    CTL{dBmax}=\"$ctl{dBmax}\"\n"
136c72fcc34Sopenharmony_ciPRINT="    CTL{step}=\"$ctl{step}\"\n"
137c72fcc34Sopenharmony_ciPRINT="    CTL{items}=\"$ctl{items}\"\n"
138c72fcc34Sopenharmony_ciPRINT="    CTL{value}=\"$ctl{value}\"\n"
139c72fcc34Sopenharmony_ciCTL{search}="mixer", CTL{name}="*", CTL{do_search 4}!="1", GOTO="skip_first_ten_search"
140c72fcc34Sopenharmony_ciPRINT="  Element #4:\n"
141c72fcc34Sopenharmony_ciPRINT="    CTL{numid}=\"$ctl{numid}\"\n"
142c72fcc34Sopenharmony_ciPRINT="    CTL{iface}=\"$ctl{iface}\"\n"
143c72fcc34Sopenharmony_ciPRINT="    CTL{device}=\"$ctl{device}\"\n"
144c72fcc34Sopenharmony_ciPRINT="    CTL{subdevice}=\"$ctl{subdevice}\"\n"
145c72fcc34Sopenharmony_ciPRINT="    CTL{name}=\"$ctl{name}\"\n"
146c72fcc34Sopenharmony_ciPRINT="    CTL{index}=\"$ctl{index}\"\n"
147c72fcc34Sopenharmony_ciPRINT="    CTL{type}=\"$ctl{type}\"\n"
148c72fcc34Sopenharmony_ciPRINT="    CTL{attr}=\"$ctl{attr}\"\n"
149c72fcc34Sopenharmony_ciPRINT="    CTL{owner}=\"$ctl{owner}\"\n"
150c72fcc34Sopenharmony_ciPRINT="    CTL{count}=\"$ctl{count}\"\n"
151c72fcc34Sopenharmony_ciPRINT="    CTL{min}=\"$ctl{min}\"\n"
152c72fcc34Sopenharmony_ciPRINT="    CTL{max}=\"$ctl{max}\"\n"
153c72fcc34Sopenharmony_ciPRINT="    CTL{step}=\"$ctl{step}\"\n"
154c72fcc34Sopenharmony_ciPRINT="    CTL{dBmin}=\"$ctl{dBmin}\"\n"
155c72fcc34Sopenharmony_ciPRINT="    CTL{dBmax}=\"$ctl{dBmax}\"\n"
156c72fcc34Sopenharmony_ciPRINT="    CTL{items}=\"$ctl{items}\"\n"
157c72fcc34Sopenharmony_ciPRINT="    CTL{value}=\"$ctl{value}\"\n"
158c72fcc34Sopenharmony_ciCTL{search}="mixer", CTL{name}="*", CTL{do_search 5}!="1", GOTO="skip_first_ten_search"
159c72fcc34Sopenharmony_ciPRINT="  Element #5:\n"
160c72fcc34Sopenharmony_ciPRINT="    CTL{numid}=\"$ctl{numid}\"\n"
161c72fcc34Sopenharmony_ciPRINT="    CTL{iface}=\"$ctl{iface}\"\n"
162c72fcc34Sopenharmony_ciPRINT="    CTL{device}=\"$ctl{device}\"\n"
163c72fcc34Sopenharmony_ciPRINT="    CTL{subdevice}=\"$ctl{subdevice}\"\n"
164c72fcc34Sopenharmony_ciPRINT="    CTL{name}=\"$ctl{name}\"\n"
165c72fcc34Sopenharmony_ciPRINT="    CTL{index}=\"$ctl{index}\"\n"
166c72fcc34Sopenharmony_ciPRINT="    CTL{type}=\"$ctl{type}\"\n"
167c72fcc34Sopenharmony_ciPRINT="    CTL{attr}=\"$ctl{attr}\"\n"
168c72fcc34Sopenharmony_ciPRINT="    CTL{owner}=\"$ctl{owner}\"\n"
169c72fcc34Sopenharmony_ciPRINT="    CTL{count}=\"$ctl{count}\"\n"
170c72fcc34Sopenharmony_ciPRINT="    CTL{min}=\"$ctl{min}\"\n"
171c72fcc34Sopenharmony_ciPRINT="    CTL{max}=\"$ctl{max}\"\n"
172c72fcc34Sopenharmony_ciPRINT="    CTL{step}=\"$ctl{step}\"\n"
173c72fcc34Sopenharmony_ciPRINT="    CTL{dBmin}=\"$ctl{dBmin}\"\n"
174c72fcc34Sopenharmony_ciPRINT="    CTL{dBmax}=\"$ctl{dBmax}\"\n"
175c72fcc34Sopenharmony_ciPRINT="    CTL{items}=\"$ctl{items}\"\n"
176c72fcc34Sopenharmony_ciPRINT="    CTL{value}=\"$ctl{value}\"\n"
177c72fcc34Sopenharmony_ciCTL{search}="mixer", CTL{name}="*", CTL{do_search 6}!="1", GOTO="skip_first_ten_search"
178c72fcc34Sopenharmony_ciPRINT="  Element #6:\n"
179c72fcc34Sopenharmony_ciPRINT="    CTL{numid}=\"$ctl{numid}\"\n"
180c72fcc34Sopenharmony_ciPRINT="    CTL{iface}=\"$ctl{iface}\"\n"
181c72fcc34Sopenharmony_ciPRINT="    CTL{device}=\"$ctl{device}\"\n"
182c72fcc34Sopenharmony_ciPRINT="    CTL{subdevice}=\"$ctl{subdevice}\"\n"
183c72fcc34Sopenharmony_ciPRINT="    CTL{name}=\"$ctl{name}\"\n"
184c72fcc34Sopenharmony_ciPRINT="    CTL{index}=\"$ctl{index}\"\n"
185c72fcc34Sopenharmony_ciPRINT="    CTL{type}=\"$ctl{type}\"\n"
186c72fcc34Sopenharmony_ciPRINT="    CTL{attr}=\"$ctl{attr}\"\n"
187c72fcc34Sopenharmony_ciPRINT="    CTL{owner}=\"$ctl{owner}\"\n"
188c72fcc34Sopenharmony_ciPRINT="    CTL{count}=\"$ctl{count}\"\n"
189c72fcc34Sopenharmony_ciPRINT="    CTL{min}=\"$ctl{min}\"\n"
190c72fcc34Sopenharmony_ciPRINT="    CTL{max}=\"$ctl{max}\"\n"
191c72fcc34Sopenharmony_ciPRINT="    CTL{step}=\"$ctl{step}\"\n"
192c72fcc34Sopenharmony_ciPRINT="    CTL{dBmin}=\"$ctl{dBmin}\"\n"
193c72fcc34Sopenharmony_ciPRINT="    CTL{dBmax}=\"$ctl{dBmax}\"\n"
194c72fcc34Sopenharmony_ciPRINT="    CTL{items}=\"$ctl{items}\"\n"
195c72fcc34Sopenharmony_ciPRINT="    CTL{value}=\"$ctl{value}\"\n"
196c72fcc34Sopenharmony_ciCTL{search}="mixer", CTL{name}="*", CTL{do_search 7}!="1", GOTO="skip_first_ten_search"
197c72fcc34Sopenharmony_ciPRINT="  Element #7:\n"
198c72fcc34Sopenharmony_ciPRINT="    CTL{numid}=\"$ctl{numid}\"\n"
199c72fcc34Sopenharmony_ciPRINT="    CTL{iface}=\"$ctl{iface}\"\n"
200c72fcc34Sopenharmony_ciPRINT="    CTL{device}=\"$ctl{device}\"\n"
201c72fcc34Sopenharmony_ciPRINT="    CTL{subdevice}=\"$ctl{subdevice}\"\n"
202c72fcc34Sopenharmony_ciPRINT="    CTL{name}=\"$ctl{name}\"\n"
203c72fcc34Sopenharmony_ciPRINT="    CTL{index}=\"$ctl{index}\"\n"
204c72fcc34Sopenharmony_ciPRINT="    CTL{type}=\"$ctl{type}\"\n"
205c72fcc34Sopenharmony_ciPRINT="    CTL{attr}=\"$ctl{attr}\"\n"
206c72fcc34Sopenharmony_ciPRINT="    CTL{owner}=\"$ctl{owner}\"\n"
207c72fcc34Sopenharmony_ciPRINT="    CTL{count}=\"$ctl{count}\"\n"
208c72fcc34Sopenharmony_ciPRINT="    CTL{min}=\"$ctl{min}\"\n"
209c72fcc34Sopenharmony_ciPRINT="    CTL{max}=\"$ctl{max}\"\n"
210c72fcc34Sopenharmony_ciPRINT="    CTL{step}=\"$ctl{step}\"\n"
211c72fcc34Sopenharmony_ciPRINT="    CTL{dBmin}=\"$ctl{dBmin}\"\n"
212c72fcc34Sopenharmony_ciPRINT="    CTL{dBmax}=\"$ctl{dBmax}\"\n"
213c72fcc34Sopenharmony_ciPRINT="    CTL{items}=\"$ctl{items}\"\n"
214c72fcc34Sopenharmony_ciPRINT="    CTL{value}=\"$ctl{value}\"\n"
215c72fcc34Sopenharmony_ciCTL{search}="mixer", CTL{name}="*", CTL{do_search 8}!="1", GOTO="skip_first_ten_search"
216c72fcc34Sopenharmony_ciPRINT="  Element #8:\n"
217c72fcc34Sopenharmony_ciPRINT="    CTL{numid}=\"$ctl{numid}\"\n"
218c72fcc34Sopenharmony_ciPRINT="    CTL{iface}=\"$ctl{iface}\"\n"
219c72fcc34Sopenharmony_ciPRINT="    CTL{device}=\"$ctl{device}\"\n"
220c72fcc34Sopenharmony_ciPRINT="    CTL{subdevice}=\"$ctl{subdevice}\"\n"
221c72fcc34Sopenharmony_ciPRINT="    CTL{name}=\"$ctl{name}\"\n"
222c72fcc34Sopenharmony_ciPRINT="    CTL{index}=\"$ctl{index}\"\n"
223c72fcc34Sopenharmony_ciPRINT="    CTL{type}=\"$ctl{type}\"\n"
224c72fcc34Sopenharmony_ciPRINT="    CTL{attr}=\"$ctl{attr}\"\n"
225c72fcc34Sopenharmony_ciPRINT="    CTL{owner}=\"$ctl{owner}\"\n"
226c72fcc34Sopenharmony_ciPRINT="    CTL{count}=\"$ctl{count}\"\n"
227c72fcc34Sopenharmony_ciPRINT="    CTL{min}=\"$ctl{min}\"\n"
228c72fcc34Sopenharmony_ciPRINT="    CTL{max}=\"$ctl{max}\"\n"
229c72fcc34Sopenharmony_ciPRINT="    CTL{step}=\"$ctl{step}\"\n"
230c72fcc34Sopenharmony_ciPRINT="    CTL{dBmin}=\"$ctl{dBmin}\"\n"
231c72fcc34Sopenharmony_ciPRINT="    CTL{dBmax}=\"$ctl{dBmax}\"\n"
232c72fcc34Sopenharmony_ciPRINT="    CTL{items}=\"$ctl{items}\"\n"
233c72fcc34Sopenharmony_ciPRINT="    CTL{value}=\"$ctl{value}\"\n"
234c72fcc34Sopenharmony_ciCTL{search}="mixer", CTL{name}="*", CTL{do_search 9}!="1", GOTO="skip_first_ten_search"
235c72fcc34Sopenharmony_ciPRINT="  Element #9:\n"
236c72fcc34Sopenharmony_ciPRINT="    CTL{numid}=\"$ctl{numid}\"\n"
237c72fcc34Sopenharmony_ciPRINT="    CTL{iface}=\"$ctl{iface}\"\n"
238c72fcc34Sopenharmony_ciPRINT="    CTL{device}=\"$ctl{device}\"\n"
239c72fcc34Sopenharmony_ciPRINT="    CTL{subdevice}=\"$ctl{subdevice}\"\n"
240c72fcc34Sopenharmony_ciPRINT="    CTL{name}=\"$ctl{name}\"\n"
241c72fcc34Sopenharmony_ciPRINT="    CTL{index}=\"$ctl{index}\"\n"
242c72fcc34Sopenharmony_ciPRINT="    CTL{type}=\"$ctl{type}\"\n"
243c72fcc34Sopenharmony_ciPRINT="    CTL{attr}=\"$ctl{attr}\"\n"
244c72fcc34Sopenharmony_ciPRINT="    CTL{owner}=\"$ctl{owner}\"\n"
245c72fcc34Sopenharmony_ciPRINT="    CTL{count}=\"$ctl{count}\"\n"
246c72fcc34Sopenharmony_ciPRINT="    CTL{min}=\"$ctl{min}\"\n"
247c72fcc34Sopenharmony_ciPRINT="    CTL{max}=\"$ctl{max}\"\n"
248c72fcc34Sopenharmony_ciPRINT="    CTL{step}=\"$ctl{step}\"\n"
249c72fcc34Sopenharmony_ciPRINT="    CTL{dBmin}=\"$ctl{dBmin}\"\n"
250c72fcc34Sopenharmony_ciPRINT="    CTL{dBmax}=\"$ctl{dBmax}\"\n"
251c72fcc34Sopenharmony_ciPRINT="    CTL{items}=\"$ctl{items}\"\n"
252c72fcc34Sopenharmony_ciPRINT="    CTL{value}=\"$ctl{value}\"\n"
253c72fcc34Sopenharmony_ciLABEL="skip_first_ten_search"
254c72fcc34Sopenharmony_ci
255c72fcc34Sopenharmony_ciPRINT="Elements write test #1:\n", \
256c72fcc34Sopenharmony_ci  CTL{search}="mixer", CTL{name}="Front Playback Switch", \
257c72fcc34Sopenharmony_ci  CTL{do_search}=="1", CTL{value}="on,on", \
258c72fcc34Sopenharmony_ci  PRINT="  result=$result\n"
259c72fcc34Sopenharmony_ciPRINT="Elements write test #2:\n", \
260c72fcc34Sopenharmony_ci  CTL{search}="mixer", CTL{name}="Front Playback Volume", \
261c72fcc34Sopenharmony_ci  CTL{do_search}=="1", CTL{value}="32,32", \
262c72fcc34Sopenharmony_ci  PRINT="  result=$result\n"
263c72fcc34Sopenharmony_ciPRINT="Elements write test #3:\n", \
264c72fcc34Sopenharmony_ci  CTL{search}="mixer", CTL{name}="Front Playback Volume Error", \
265c72fcc34Sopenharmony_ci  CTL{do_search}=="1", \
266c72fcc34Sopenharmony_ciPRINT="  result=$result\n"
267c72fcc34Sopenharmony_ci
268c72fcc34Sopenharmony_ci#CTL{reset}="mixer", CTL{name}="Input Source", PRINT="***$ctl{enums}\n"
269c72fcc34Sopenharmony_ci
270c72fcc34Sopenharmony_ciPRINT="\nAll tests done..\n"
271