1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct snd_compr</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-ops.html" title="struct snd_compr_ops"><link rel="next" href="ch07.html" title="Chapter 7. ASoC"></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</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-snd-compr-ops.html">Prev</a> </td><th width="60%" align="center">Compress Offload API</th><td width="20%" align="right"> <a accesskey="n" href="ch07.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-snd-compr"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct snd_compr — 2 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 3struct snd_compr { 4 const char * name; 5 struct device dev; 6 struct snd_compr_ops * ops; 7 void * private_data; 8 struct snd_card * card; 9 unsigned int direction; 10 struct mutex lock; 11 int device; 12}; </pre></div><div class="refsect1"><a name="idp1095220572"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">name</span></dt><dd><p> 13 DSP device name 14 </p></dd><dt><span class="term">dev</span></dt><dd><p> 15 associated device instance 16 </p></dd><dt><span class="term">ops</span></dt><dd><p> 17 pointer to DSP callbacks 18 </p></dd><dt><span class="term">private_data</span></dt><dd><p> 19 pointer to DSP pvt data 20 </p></dd><dt><span class="term">card</span></dt><dd><p> 21 sound card pointer 22 </p></dd><dt><span class="term">direction</span></dt><dd><p> 23 Playback or capture direction 24 </p></dd><dt><span class="term">lock</span></dt><dd><p> 25 device lock 26 </p></dd><dt><span class="term">device</span></dt><dd><p> 27 device id 28 </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-compr-ops.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="ch07.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct snd_compr_ops</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 7. ASoC</td></tr></table></div></body></html> 29