]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Add snd_interval_ranges() and snd_pcm_hw_constraint_ranges()
authorPeter Rosin <peda@axentia.se>
Wed, 28 Jan 2015 14:16:06 +0000 (15:16 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 28 Jan 2015 19:27:15 +0000 (19:27 +0000)
commite2c632ef6d5d58ea2cd7ed1b8b77bf1df9a53f86
treed0a7c9d3d6f9349080d5beca852723cd1574a1f6
parentdc8f21c0fc1fb47a086024d4ffb1575a03d946b2
ALSA: pcm: Add snd_interval_ranges() and snd_pcm_hw_constraint_ranges()

Add helper functions to allow drivers to specify several disjoint
ranges for a variable. In particular, there is a codec (PCM512x) that
has a hole in its supported range of rates, due to PLL and divider
restrictions.

This is like snd_pcm_hw_constraint_list(), but for ranges instead of
points.

Signed-off-by: Peter Rosin <peda@axentia.se>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/pcm.h
sound/core/pcm_lib.c