summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-11-27 09:58:17 +0100
committerMark Brown <broonie@linaro.org>2013-11-27 16:42:37 +0000
commit17b6c19b34b43a6a8dd5936b3cdbc63d7d1ae186 (patch)
tree650b0fcb23bc682c49e02b54f6812712e6564648 /crypto
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff)
ASoC: pcm: Fix rate_max calculation
In order to make sure that the sample rate is in the supported range of both components the maximum rate of the card should be the minimum of the maximum rate of each components. There is one special case to consider though, if max_rate is set to 0 this means there is no maximum specified, so use min_not_zero() macro which will give use the desired result. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Takashi iwai <tiwai@suse.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions