[alsa-devel] [PATCH] ASoC:pcm512x: Fix divide by zero issue.

Mark Brown broonie at kernel.org
Sun Mar 22 17:19:56 CET 2015


On Fri, Mar 20, 2015 at 09:13:45PM +0000, Howard Mitchell wrote:
> 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.

Applied, thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20150322/8e30678a/attachment.sig>


More information about the Alsa-devel mailing list