ASoC: tas2770: Fix setting of high sample rates
Subsystems (3)
PATCH 1/1 ASoC: tas2770: Fix setting of high sample rates
Although the codec advertises support for 176.4 and 192 ksps, without this fix setting those sample rates fails with EINVAL at hw_params time.
---
The bug has been found and the fix tested on an Apple Mac mini (M1, 2020) which technically does not contain TAS2770 but a TAS5770L part which appears functionally equivalent.
sound/soc/codecs/tas2770.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/tas2770.c +2 -2
@@ -291,11 +291,11 @@ static int tas2770_set_samplerate(struct tas2770_priv *tas2770, int samplerate) ramp_rate_val =TAS2770_TDM_CFG_REG0_SMP_44_1KHZ |TAS2770_TDM_CFG_REG0_31_88_2_96KHZ ;break ; -case 19200 : +case 192000 : ramp_rate_val =TAS2770_TDM_CFG_REG0_SMP_48KHZ |TAS2770_TDM_CFG_REG0_31_176_4_192KHZ ;break ; -case 17640 : +case 176400 : ramp_rate_val =TAS2770_TDM_CFG_REG0_SMP_44_1KHZ |TAS2770_TDM_CFG_REG0_31_176_4_192KHZ ;break ;
--
2.30.1 (Apple Git-130)
Mark Brown
maintainerQuoted 4 lines · Martin Povišer
Although the codec advertises support for 176.4 and 192 ksps, without this fix setting those sample rates fails with EINVAL at
hw_paramstime.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-linus
Thanks!
[1/1] ASoC: tas2770: Fix setting of high sample rates
commit: 80d5be1a057e05f01d66e986cfd34d71845e5190
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark