]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: fsl_xcvr: Add sample rate constraint
authorChancel Liu <chancel.liu@nxp.com>
Tue, 26 Nov 2024 11:54:39 +0000 (20:54 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 9 Dec 2024 13:11:11 +0000 (13:11 +0000)
commitb622b677d255b41cbfce20b66535723933a6b640
tree2d5eafda2d53bdfbfbdd9155d6a13ffb0c7dadb6
parentdaf7a173fc7c4b652f3fe69d3b5aa520976a7d63
ASoC: fsl_xcvr: Add sample rate constraint

Platforms like i.MX93/91 only have one audio PLL. Some sample rates are
not supported. If the PLL source is used for 8kHz series rates, then
11kHz series rates can't be supported. Use fsl_asoc_constrain_rates()
to constrain rates according to PLL sources. This constraint is merely
applicable to playback cases on SPDIF only platforms.

Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Link: https://patch.msgid.link/20241126115440.3929061-4-chancel.liu@nxp.com
Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_xcvr.c