From: Lars-Peter Clausen Date: Sat, 11 Jan 2014 09:24:40 +0000 (+0100) Subject: ASoC: pcm: Properly initialize hw->rate_max X-Git-Tag: v3.14-rc1~143^2~1^2^2~2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=817873f4b155b22a24c48d6a38ee32007e2d856e;p=pandora-kernel.git 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed