ALSA: pcm: Add snd_pcm_rate_range_to_bits()
authorMengdong Lin <mengdong.lin@linux.intel.com>
Fri, 15 Jan 2016 08:13:10 +0000 (16:13 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 5 Feb 2016 18:49:00 +0000 (18:49 +0000)
commit3bdff244a2bcbde37ec33bf3cdde4638049c6c38
tree303301fb742e1719b42a6c5456a7c167483623b1
parent92e963f50fc74041b5e9e744c330dca48e04f08d
ALSA: pcm: Add snd_pcm_rate_range_to_bits()

This helper function can convert a given sample rate range to
SNDRV_PCM_RATE_xxx bits.

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Acked-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/pcm.h
sound/core/pcm_misc.c