OSDN Git Service

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)
commitc8bbc1de9088fedb5d71db7d185c37db18feb2e1
tree7cadcc37ceec621a70c0f1f276f284f2687bbf9c
parent7f97b2ad948343c3be543d12c2965f74bddc34c7
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