diff options
author | Howard Mitchell <[email protected]> | 2015-03-20 21:13:45 +0000 |
---|---|---|
committer | Mark Brown <[email protected]> | 2015-03-22 23:22:18 -0700 |
commit | f073faa73626f41db7050a69edd5074c53ce6d6c (patch) | |
tree | 1e762fd2e3a730e66fae5025592c152fab82e51f /lib/test-string_helpers.c | |
parent | 4d9b13c7cc803fbde59d7e998f7de2b9a2101c7e (diff) |
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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Cc: [email protected]
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions