Howard Mitchell f073faa736 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
2015-03-22 23:22:18 -07:00
..
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2011-08-17 00:53:54 +09:00
2014-02-19 13:36:15 +09:00
2014-02-19 13:36:15 +09:00
2014-02-19 13:36:15 +09:00
2015-01-15 11:06:24 +00:00
2014-12-14 16:10:09 -08:00
2014-04-07 10:48:50 +01:00
2013-02-14 17:27:17 +00:00
2014-08-16 17:17:13 -05:00
2014-08-16 17:17:13 -05:00
2014-12-14 16:10:09 -08:00
2012-04-01 11:28:24 +01:00
2012-05-18 16:42:20 +01:00
2014-07-28 17:49:20 +01:00
2011-09-21 15:52:23 +01:00
2014-07-02 20:49:25 +01:00
2013-05-25 10:33:30 -04:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2012-01-26 16:07:55 +00:00
2013-08-13 11:31:56 +01:00