1SND_PCM_RATE_RANGE_T(9)             PCM API            SND_PCM_RATE_RANGE_T(9)
2
3
4

NAME

6       snd_pcm_rate_range_to_bits - converts rate range to SNDRV_PCM_RATE_xxx
7       bit
8

SYNOPSIS

10       unsigned int snd_pcm_rate_range_to_bits(unsigned int rate_min,
11                                               unsigned int rate_max);
12

ARGUMENTS

14       rate_min
15           the minimum sample rate
16
17       rate_max
18           the maximum sample rate
19

THIS FUNCTION HAS AN IMPLICIT ASSUMPTION

21       the rates in the given range have only the pre-defined rates like 44100
22       or 16000.
23

RETURN

25       The SNDRV_PCM_RATE_xxx flag that corresponds to the given rate range,
26       or SNDRV_PCM_RATE_KNOT for an unknown range.
27
29Kernel Hackers Manual 3.10         June 2019           SND_PCM_RATE_RANGE_T(9)
Impressum