summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorHoward Mitchell <hm@hmbedded.co.uk>2015-03-20 22:13:45 +0100
committerMark Brown <broonie@kernel.org>2015-03-23 07:22:18 +0100
commitf073faa73626f41db7050a69edd5074c53ce6d6c (patch)
tree1e762fd2e3a730e66fae5025592c152fab82e51f /crypto
parentASoC: pcm512x: Add 'Analogue' prefix to analogue volume controls (diff)
downloadlinux-f073faa73626f41db7050a69edd5074c53ce6d6c.tar.xz
linux-f073faa73626f41db7050a69edd5074c53ce6d6c.zip
ASoC: pcm512x: Fix divide by zero issue
If den=1 and pllin_rate>20MHz then den and num are adjusted to 0 causing a divide by zero error a few lines further on. Therefore this patch correctly scales num and den such that pllin_rate/den < 20MHz as required in the device data sheet. Signed-off-by: Howard Mitchell <hm@hmbedded.co.uk> Signed-off-by: Mark Brown <broonie@sirena.org.uk> Cc: stable@vger.kernel.org
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions