ASoC: fsl-ssi: Fix bitclock calculation for master mode
authorJuergen Borleis <jbe@pengutronix.de>
Fri, 3 Jul 2015 10:39:36 +0000 (12:39 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 7 Jul 2015 13:40:02 +0000 (14:40 +0100)
commitebac95a9208e6b5f134df8518df1bfd1b3fee354
treef612d9c922509d9877b13125450b8f23c4673467
parentd770e558e21961ad6cfdf0ff7df0eb5d7d4f0754
ASoC: fsl-ssi: Fix bitclock calculation for master mode

According to the datasheet 'pm', 'psr' and 'div2' should never be all 0.
Since commit 541b03ad6cfe ("ASoC: fsl_ssi: Fix the incorrect limitation of
the bit clock rate") this can happen, because for some bitclock rates
'pm' = 0 seems to be a valid choice but does not work due to hardware
restrictions. This results into a bad hardware behaviour (slow audio for
example). Feature tested on a i.MX25.

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_ssi.c