]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commitf66f898e953d56779367a6cbc39cbb4808b208c0
treed0a7c9d3d6f9349080d5beca852723cd1574a1f6
parentba5295e55dd941425b10924f4f5c7af6eac4a1cb
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