]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: fsl_esai: Fix incorrect condition within ratio range check for FP
authorNicolin Chen <Guangyu.Chen@freescale.com>
Tue, 6 May 2014 08:55:59 +0000 (16:55 +0800)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:16:50 +0000 (21:16 -0600)
commit7a9a12bd9e17fc0222a949c1443db9bc6a436fd0
treea11fe430ca341d27cac63946d344bc5034905722
parent83ee9b9c07a2098066776a05f588e9d4a90248f7
ASoC: fsl_esai: Fix incorrect condition within ratio range check for FP

The range here from 1 to 16 is confined to FP divider only while the
sck_div indicates if the calculation contains PSR and PM dividers. So
for the case using PSR and PM since the sck_div is true, the range of
ratio would simply become bigger than 16.

So this patch fixes the condition here and adds one line comments to
make the purpose here clear.

Signed-off-by: Nicolin Chen <Guangyu.Chen@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit 89e47f62cf3eea7ad5e3d7d72ea846be37d6e352)
sound/soc/fsl/fsl_esai.c