]> 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)
commitf01b1544141adbee7fd616a7d39eff7855b4ae1b
tree7cadcc37ceec621a70c0f1f276f284f2687bbf9c
parentb4e6807a4a5b92756764c9d402f4b55f0b48f5b7
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