linux_dsm_epyc7002/sound/soc/samsung
Sylwester Nawrocki 1d22c337dc
ASoC: samsung: odroid: Fix 32000 sample rate handling
In case of sample rates lower than 44100 currently there is too low MCLK
frequency set for the CODEC. Playback fails with following errors:

$ speaker-test -c2 -t sine -f 1500 -l2 -r 32000

Sine wave rate is 1500.0000Hz
Rate set to 32000Hz (requested 32000Hz)
Buffer size range from 128 to 131072
Period size range from 64 to 65536
Using max buffer size 131072
Periods = 4
Unable to set hw params for playback: Invalid argument
Setting of hwparams failed: Invalid argument

[  497.883700] max98090 1-0010: Invalid master clock frequency

To fix this the I2S root clock's frequency is increased, depending
on sampling rate.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
2018-03-19 09:42:56 +08: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: i2s: Fix rclk_srcrate handling 2018-03-12 11:03:13 -07: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: Vendor drivers get a link's runtime by snd_soc_get_pcm_runtime() 2015-11-18 18:32:24 +00:00
lowland.c ASoC: lowland: Use card DAPM context to access widgets 2015-05-04 13:51:19 +01: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 32000 sample rate handling 2018-03-19 09:42:56 +08:00
pcm.c ASoC: samsung: pcm: Handle return value of clk_prepare_enable. 2017-07-26 13:00:24 +01:00
pcm.h ASoC: SAMSUNG: Move PCM specific definitions into pcm.c 2011-01-10 11:38:22 +00:00
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
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_simtec.c ASoC: samsung: make snd_soc_ops const 2017-08-17 18:09:39 +01:00
s3c24xx_simtec.h
s3c24xx_uda134x.c ASoC: s3c24xx_uda134x: Remove unnecessary function call 2017-08-21 17:10:53 +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
s3c2412-i2s.c ASoC: samsung: Add proper error paths to s3c24xx I2S driver 2017-07-28 10:58:31 +01:00
s3c2412-i2s.h
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
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: Vendor drivers get a link's runtime by snd_soc_get_pcm_runtime() 2015-11-18 18:32:24 +00:00
tm2_wm5110.c ASoC: samsung: Add support for HDMI audio on TM2 board 2018-02-14 12:10:19 +00:00
tobermory.c ASoC: Vendor drivers get a link's runtime by snd_soc_get_pcm_runtime() 2015-11-18 18:32:24 +00:00