]> 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)
commit6e48aa70498f0e14632215783d0bbaa671838b60
treea50d0efb01cce2832eaae77f9edd70fd64ba2db0
parentaa2b39fd1806ec40d460ec8df668d789dd8bd697
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