linux-stable/sound/soc/fsl
Nicolin Chen 6c8ca30eec ASoC: fsl_ssi: Don't try to round-up for PM divisor calculation
According to i.MX6 Series Reference Manual, the formula to calculate
the sys clock is

sysclk rate = bclk rate * (div2 + 1) * (7 * psr + 1) * (pm + 1) * 2

Commit aafa85e71a ("ASoC: fsl_ssi: Add DAI master mode support for
SSI on i.MX series") added the divisor calculation which relies on
the clk_round_rate(). However, at that time, clk_round_rate() didn't
provide closest clock rates for some cases because it might not use
a correct rounding policy. So using the original formula (pm + 1) for
PM divisor was not able to give us a desired clock rate. And then we
used (pm + 2) to do the trick.

However, the clk-divider driver has been refined a lot since commit
b11d282dbe ("clk: divider: fix rate calculation for fractional rates")
Now using (pm + 2) trick would result an incorrect clock rate.

So this patch fixes the problem by removing the useless trick.

Reported-by: Stephane Cerveau <scerveau@voxtok.com>
Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2015-03-05 12:23:29 +00:00
..
efika-audio-fabric.c ASoC: fsl: Add .owner to struct snd_soc_card 2011-12-22 17:34:32 +00:00
eukrea-tlv320.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
fsl-asoc-card.c ASoC: fsl-asoc-card: Add slot_width setting for cpu-dai 2014-11-25 12:47:32 +00:00
fsl_asrc.c sound / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM 2014-12-13 00:42:18 +01:00
fsl_asrc.h ASoC: fsl_asrc: Add ASRC ASoC CPU DAI and platform drivers 2014-07-29 19:22:49 +01:00
fsl_asrc_dma.c ASoC: fsl_sarc_dma: Check pair before using it 2014-08-04 15:48:41 +01:00
fsl_dma.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
fsl_dma.h
fsl_esai.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
fsl_esai.h ASoC: fsl_esai: Fix incorrect xDC field width of xCCR registers 2014-12-30 11:29:19 +00:00
fsl_sai.c ASoC: fsl: drop owner assignment from platform_drivers 2014-10-20 16:22:08 +02:00
fsl_sai.h ASoC: fsl-sai: using 'lsb-first' property instead of 'big-endian-data'. 2014-09-01 16:36:42 +01:00
fsl_spdif.c ASoC: fsl: drop owner assignment from platform_drivers 2014-10-20 16:22:08 +02:00
fsl_spdif.h ASoC: fsl_spdif: Add support for output sample rates 96kHz and 192kHz 2014-06-17 15:36:54 +01:00
fsl_ssi.c ASoC: fsl_ssi: Don't try to round-up for PM divisor calculation 2015-03-05 12:23:29 +00:00
fsl_ssi.h ASoC: fsl-ssi: Use regmap 2014-06-01 11:55:08 +01:00
fsl_ssi_dbg.c ASoC: fsl-ssi: Move debugging to seperate file 2014-05-20 23:02:26 +01:00
fsl_utils.c ASoC: fsl-utils: Add fsl_asoc_xlate_tdm_slot_mask() support. 2014-03-25 13:06:43 +00:00
fsl_utils.h ASoC: fsl-utils: Add fsl_asoc_xlate_tdm_slot_mask() support. 2014-03-25 13:06:43 +00:00
imx-audmux.c ASoC: fsl: drop owner assignment from platform_drivers 2014-10-20 16:22:08 +02:00
imx-audmux.h ASoC: imx-audmux: Move definitions to dt-bindings 2013-08-16 11:05:17 +01:00
imx-es8328.c Merge remote-tracking branches 'asoc/fix/88pm860x', 'asoc/fix/fsl', 'asoc/fix/imx', 'asoc/fix/mc13783', 'asoc/fix/rockchip' and 'asoc/fix/simple' into asoc-linus 2014-10-08 16:44:50 +01:00
imx-mc13783.c ASoC: fsl: drop owner assignment from platform_drivers 2014-10-20 16:22:08 +02:00
imx-pcm-dma.c Update imx-sdma cyclic handling to report residue 2014-07-01 12:23:42 +05:30
imx-pcm-fiq.c ASoC: fsl: imx-pcm-fiq: Remove unneeded 'out' label 2014-02-24 14:41:15 +09:00
imx-pcm.h ASoC: fsl: Use devm_snd_dmaengine_pcm_register() 2013-12-02 11:48:54 +00:00
imx-sgtl5000.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
imx-spdif.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
imx-ssi.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
imx-ssi.h ASoC: fsl: imx-ssi: omit ssi counter to avoid harm in unbalanced situation 2013-12-02 11:57:02 +00:00
imx-wm8962.c ASoC: fsl: imx-wm8962: Set the card owner field 2015-01-14 17:13:46 +00:00
Kconfig Merge remote-tracking branches 'asoc/topic/davinci', 'asoc/topic/dmic', 'asoc/topic/drivers', 'asoc/topic/es8328' and 'asoc/topic/fsl' into asoc-next 2014-10-06 12:48:57 +01:00
Makefile ASoC: fsl: add imx-es8328 machine driver 2014-08-16 17:18:07 -05:00
mpc5200_dma.c ASoC: mpc5200_dma: Don't overwrite ac97 device private_data 2014-11-18 15:26:05 +00:00
mpc5200_dma.h ASoC: fsl: mpc5200 combine psc_dma platform data 2012-09-18 23:03:42 -04:00
mpc5200_psc_ac97.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
mpc5200_psc_ac97.h
mpc5200_psc_i2s.c ASoC: fsl: drop owner assignment from platform_drivers 2014-10-20 16:22:08 +02:00
mpc8610_hpcd.c ASoC: fsl: drop owner assignment from platform_drivers 2014-10-20 16:22:08 +02:00
mx27vis-aic32x4.c ASoC: fsl: drop owner assignment from platform_drivers 2014-10-20 16:22:08 +02:00
p1022_ds.c ASoC: fsl: drop owner assignment from platform_drivers 2014-10-20 16:22:08 +02:00
p1022_rdk.c ASoC: fsl: drop owner assignment from platform_drivers 2014-10-20 16:22:08 +02:00
pcm030-audio-fabric.c ASoC: fsl: drop owner assignment from platform_drivers 2014-10-20 16:22:08 +02:00
phycore-ac97.c ASoC: fsl: remove use of imx-fiq-pcm-audio from imx-ssi 2013-05-15 09:27:27 +04:00
wm1133-ev1.c ASoC: wm1133-ev1: Convert to table based DAPM setup 2014-03-03 16:06:20 +08:00