ASoC: mcasp: don't override bclk divider if it was provided by the machine
authorDaniel Mack <zonque@gmail.com>
Wed, 16 Jul 2014 12:04:41 +0000 (14:04 +0200)
committerMark Brown <broonie@linaro.org>
Wed, 16 Jul 2014 21:15:15 +0000 (22:15 +0100)
commit8267525c99f7a8ddb71a6f3d56cf17d4073a9973
treeba85d477bfedb1fbc91f56229cb8afdeb4ba22c9
parentf3f9cfa8a1a78a3bc0dc6b7d5c26baeb07a75499
ASoC: mcasp: don't override bclk divider if it was provided by the machine

If a machine driver provides an BCLK divider to the McASP driver, skip the
automatic calculation.

This fixes machines on which the physical sample transport always works
in 32 bits, even though not all of them are actually used.
snd_soc_params_to_bclk() will fail to address such cases properly.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/davinci/davinci-mcasp.c