1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct snd_compr_runtime</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-enc-flac.html" title="struct snd_enc_flac"><link rel="next" href="API-struct-snd-compr-stream.html" title="struct snd_compr_stream"></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">struct snd_compr_runtime</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-snd-enc-flac.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-compr-stream.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-snd-compr-runtime"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct snd_compr_runtime — 2 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 3struct snd_compr_runtime { 4 snd_pcm_state_t state; 5 struct snd_compr_ops * ops; 6 void * buffer; 7 u64 buffer_size; 8 u32 fragment_size; 9 u32 fragments; 10 u64 total_bytes_available; 11 u64 total_bytes_transferred; 12 wait_queue_head_t sleep; 13 void * private_data; 14}; </pre></div><div class="refsect1"><a name="idp1095183564"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">state</span></dt><dd><p> 15stream state 16 </p></dd><dt><span class="term">ops</span></dt><dd><p> 17pointer to DSP callbacks 18 </p></dd><dt><span class="term">buffer</span></dt><dd><p> 19pointer to kernel buffer, valid only when not in mmap mode or 20DSP doesn't implement copy 21 </p></dd><dt><span class="term">buffer_size</span></dt><dd><p> 22size of the above buffer 23 </p></dd><dt><span class="term">fragment_size</span></dt><dd><p> 24size of buffer fragment in bytes 25 </p></dd><dt><span class="term">fragments</span></dt><dd><p> 26number of such fragments 27 </p></dd><dt><span class="term">total_bytes_available</span></dt><dd><p> 28cumulative number of bytes made available in 29the ring buffer 30 </p></dd><dt><span class="term">total_bytes_transferred</span></dt><dd><p> 31cumulative bytes transferred by offload DSP 32 </p></dd><dt><span class="term">sleep</span></dt><dd><p> 33poll sleep 34 </p></dd><dt><span class="term">private_data</span></dt><dd><p> 35driver private data pointer 36 </p></dd></dl></div></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-enc-flac.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-compr-stream.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct snd_enc_flac</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_compr_stream</span></td></tr></table></div></body></html> 37