diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-01-11 10:24:43 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-01-14 21:42:34 +0100 |
commit | e3a9269f874067fcefc5eb8037466161fb0fe3f4 (patch) | |
tree | 5d5d71d96c19cd786fd14e2ccfe50d22ab962c3a /sound/soc/s6000 | |
parent | ASoC: s6000: Don't mix SNDRV_PCM_RATE_CONTINUOUS with specific rates (diff) | |
download | linux-e3a9269f874067fcefc5eb8037466161fb0fe3f4.tar.xz linux-e3a9269f874067fcefc5eb8037466161fb0fe3f4.zip |
ALSA: Add helper function for intersecting two rate masks
A bit of special care is necessary when creating the intersection of two rate
masks. This comes from the special meaning of the SNDRV_PCM_RATE_CONTINUOUS and
SNDRV_PCM_RATE_KNOT bits, which needs special handling when intersecting two
rate masks. SNDRV_PCM_RATE_CONTINUOUS means the hardware supports all rates in a
specific interval. SNDRV_PCM_RATE_KNOT means the hardware supports a set of
discrete rates specified by a list constraint. For all other cases the supported
rates are specified directly in the rate mask.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/s6000')
0 files changed, 0 insertions, 0 deletions