~n3npq/lsb/t2c-alsa-tests

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>ALSA project - the C library reference: Debug Functions</title>

<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css"></head><body>
<!-- Generated by Doxygen 1.5.0 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
    <li><a href="examples.html"><span>Examples</span></a></li>
  </ul></div>
<h1>Debug Functions<br>
<small>
[<a class="el" href="group___p_c_m.html">PCM Interface</a>]</small>
</h1><table border="0" cellpadding="0" cellspacing="0">
<tbody><tr><td><br>
</td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" nowrap="nowrap" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_m___dump.html#gb7eb3d2a4aa6f3e47ebd1e3833aeb8b7">snd_pcm_dump</a> (<a class="el" href="group___p_c_m.html#gb5676348e7618b444e28907607660cef">snd_pcm_t</a> *pcm, <a class="el" href="group___output.html#gfcb4f6ed600e8daf18d5d5d8623dda50">snd_output_t</a> *out)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Dump PCM info.  <a href="#gb7eb3d2a4aa6f3e47ebd1e3833aeb8b7"></a><br></td></tr>
<tr><td class="memItemLeft" align="right" nowrap="nowrap" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_m___dump.html#g701b888b6d87820db0a22c8c5a2dd82d">snd_pcm_dump_hw_setup</a> (<a class="el" href="group___p_c_m.html#gb5676348e7618b444e28907607660cef">snd_pcm_t</a> *pcm, <a class="el" href="group___output.html#gfcb4f6ed600e8daf18d5d5d8623dda50">snd_output_t</a> *out)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Dump current hardware setup for PCM.  <a href="#g701b888b6d87820db0a22c8c5a2dd82d"></a><br></td></tr>
<tr><td class="memItemLeft" align="right" nowrap="nowrap" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_m___dump.html#g9286c0977f1dbf7444b843e823d4206b">snd_pcm_dump_sw_setup</a> (<a class="el" href="group___p_c_m.html#gb5676348e7618b444e28907607660cef">snd_pcm_t</a> *pcm, <a class="el" href="group___output.html#gfcb4f6ed600e8daf18d5d5d8623dda50">snd_output_t</a> *out)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Dump current software setup for PCM.  <a href="#g9286c0977f1dbf7444b843e823d4206b"></a><br></td></tr>
<tr><td class="memItemLeft" align="right" nowrap="nowrap" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_m___dump.html#gae2eeeb3df99a6d8d35c51c6d02995ef">snd_pcm_dump_setup</a> (<a class="el" href="group___p_c_m.html#gb5676348e7618b444e28907607660cef">snd_pcm_t</a> *pcm, <a class="el" href="group___output.html#gfcb4f6ed600e8daf18d5d5d8623dda50">snd_output_t</a> *out)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Dump current setup (hardware and software) for PCM.  <a href="#gae2eeeb3df99a6d8d35c51c6d02995ef"></a><br></td></tr>
<tr><td class="memItemLeft" align="right" nowrap="nowrap" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_m___dump.html#g8d808218d13b78178748e152d724e4da">snd_pcm_hw_params_dump</a> (<a class="el" href="group___p_c_m.html#g232a2e2b6bb7bb2dca2885eec2e095b3">snd_pcm_hw_params_t</a> *params, <a class="el" href="group___output.html#gfcb4f6ed600e8daf18d5d5d8623dda50">snd_output_t</a> *out)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Dump a PCM hardware configuration space.  <a href="#g8d808218d13b78178748e152d724e4da"></a><br></td></tr>
<tr><td class="memItemLeft" align="right" nowrap="nowrap" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_m___dump.html#g0566466e58d13cae7dafa266979cb237">snd_pcm_sw_params_dump</a> (<a class="el" href="group___p_c_m.html#g999c8c52d8a8d521f1f2cfcd902d7098">snd_pcm_sw_params_t</a> *params, <a class="el" href="group___output.html#gfcb4f6ed600e8daf18d5d5d8623dda50">snd_output_t</a> *out)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Dump a software configuration.  <a href="#g0566466e58d13cae7dafa266979cb237"></a><br></td></tr>
<tr><td class="memItemLeft" align="right" nowrap="nowrap" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_m___dump.html#gf369962e048f072363e411cdf9bb27d7">snd_pcm_status_dump</a> (<a class="el" href="group___p_c_m.html#g1f281a9476a599d4f320297e3a07ec79">snd_pcm_status_t</a> *status, <a class="el" href="group___output.html#gfcb4f6ed600e8daf18d5d5d8623dda50">snd_output_t</a> *out)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Dump status.  <a href="#gf369962e048f072363e411cdf9bb27d7"></a><br></td></tr>
</tbody></table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
See the <a class="el" href="pcm.html">PCM (digital audio) interface</a> page for more details. <hr><h2>Function Documentation</h2>
<a class="anchor" name="gb7eb3d2a4aa6f3e47ebd1e3833aeb8b7"></a><!-- doxytag: member="pcm.h::snd_pcm_dump" ref="gb7eb3d2a4aa6f3e47ebd1e3833aeb8b7" args="(snd_pcm_t *pcm, snd_output_t *out)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tbody><tr>
          <td class="memname">int snd_pcm_dump           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___p_c_m.html#gb5676348e7618b444e28907607660cef">snd_pcm_t</a> *&nbsp;</td>
          <td class="paramname"> <em>pcm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"><br>
</td>
          <td><br>
</td>
          <td class="paramtype"><a class="el" href="group___output.html#gfcb4f6ed600e8daf18d5d5d8623dda50">snd_output_t</a> *&nbsp;</td>
          <td class="paramname"> <em>out</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td><br>
</td>
          <td>)</td>
          <td><br>
</td><td><br>
</td><td width="100%"><br>
</td>
        </tr>
      </tbody></table>
</div>
<div class="memdoc">

<p>
Dump PCM info. 
</p><p>
</p><dl compact="compact"><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellpadding="0" cellspacing="2">
    <tbody><tr><td valign="top"><br>
</td><td valign="top"><em>pcm</em>&nbsp;</td><td>PCM handle </td></tr>
    <tr><td valign="top"><br>
</td><td valign="top"><em>out</em>&nbsp;</td><td>Output handle </td></tr>
  </tbody></table>
</dd></dl>
<dl class="return" compact="compact"><dt><b>Returns:</b></dt><dd>0 on success otherwise a negative error code </dd></dl>
<dl compact="compact"><dt><b>Examples: </b></dt><dd>
<a class="el" href="_2test_2latency_8c-example.html#a29">/test/latency.c</a>, and <a class="el" href="_2test_2pcm_8c-example.html#a67">/test/pcm.c</a>.</dd></dl>
</div>
</div><p>
<a class="anchor" name="g701b888b6d87820db0a22c8c5a2dd82d"></a><!-- doxytag: member="pcm.h::snd_pcm_dump_hw_setup" ref="g701b888b6d87820db0a22c8c5a2dd82d" args="(snd_pcm_t *pcm, snd_output_t *out)" -->
</p><div class="memitem">
<div class="memproto">
      <table class="memname">
        <tbody><tr>
          <td class="memname">int snd_pcm_dump_hw_setup           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___p_c_m.html#gb5676348e7618b444e28907607660cef">snd_pcm_t</a> *&nbsp;</td>
          <td class="paramname"> <em>pcm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"><br>
</td>
          <td><br>
</td>
          <td class="paramtype"><a class="el" href="group___output.html#gfcb4f6ed600e8daf18d5d5d8623dda50">snd_output_t</a> *&nbsp;</td>
          <td class="paramname"> <em>out</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td><br>
</td>
          <td>)</td>
          <td><br>
</td><td><br>
</td><td width="100%"><br>
</td>
        </tr>
      </tbody></table>
</div>
<div class="memdoc">

<p>
Dump current hardware setup for PCM. 
</p><p>
</p><dl compact="compact"><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellpadding="0" cellspacing="2">
    <tbody><tr><td valign="top"><br>
</td><td valign="top"><em>pcm</em>&nbsp;</td><td>PCM handle </td></tr>
    <tr><td valign="top"><br>
</td><td valign="top"><em>out</em>&nbsp;</td><td>Output handle </td></tr>
  </tbody></table>
</dd></dl>
<dl class="return" compact="compact"><dt><b>Returns:</b></dt><dd>0 on success otherwise a negative error code </dd></dl>

</div>
</div><p>
<a class="anchor" name="gae2eeeb3df99a6d8d35c51c6d02995ef"></a><!-- doxytag: member="pcm.h::snd_pcm_dump_setup" ref="gae2eeeb3df99a6d8d35c51c6d02995ef" args="(snd_pcm_t *pcm, snd_output_t *out)" -->
</p><div class="memitem">
<div class="memproto">
      <table class="memname">
        <tbody><tr>
          <td class="memname">int snd_pcm_dump_setup           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___p_c_m.html#gb5676348e7618b444e28907607660cef">snd_pcm_t</a> *&nbsp;</td>
          <td class="paramname"> <em>pcm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"><br>
</td>
          <td><br>
</td>
          <td class="paramtype"><a class="el" href="group___output.html#gfcb4f6ed600e8daf18d5d5d8623dda50">snd_output_t</a> *&nbsp;</td>
          <td class="paramname"> <em>out</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td><br>
</td>
          <td>)</td>
          <td><br>
</td><td><br>
</td><td width="100%"><br>
</td>
        </tr>
      </tbody></table>
</div>
<div class="memdoc">

<p>
Dump current setup (hardware and software) for PCM. 
</p><p>
</p><dl compact="compact"><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellpadding="0" cellspacing="2">
    <tbody><tr><td valign="top"><br>
</td><td valign="top"><em>pcm</em>&nbsp;</td><td>PCM handle </td></tr>
    <tr><td valign="top"><br>
</td><td valign="top"><em>out</em>&nbsp;</td><td>Output handle </td></tr>
  </tbody></table>
</dd></dl>
<dl class="return" compact="compact"><dt><b>Returns:</b></dt><dd>0 on success otherwise a negative error code </dd></dl>

</div>
</div><p>
<a class="anchor" name="g9286c0977f1dbf7444b843e823d4206b"></a><!-- doxytag: member="pcm.h::snd_pcm_dump_sw_setup" ref="g9286c0977f1dbf7444b843e823d4206b" args="(snd_pcm_t *pcm, snd_output_t *out)" -->
</p><div class="memitem">
<div class="memproto">
      <table class="memname">
        <tbody><tr>
          <td class="memname">int snd_pcm_dump_sw_setup           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___p_c_m.html#gb5676348e7618b444e28907607660cef">snd_pcm_t</a> *&nbsp;</td>
          <td class="paramname"> <em>pcm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"><br>
</td>
          <td><br>
</td>
          <td class="paramtype"><a class="el" href="group___output.html#gfcb4f6ed600e8daf18d5d5d8623dda50">snd_output_t</a> *&nbsp;</td>
          <td class="paramname"> <em>out</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td><br>
</td>
          <td>)</td>
          <td><br>
</td><td><br>
</td><td width="100%"><br>
</td>
        </tr>
      </tbody></table>
</div>
<div class="memdoc">

<p>
Dump current software setup for PCM. 
</p><p>
</p><dl compact="compact"><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellpadding="0" cellspacing="2">
    <tbody><tr><td valign="top"><br>
</td><td valign="top"><em>pcm</em>&nbsp;</td><td>PCM handle </td></tr>
    <tr><td valign="top"><br>
</td><td valign="top"><em>out</em>&nbsp;</td><td>Output handle </td></tr>
  </tbody></table>
</dd></dl>
<dl class="return" compact="compact"><dt><b>Returns:</b></dt><dd>0 on success otherwise a negative error code </dd></dl>

</div>
</div><p>
<a class="anchor" name="g8d808218d13b78178748e152d724e4da"></a><!-- doxytag: member="pcm.h::snd_pcm_hw_params_dump" ref="g8d808218d13b78178748e152d724e4da" args="(snd_pcm_hw_params_t *params, snd_output_t *out)" -->
</p><div class="memitem">
<div class="memproto">
      <table class="memname">
        <tbody><tr>
          <td class="memname">int snd_pcm_hw_params_dump           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___p_c_m.html#g232a2e2b6bb7bb2dca2885eec2e095b3">snd_pcm_hw_params_t</a> *&nbsp;</td>
          <td class="paramname"> <em>params</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"><br>
</td>
          <td><br>
</td>
          <td class="paramtype"><a class="el" href="group___output.html#gfcb4f6ed600e8daf18d5d5d8623dda50">snd_output_t</a> *&nbsp;</td>
          <td class="paramname"> <em>out</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td><br>
</td>
          <td>)</td>
          <td><br>
</td><td><br>
</td><td width="100%"><br>
</td>
        </tr>
      </tbody></table>
</div>
<div class="memdoc">

<p>
Dump a PCM hardware configuration space. 
</p><p>
</p><dl compact="compact"><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellpadding="0" cellspacing="2">
    <tbody><tr><td valign="top"><br>
</td><td valign="top"><em>params</em>&nbsp;</td><td>Configuration space </td></tr>
    <tr><td valign="top"><br>
</td><td valign="top"><em>out</em>&nbsp;</td><td>Output handle </td></tr>
  </tbody></table>
</dd></dl>
<dl class="return" compact="compact"><dt><b>Returns:</b></dt><dd>0 on success otherwise a negative error code </dd></dl>

</div>
</div><p>
<a class="anchor" name="gf369962e048f072363e411cdf9bb27d7"></a><!-- doxytag: member="pcm.h::snd_pcm_status_dump" ref="gf369962e048f072363e411cdf9bb27d7" args="(snd_pcm_status_t *status, snd_output_t *out)" -->
</p><div class="memitem">
<div class="memproto">
      <table class="memname">
        <tbody><tr>
          <td class="memname">int snd_pcm_status_dump           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___p_c_m.html#g1f281a9476a599d4f320297e3a07ec79">snd_pcm_status_t</a> *&nbsp;</td>
          <td class="paramname"> <em>status</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"><br>
</td>
          <td><br>
</td>
          <td class="paramtype"><a class="el" href="group___output.html#gfcb4f6ed600e8daf18d5d5d8623dda50">snd_output_t</a> *&nbsp;</td>
          <td class="paramname"> <em>out</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td><br>
</td>
          <td>)</td>
          <td><br>
</td><td><br>
</td><td width="100%"><br>
</td>
        </tr>
      </tbody></table>
</div>
<div class="memdoc">

<p>
Dump status. 
</p><p>
</p><dl compact="compact"><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellpadding="0" cellspacing="2">
    <tbody><tr><td valign="top"><br>
</td><td valign="top"><em>status</em>&nbsp;</td><td>Status container </td></tr>
    <tr><td valign="top"><br>
</td><td valign="top"><em>out</em>&nbsp;</td><td>Output handle </td></tr>
  </tbody></table>
</dd></dl>
<dl class="return" compact="compact"><dt><b>Returns:</b></dt><dd>0 on success otherwise a negative error code </dd></dl>
<dl compact="compact"><dt><b>Examples: </b></dt><dd>
<a class="el" href="_2test_2latency_8c-example.html#a33">/test/latency.c</a>.</dd></dl>
</div>
</div><p>
<a class="anchor" name="g0566466e58d13cae7dafa266979cb237"></a><!-- doxytag: member="pcm.h::snd_pcm_sw_params_dump" ref="g0566466e58d13cae7dafa266979cb237" args="(snd_pcm_sw_params_t *params, snd_output_t *out)" -->
</p><div class="memitem">
<div class="memproto">
      <table class="memname">
        <tbody><tr>
          <td class="memname">int snd_pcm_sw_params_dump           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___p_c_m.html#g999c8c52d8a8d521f1f2cfcd902d7098">snd_pcm_sw_params_t</a> *&nbsp;</td>
          <td class="paramname"> <em>params</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"><br>
</td>
          <td><br>
</td>
          <td class="paramtype"><a class="el" href="group___output.html#gfcb4f6ed600e8daf18d5d5d8623dda50">snd_output_t</a> *&nbsp;</td>
          <td class="paramname"> <em>out</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td><br>
</td>
          <td>)</td>
          <td><br>
</td><td><br>
</td><td width="100%"><br>
</td>
        </tr>
      </tbody></table>
</div>
<div class="memdoc">

<p>
Dump a software configuration. 
</p><p>
</p><dl compact="compact"><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellpadding="0" cellspacing="2">
    <tbody><tr><td valign="top"><br>
</td><td valign="top"><em>params</em>&nbsp;</td><td>Software configuration container </td></tr>
    <tr><td valign="top"><br>
</td><td valign="top"><em>out</em>&nbsp;</td><td>Output handle </td></tr>
  </tbody></table>
</dd></dl>
<dl class="return" compact="compact"><dt><b>Returns:</b></dt><dd>0 on success otherwise a negative error code </dd></dl>

</div>
</div><p>
</p><hr size="1"><address style=""><small>Generated on Wed Sep 9 14:37:09 2009 for ALSA project - the C library reference by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>
</body></html>