]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ASoC: sun8i-codec: Enable all supported sample rates
authorSamuel Holland <samuel@sholland.org>
Wed, 14 Oct 2020 06:19:33 +0000 (01:19 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 26 Oct 2020 14:56:58 +0000 (14:56 +0000)
commitc2b751d769669467da1247c9c6c536a494c9c96e
tree209fda169248218cce4ac5294b3674706dee50b7
parente557148ac220b43bc6cbc06333f56b1c61e90825
ASoC: sun8i-codec: Enable all supported sample rates

The system sample rate programmed into the hardware is really a clock
divider from SYSCLK to the ADC and DAC. Since we support two SYSCLK
frequencies, we can use all sample rates corresponding to one of those
frequencies divided by any available divisor.

This commit enables support for those sample rates. It also stops
advertising support for a 64 kHz sample rate, which is not supported.

Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20201014061941.4306-10-samuel@sholland.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun8i-codec.c