1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>snd_pcm_rate_mask_intersect</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="ch02s02.html" title="PCM Format Helpers"><link rel="prev" href="API-snd-pcm-rate-bit-to-rate.html" title="snd_pcm_rate_bit_to_rate"><link rel="next" href="ch02s03.html" title="PCM Memory Management"></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">snd_pcm_rate_mask_intersect</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-snd-pcm-rate-bit-to-rate.html">Prev</a> </td><th width="60%" align="center">PCM Format Helpers</th><td width="20%" align="right"> <a accesskey="n" href="ch02s03.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-snd-pcm-rate-mask-intersect"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>snd_pcm_rate_mask_intersect — 2 computes the intersection between two rate masks 3 </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">unsigned int <b class="fsfunc">snd_pcm_rate_mask_intersect </b>(</code></td><td>unsigned int <var class="pdparam">rates_a</var>, </td></tr><tr><td> </td><td>unsigned int <var class="pdparam">rates_b</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1094273652"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>rates_a</code></em></span></dt><dd><p> 4 The first rate mask 5 </p></dd><dt><span class="term"><em class="parameter"><code>rates_b</code></em></span></dt><dd><p> 6 The second rate mask 7 </p></dd></dl></div></div><div class="refsect1"><a name="idp1094276292"></a><h2>Description</h2><p> 8 This function computes the rates that are supported by both rate masks passed 9 to the function. It will take care of the special handling of 10 SNDRV_PCM_RATE_CONTINUOUS and SNDRV_PCM_RATE_KNOT. 11</p></div><div class="refsect1"><a name="idp1094277092"></a><h2>Return</h2><p> 12 A rate mask containing the rates that are supported by both rates_a 13 and rates_b. 14</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-snd-pcm-rate-bit-to-rate.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch02s02.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch02s03.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">snd_pcm_rate_bit_to_rate</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> PCM Memory Management</td></tr></table></div></body></html> 15