]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: cs42l42: Fix bclk calculation for mono
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Thu, 29 Jul 2021 17:09:29 +0000 (18:09 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 29 Jul 2021 17:51:13 +0000 (18:51 +0100)
commit3291fd76f74eef76778657fc4b31b0c92244dd9d
treebb87d3e206d4add098d4270f2b2d486b7253818c
parentcaf51b40c8847fd630883df5c41cc9b37042e9a5
ASoC: cs42l42: Fix bclk calculation for mono

An I2S frame always has a left and right channel slot even if mono
data is being sent. So if channels==1 the actual bitclock frequency
is 2 * snd_soc_params_to_bclk(params).

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Fixes: 0c6918685203 ("ASoC: cs42l42: Use bclk from hw_params if set_sysclk was not called")
Link: https://lore.kernel.org/r/20210729170929.6589-3-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l42.c