]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sun8i-codec: Generalize AIF clock control
authorSamuel Holland <samuel@sholland.org>
Wed, 14 Oct 2020 06:19:39 +0000 (01:19 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 26 Oct 2020 14:57:04 +0000 (14:57 +0000)
commit250521e802744a2d4283e70b9c15f1aa27b1966e
treea50d0efb01cce2832eaae77f9edd70fd64ba2db0
parent4977c72e3ef9b30f25d28a9f7e2fd392b3b49342
ASoC: sun8i-codec: Generalize AIF clock control

The AIF clock control register has the same layout for all three AIFs.
The only difference between them is that AIF3 is missing some fields. We
can reuse the same register field definitions for all three registers,
and use the DAI ID to select the correct register address.

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