From: Lars-Peter Clausen Date: Sat, 11 Jan 2014 09:24:43 +0000 (+0100) Subject: ALSA: Add helper function for intersecting two rate masks X-Git-Tag: v3.14-rc1~143^2~1^2^2~2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3a9269f874067fcefc5eb8037466161fb0fe3f4;p=pandora-kernel.git 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 Reviewed-by: Takashi Iwai Signed-off-by: Mark Brown --- Reading git-diff-tree failed