'\" t .\" Title: snd_pcm_rate_range_to_bits .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: PCM API .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SND_PCM_RATE_RANGE_T" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "PCM API" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" snd_pcm_rate_range_to_bits \- converts rate range to SNDRV_PCM_RATE_xxx bit .SH "SYNOPSIS" .HP \w'unsigned\ int\ snd_pcm_rate_range_to_bits('u .BI "unsigned int snd_pcm_rate_range_to_bits(unsigned\ int\ " "rate_min" ", unsigned\ int\ " "rate_max" ");" .SH "ARGUMENTS" .PP \fIrate_min\fR .RS 4 the minimum sample rate .RE .PP \fIrate_max\fR .RS 4 the maximum sample rate .RE .SH "DESCRIPTION" .PP This function has an implicit assumption: the rates in the given range have only the pre\-defined rates like 44100 or 16000\&. .SH "RETURN" .PP The SNDRV_PCM_RATE_xxx flag that corresponds to the given rate range, or SNDRV_PCM_RATE_KNOT for an unknown range\&. .SH "COPYRIGHT" .br