android_kernel_oneplus_msm8998/sound/soc/fsl
Nicolin Chen 599c76c923 ASoC: fsl_esai: Fix divisor calculation failure at lower ratio
commit c656941df9bc80f7ec65b92ca73c42f8b0b62628 upstream.

When the desired ratio is less than 256, the savesub (tolerance)
in the calculation would become 0. This will then fail the loop-
search immediately without reporting any errors.

But if the ratio is smaller enough, there is no need to calculate
the tolerance because PM divisor alone is enough to get the ratio.

So a simple fix could be just to set PM directly instead of going
into the loop-search.

Reported-by: Marek Vasut <marex@denx.de>
Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Tested-by: Marek Vasut <marex@denx.de>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-02 07:53:42 -07:00
..
efika-audio-fabric.c
eukrea-tlv320.c
fsl-asoc-card.c Merge remote-tracking branches 'asoc/topic/dwc', 'asoc/topic/es8328', 'asoc/topic/fsl' and 'asoc/topic/fsl-card' into asoc-next 2015-10-26 11:16:03 +09:00
fsl_asrc.c
fsl_asrc.h
fsl_asrc_dma.c
fsl_dma.c
fsl_dma.h
fsl_esai.c ASoC: fsl_esai: Fix divisor calculation failure at lower ratio 2018-05-02 07:53:42 -07:00
fsl_esai.h
fsl_sai.c Merge remote-tracking branches 'asoc/fix/davinci', 'asoc/fix/es8328', 'asoc/fix/fsl-sai', 'asoc/fix/rockchip', 'asoc/fix/sgtl5000' and 'asoc/fix/wm8974' into asoc-linus 2015-12-23 00:23:27 +00:00
fsl_sai.h
fsl_spdif.c ASoC: fsl_spdif: Add driver suspend and resume to support MEGA Fast 2015-10-05 17:26:17 +01:00
fsl_spdif.h
fsl_ssi.c ASoC: fsl_ssi: AC'97 ops need regmap, clock and cleaning up on failure 2018-01-02 20:33:22 +01:00
fsl_ssi.h
fsl_ssi_dbg.c
fsl_utils.c
fsl_utils.h
imx-audmux.c
imx-audmux.h
imx-es8328.c
imx-mc13783.c
imx-pcm-dma.c
imx-pcm-fiq.c
imx-pcm.h
imx-sgtl5000.c
imx-spdif.c ASoC: imx-spdif: add snd_soc_pm_ops for spdif machine driver 2015-10-05 17:25:45 +01:00
imx-ssi.c ASoC: imx-ssi: Fix DAI hardware signal inversions 2015-09-29 17:28:33 +01:00
imx-ssi.h
imx-wm8962.c
Kconfig ASoC: fsl: clarify ac97 dependency 2015-11-25 11:56:10 +00:00
Makefile
mpc5200_dma.c
mpc5200_dma.h
mpc5200_psc_ac97.c
mpc5200_psc_ac97.h
mpc5200_psc_i2s.c
mpc8610_hpcd.c powerpc/fsl: Move fsl_guts.h out of arch/powerpc 2015-10-21 18:05:50 -05:00
mx27vis-aic32x4.c
p1022_ds.c powerpc/fsl: Move fsl_guts.h out of arch/powerpc 2015-10-21 18:05:50 -05:00
p1022_rdk.c powerpc/fsl: Move fsl_guts.h out of arch/powerpc 2015-10-21 18:05:50 -05:00
pcm030-audio-fabric.c
phycore-ac97.c
wm1133-ev1.c