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)
commit7a6b937ec4e256b028be9b4e244d40287282c825
treea50d0efb01cce2832eaae77f9edd70fd64ba2db0
parent342cacb92d627a7cc8df1b5fe3e404530164ea17
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