ASoC: wm8782: Constrain maximum audio rate at runtime
authorJohn Watts <contact@jookia.org>
Mon, 18 Sep 2023 13:15:30 +0000 (23:15 +1000)
committerMark Brown <broonie@kernel.org>
Mon, 18 Sep 2023 13:32:10 +0000 (14:32 +0100)
commit00524a8415aa400567538c0e75a463d517cded7f
tree38465d10845b784e5cefc42ed2316f2607f673df
parent9dc098e3d7297ec895436a799f5faf27d430674c
ASoC: wm8782: Constrain maximum audio rate at runtime

The wm8782 supports up to 192kHz audio when pins are set correctly.
Instead of hardcoding which rates are supported constrain them at
runtime based on a max_rate variable.

Signed-off-by: John Watts <contact@jookia.org>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230918131532.2257615-2-contact@jookia.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8782.c