1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>SNDRV_COMPRESS_IOCTL_VERSION</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="The ALSA Driver API"><link rel="up" href="ch06.html#idp1095078220" title="Compress Offload API"><link rel="prev" href="API-struct-snd-compr-metadata.html" title="struct snd_compr_metadata"><link rel="next" href="API-struct-snd-enc-vorbis.html" title="struct snd_enc_vorbis"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">SNDRV_COMPRESS_IOCTL_VERSION</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-snd-compr-metadata.html">Prev</a> </td><th width="60%" align="center">Compress Offload API</th><td width="20%" align="right"> <a accesskey="n" href="API-struct-snd-enc-vorbis.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-SNDRV-COMPRESS-IOCTL-VERSION"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>SNDRV_COMPRESS_IOCTL_VERSION — 2 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef"> <b class="fsfunc">SNDRV_COMPRESS_IOCTL_VERSION </b>(</code></td><td><code>void)</code>;</td><td> </td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1095145284"></a><h2>Arguments</h2><p> 3 None 4 </p></div><div class="refsect1"><a name="idp1095145892"></a><h2>SNDRV_COMPRESS_GET_CAPS</h2><p> 5 Query capability of DSP 6</p></div><div class="refsect1"><a name="idp1095146540"></a><h2>SNDRV_COMPRESS_GET_CODEC_CAPS</h2><p> 7 Query capability of a codec 8</p></div><div class="refsect1"><a name="idp1095147196"></a><h2>SNDRV_COMPRESS_SET_PARAMS</h2><p> 9 Set codec and stream parameters 10</p></div><div class="refsect1"><a name="idp1095147852"></a><h2>Note</h2><p> 11 only codec params can be changed runtime and stream params cant be 12</p></div><div class="refsect1"><a name="idp1095148524"></a><h2>SNDRV_COMPRESS_GET_PARAMS</h2><p> 13 Query codec params 14</p></div><div class="refsect1"><a name="idp1095149164"></a><h2>SNDRV_COMPRESS_TSTAMP</h2><p> 15 get the current timestamp value 16</p></div><div class="refsect1"><a name="idp1095149820"></a><h2>SNDRV_COMPRESS_AVAIL</h2><p> 17 get the current buffer avail value. 18 This also queries the tstamp properties 19</p></div><div class="refsect1"><a name="idp1095150516"></a><h2>SNDRV_COMPRESS_PAUSE</h2><p> 20 Pause the running stream 21</p></div><div class="refsect1"><a name="idp1095151164"></a><h2>SNDRV_COMPRESS_RESUME</h2><p> 22 resume a paused stream 23</p></div><div class="refsect1"><a name="idp1095151804"></a><h2>SNDRV_COMPRESS_START</h2><p> 24 Start a stream 25</p></div><div class="refsect1"><a name="idp1095152436"></a><h2>SNDRV_COMPRESS_STOP</h2><p> 26 stop a running stream, discarding ring buffer content 27 and the buffers currently with DSP 28</p></div><div class="refsect1"><a name="idp1095153140"></a><h2>SNDRV_COMPRESS_DRAIN</h2><p> 29 Play till end of buffers and stop after that 30</p></div><div class="refsect1"><a name="idp1095153804"></a><h2>SNDRV_COMPRESS_IOCTL_VERSION</h2><p> 31 Query the API version 32</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-snd-compr-metadata.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch06.html#idp1095078220">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-struct-snd-enc-vorbis.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct snd_compr_metadata</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">struct snd_enc_vorbis</span></td></tr></table></div></body></html> 33