]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sun4i-i2s: Update registers for more channels
authorSamuel Holland <samuel@sholland.org>
Thu, 3 Feb 2022 02:01:14 +0000 (20:01 -0600)
committerMark Brown <broonie@kernel.org>
Thu, 3 Feb 2022 11:30:56 +0000 (11:30 +0000)
commit978dc82a236316501ae0a3d6fd7b8d4f949c361e
tree7cadcc37ceec621a70c0f1f276f284f2687bbf9c
parent2f8f2d6146bd9614e2f228bc78ab9f994e0586d2
ASoC: sun4i-i2s: Update registers for more channels

H6 expands the number of channels in each direction to 16, so the slot
number fields need to be expanded from 3 to 4 bits each.

R329/D1 expand that further by allowing each of the 16 slots to map to
any of 4 data pins. For TX, the configuration of each pin is
independent, so there is a copy of the mapping registers for each pin.
For RX, each of the 16 slots can map to only one pin, so the registers
were changed to add the pin selection inline with the channel mapping.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220203020116.12279-3-samuel@sholland.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun4i-i2s.c