1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>PCM Format Helpers</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="ch02.html" title="Chapter&#160;2.&#160;PCM API"><link rel="prev" href="API-pcm-format-to-bits.html" title="pcm_format_to_bits"><link rel="next" href="API-snd-pcm-format-signed.html" title="snd_pcm_format_signed"></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">PCM Format Helpers</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-pcm-format-to-bits.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;2.&#160;PCM API</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-snd-pcm-format-signed.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="idp1094170524"></a>PCM Format Helpers</h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="refentrytitle"><a href="API-snd-pcm-format-signed.html"><span class="phrase">snd_pcm_format_signed</span></a></span><span class="refpurpose"> &#8212; 
2  Check the PCM format is signed linear
3 </span></dt><dt><span class="refentrytitle"><a href="API-snd-pcm-format-unsigned.html"><span class="phrase">snd_pcm_format_unsigned</span></a></span><span class="refpurpose"> &#8212; 
4     Check the PCM format is unsigned linear
5 </span></dt><dt><span class="refentrytitle"><a href="API-snd-pcm-format-linear.html"><span class="phrase">snd_pcm_format_linear</span></a></span><span class="refpurpose"> &#8212; 
6     Check the PCM format is linear
7 </span></dt><dt><span class="refentrytitle"><a href="API-snd-pcm-format-little-endian.html"><span class="phrase">snd_pcm_format_little_endian</span></a></span><span class="refpurpose"> &#8212; 
8     Check the PCM format is little-endian
9 </span></dt><dt><span class="refentrytitle"><a href="API-snd-pcm-format-big-endian.html"><span class="phrase">snd_pcm_format_big_endian</span></a></span><span class="refpurpose"> &#8212; 
10     Check the PCM format is big-endian
11 </span></dt><dt><span class="refentrytitle"><a href="API-snd-pcm-format-width.html"><span class="phrase">snd_pcm_format_width</span></a></span><span class="refpurpose"> &#8212; 
12     return the bit-width of the format
13 </span></dt><dt><span class="refentrytitle"><a href="API-snd-pcm-format-physical-width.html"><span class="phrase">snd_pcm_format_physical_width</span></a></span><span class="refpurpose"> &#8212; 
14     return the physical bit-width of the format
15 </span></dt><dt><span class="refentrytitle"><a href="API-snd-pcm-format-size.html"><span class="phrase">snd_pcm_format_size</span></a></span><span class="refpurpose"> &#8212; 
16     return the byte size of samples on the given format
17 </span></dt><dt><span class="refentrytitle"><a href="API-snd-pcm-format-silence-64.html"><span class="phrase">snd_pcm_format_silence_64</span></a></span><span class="refpurpose"> &#8212; 
18     return the silent data in 8 bytes array
19 </span></dt><dt><span class="refentrytitle"><a href="API-snd-pcm-format-set-silence.html"><span class="phrase">snd_pcm_format_set_silence</span></a></span><span class="refpurpose"> &#8212; 
20     set the silence data on the buffer
21 </span></dt><dt><span class="refentrytitle"><a href="API-snd-pcm-limit-hw-rates.html"><span class="phrase">snd_pcm_limit_hw_rates</span></a></span><span class="refpurpose"> &#8212; 
22     determine rate_min/rate_max fields
23 </span></dt><dt><span class="refentrytitle"><a href="API-snd-pcm-rate-to-rate-bit.html"><span class="phrase">snd_pcm_rate_to_rate_bit</span></a></span><span class="refpurpose"> &#8212; 
24     converts sample rate to SNDRV_PCM_RATE_xxx bit
25 </span></dt><dt><span class="refentrytitle"><a href="API-snd-pcm-rate-bit-to-rate.html"><span class="phrase">snd_pcm_rate_bit_to_rate</span></a></span><span class="refpurpose"> &#8212; 
26     converts SNDRV_PCM_RATE_xxx bit to sample rate
27 </span></dt><dt><span class="refentrytitle"><a href="API-snd-pcm-rate-mask-intersect.html"><span class="phrase">snd_pcm_rate_mask_intersect</span></a></span><span class="refpurpose"> &#8212; 
28     computes the intersection between two rate masks
29 </span></dt></dl></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-pcm-format-to-bits.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch02.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-snd-pcm-format-signed.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">pcm_format_to_bits</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">snd_pcm_format_signed</span></td></tr></table></div></body></html>
30