android_kernel_motorola_sm6225/sound/soc/samsung
Sylwester Nawrocki afcbb3c755 ASoC: samsung: odroid: Fix clock configuration for 44100 sample rate
[ Upstream commit 2b13bee3884926cba22061efa75bd315e871de24 ]

After commit fbeec965b8d1c ("ASoC: samsung: odroid: Fix 32000 sample rate
handling") the audio root clock frequency is configured improperly for
44100 sample rate. Due to clock rate rounding it's 20070401 Hz instead
of 22579000 Hz. This results in a too low value of the PSR clock divider
in the CPU DAI driver and too fast actual sample rate for fs=44100. E.g.
1 kHz tone has actual 1780 Hz frequency (1 kHz * 20070401/22579000 * 2).

Fix this by increasing the correction passed to clk_set_rate() to take
into account inaccuracy of the EPLL frequency properly.

Fixes: fbeec965b8d1c ("ASoC: samsung: odroid: Fix 32000 sample rate handling")
Reported-by: JaeChul Lee <jcsing.lee@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-05-10 17:54:06 +02:00
..
arndale_rt5631.c Merge remote-tracking branches 'asoc/topic/au1x', 'asoc/topic/bcm2835', 'asoc/topic/blackfin' and 'asoc/topic/card' into asoc-next 2015-08-30 15:52:41 +01:00
bells.c ASoC: don't use rtd->codec on samsung/bells 2017-12-05 12:44:52 +00:00
dma.h ASoC: samsung: Remove unused now unused struct s3c_dma_params 2016-08-08 11:55:20 +01:00
dmaengine.c ASoC: Revert "samsung: Remove unneeded initialization of chan_name" 2017-01-23 18:16:33 +00:00
h1940_uda1380.c ASoC: samsung: Remove superfluous snd_soc_jack_free_gpios() call 2017-08-22 13:39:02 +01:00
i2s-regs.h ASoC: samsung: i2s: Define the parameters list for SAMSUNG_I2S_OPCLK 2018-02-14 12:10:16 +00:00
i2s.c ASoC: samsung: Prevent clk_get_rate() calls in atomic context 2019-03-23 20:09:44 +01:00
i2s.h ASoC: samsung: i2s: Define the parameters list for SAMSUNG_I2S_OPCLK 2018-02-14 12:10:16 +00:00
idma.c ASoC: samsung: idma: replace platform to component 2018-02-12 11:45:31 +00:00
idma.h ASoC: Fix __iomem annotation for IDMA registers 2011-11-29 17:28:16 +00:00
jive_wm8750.c ASoC: samsung: make snd_soc_ops const 2017-08-17 18:09:39 +01:00
Kconfig ASoC: samsung: Add Odroid ASoC machine driver 2017-04-21 18:27:58 +01:00
littlemill.c ASoC: wm8993/wm8994/wm8958: replace codec to component 2018-02-12 11:38:50 +00:00
lowland.c ASoC: wm5100: replace codec to component 2018-02-12 09:39:53 +00:00
Makefile ASoC: samsung: clean makefile about inexistant files 2018-02-12 11:47:49 +00:00
neo1973_wm8753.c ASoC: neo1973_wm8753: Use static DAI format setup 2015-01-06 17:34:30 +00:00
odroid.c ASoC: samsung: odroid: Fix clock configuration for 44100 sample rate 2019-05-10 17:54:06 +02:00
pcm.c ASoC: samsung: pcm: Handle return value of clk_prepare_enable. 2017-07-26 13:00:24 +01:00
pcm.h
regs-i2s-v2.h
regs-iis.h ASoC: samsung: Trivial cleanups in header files 2013-12-30 12:05:56 +00:00
rx1950_uda1380.c ASoC: samsung: Remove superfluous snd_soc_jack_free_gpios() call 2017-08-22 13:39:02 +01:00
s3c-i2s-v2.c ASoC: samsung: Add proper error paths to s3c24xx I2S driver 2017-07-28 10:58:31 +01:00
s3c-i2s-v2.h ASoC: samsung: Add proper error paths to s3c24xx I2S driver 2017-07-28 10:58:31 +01:00
s3c24xx-i2s.c ASoC: samsung: s3c24xx: Handle return value of clk_prepare_enable. 2017-07-26 13:00:18 +01:00
s3c24xx-i2s.h
s3c24xx_simtec.c ASoC: samsung: make snd_soc_ops const 2017-08-17 18:09:39 +01:00
s3c24xx_simtec.h
s3c24xx_simtec_hermes.c ASoC: samsung: drop owner assignment from platform_drivers 2014-10-20 16:22:13 +02:00
s3c24xx_simtec_tlv320aic23.c ASoC: samsung: drop owner assignment from platform_drivers 2014-10-20 16:22:13 +02:00
s3c24xx_uda134x.c ASoC: s3c24xx_uda134x: Remove unnecessary function call 2017-08-21 17:10:53 +01:00
s3c2412-i2s.c ASoC: samsung: Add proper error paths to s3c24xx I2S driver 2017-07-28 10:58:31 +01:00
s3c2412-i2s.h
smartq_wm8987.c ASoC: samsung: Remove superfluous snd_soc_jack_free_gpios() call 2017-08-22 13:39:02 +01:00
smdk_spdif.c ASoC: samsung: make snd_soc_ops const 2017-08-17 18:09:39 +01:00
smdk_wm8580.c ASoC: samsung: smdk_wm8580: remove unused ‘bfs’ 2016-12-15 11:34:44 +00:00
smdk_wm8994.c ASoC: smdk_wm8994: Use card DAPM context to access widgets 2015-05-04 13:51:19 +01:00
smdk_wm8994pcm.c ASoC: samsung: Remove unused now unused struct s3c_dma_params 2016-08-08 11:55:20 +01:00
snow.c ASoC: samsung: Add HDMI audio support for Snow 2018-03-13 09:20:41 -07:00
spdif.c ASoC: samsung: spdif: Handle return value of clk_prepare_enable. 2017-07-26 13:00:30 +01:00
spdif.h
speyside.c ASoC: wm8996: replace codec to component 2018-02-12 09:42:25 +00:00
tm2_wm5110.c Merge remote-tracking branches 'asoc/topic/arizona', 'asoc/topic/atmel', 'asoc/topic/bd28623', 'asoc/topic/blackfin' and 'asoc/topic/bt-sco' into asoc-next 2018-03-28 10:29:01 +08:00
tobermory.c ASoC: wm8962: replace codec to component 2018-02-12 09:42:21 +00:00