]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: sun4i-spdif: Add clock multiplier settings
authorGeorge Lander <lander@jagmn.com>
Mon, 11 Nov 2024 16:55:29 +0000 (17:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:50:00 +0000 (12:50 +0100)
commitd79fc69eda732bc3aafe7c24fce89e6cfe4b3bb5
treeb4c32e78bc82bf1ca5a87048219a49076d816c42
parent6a5d02ae6ff815b972a639c8149cb949cd10cc23
ASoC: sun4i-spdif: Add clock multiplier settings

[ Upstream commit 0a2319308de88b9e819c0b43d0fccd857123eb31 ]

There have been intermittent issues with the SPDIF output on H3
and H2+ devices which has been fixed by setting the s_clk to 4
times the audio pll.
Add a quirk for the clock multiplier as not every supported SoC
requires it. Without the multiplier, the audio at normal sampling
rates was distorted and did not play at higher sampling rates.

Fixes: 1bd92af877ab ("ASoC: sun4i-spdif: Add support for the H3 SoC")
Signed-off-by: George Lander <lander@jagmn.com>
Signed-off-by: Marcus Cooper <codekipper@gmail.com>
Link: https://patch.msgid.link/20241111165600.57219-2-codekipper@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/sunxi/sun4i-spdif.c