Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f073faa7 authored by Howard Mitchell's avatar Howard Mitchell Committed by Mark Brown
Browse files

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: default avatarHoward Mitchell <hm@hmbedded.co.uk>
Signed-off-by: default avatarMark Brown <broonie@sirena.org.uk>
Cc: stable@vger.kernel.org
parent 4d9b13c7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment