summaryrefslogtreecommitdiff
path: root/sound/sound_firmware.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-01-11 10:24:40 +0100
committerMark Brown <broonie@linaro.org>2014-01-14 20:41:57 +0000
commit817873f4b155b22a24c48d6a38ee32007e2d856e (patch)
treeb1dd52e13d803783dd37d713d9433f45bde1ed4c /sound/sound_firmware.c
parent64a9aa9cf57dd551a9ae9bf48f5e63be608aae72 (diff)
ASoC: pcm: Properly initialize hw->rate_max
If none of the components (CODEC or CPU DAI) sets a maximum sample rate we'll end up with the rate_max field of the runtime hardware set to 0. (Note that it is still possible for the components to constrain the supported sample rates using other methods, e.g. setting a list constraint) If rate_max is 0 this means that the sound card doesn't support any rates at all, which is not the desired result. So initialize rate_max to UINT_MAX. For symmetry reasons also set rate_min to 0. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/sound_firmware.c')
0 files changed, 0 insertions, 0 deletions