linux/sound/soc
Nicolin Chen 5996372854 ASoC: fsl_esai: Fix divisor calculation failure at lower ratio
commit c656941df9 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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2018-10-21 08:45:23 +01:00
..
adi ASoC: axi-{spdif,i2s}: Remove SND_DMAENGINE_PCM_FLAG_NO_RESIDUE flag 2014-01-14 21:28:39 +00:00
atmel ASoC: atmel_ssc_dai: fix start event for I2S mode 2015-02-10 13:38:44 +00:00
au1x ASoC: au1x: Fix timeout tests in au1xac97c_ac97_read() 2018-06-16 22:21:53 +01:00
bcm ASoC: bcm: Remove obsoleted Kconfig dependency 2014-01-08 20:00:04 +00:00
blackfin ASoC: blackfin: use samples to set silence 2014-09-17 09:22:05 -07:00
cirrus Merge remote-tracking branch 'asoc/topic/cirrus' into asoc-next 2014-03-13 14:19:11 +00:00
codecs ASoC: ssm2602: Replace reg_default_raw with reg_default 2018-10-21 08:44:56 +01:00
davinci ASoC: davinci-evm: drop un-necessary remove function 2015-05-05 11:09:37 +01:00
dwc ASoC: dwc: correct irq clear method 2015-10-30 13:59:28 +00:00
fsl ASoC: fsl_esai: Fix divisor calculation failure at lower ratio 2018-10-21 08:45:23 +01:00
generic ASoC: simple-card: Fix crash in asoc_simple_card_unref() 2015-02-04 10:58:03 +00:00
intel ASoC: Intel: HSW/BDW only support S16 and S24 formats. 2014-11-13 11:48:30 +00:00
jz4740 Merge remote-tracking branches 'asoc/topic/headers', 'asoc/topic/intel', 'asoc/topic/jz4740', 'asoc/topic/max98090', 'asoc/topic/max98095', 'asoc/topic/mc13783' and 'asoc/topic/multicodec' into asoc-next 2014-05-22 00:23:54 +01:00
kirkwood ASoC: Remove needless snd_soc_dapm_enable_pin() from machine driver inits 2014-05-19 17:19:18 +01:00
mxs Merge remote-tracking branches 'asoc/topic/adsp', 'asoc/topic/atmel', 'asoc/topic/bcm2835', 'asoc/topic/docs', 'asoc/topic/fsl', 'asoc/topic/generic', 'asoc/topic/kirkwood', 'asoc/topic/mc13783', 'asoc/topic/mxs', 'asoc/topic/nuc900', 'asoc/topic/sai', 'asoc/topic/sh', 'asoc/topic/ssm2602', 'asoc/topic/tlv320aic3x', 'asoc/topic/twl4030', 'asoc/topic/ux500', 'asoc/topic/width' and 'asoc/topic/x86' into for-tiwai 2014-01-16 12:44:01 +00:00
nuc900 ASoC: nuc900: Fix a loop timeout test 2018-06-16 22:21:43 +01:00
omap ASoC: omap-mcpdm: Fix irq resource handling 2016-11-20 01:17:16 +00:00
pxa ASoC: fix broken pxa SoC support 2015-10-19 10:54:37 +01:00
s6000 ASoC: s6105-ipcam: Convert to table based DAPM setup 2014-03-13 11:43:30 +00:00
samsung ASoC: s3c24xx: use const snd_soc_component_driver pointer 2016-05-01 00:05:45 +02:00
sh ASoC: rsnd: remove unsupported PAUSE flag 2014-12-01 10:02:11 +00:00
sirf ASoC: sirf: Move the tx rx enable from port to codec, that will not need register sharing 2014-04-14 17:28:17 +01:00
spear ASoC: spear_pcm: Use devm_snd_dmaengine_pcm_register to fix resource leak 2015-09-30 13:20:47 +01:00
tegra Merge remote-tracking branch 'asoc/topic/tegra' into asoc-next 2014-06-03 10:39:59 +01:00
txx9 ASoC: txx9aclc_ac97: Fix kernel crash on probe 2014-02-16 08:36:40 +08:00
ux500 ASoC: mop500_ab8500: Replace instances of rtd->codec->card with rtd->card 2014-05-20 22:55:39 +01:00
Kconfig ASoC: sirf: Add SiRF audio port driver is used by SiRF internal audio codec 2014-03-06 17:20:08 +08:00
Makefile ASoC: sirf: Add SiRF audio port driver is used by SiRF internal audio codec 2014-03-06 17:20:08 +08:00
soc-cache.c ASoC: cache: Fix error code when not using ASoC level cache 2014-06-02 16:08:21 +01:00
soc-compress.c ASoC: compress: Derive substream from stream based on direction 2017-10-12 15:27:50 +01:00
soc-core.c ASoC: Fix use-after-free at card unregistration 2017-09-15 18:29:50 +01:00
soc-dapm.c ASoC: dapm: Fix value setting for _ENUM_DOUBLE MUX's second channel 2017-02-23 03:53:56 +00:00
soc-devres.c ASoC: Export devm_snd_soc_register_platform() 2014-04-22 22:00:42 +01:00
soc-generic-dmaengine-pcm.c ASoC: core: Fix possible NULL pointer dereference of pcm->config 2014-01-16 14:11:49 +00:00
soc-io.c ASoC: Remove ASoC level IO tracing 2014-04-22 13:24:24 +01:00
soc-jack.c ASoC: jack: Add support for GPIO descriptor defined jack pins 2014-05-26 15:26:00 +01:00
soc-pcm.c ASoC: do not close shared backend dailink 2017-11-11 13:32:58 +00:00
soc-utils.c Merge remote-tracking branch 'asoc/topic/dapm' into for-tiwai 2014-01-16 12:42:53 +00:00