ASoC: ti: Convert Pandora ASoC to GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 26 Sep 2023 13:25:32 +0000 (15:25 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 2 Oct 2023 13:06:21 +0000 (14:06 +0100)
commit319e6ac143b9e9048e527ab9dd2aabb8fdf3d60f
treeac0f4902b6fd81fe34add02d10996e26ffc64eca
parent1b8a62937e0b23c41956feec778ca7776a01df48
ASoC: ti: Convert Pandora ASoC to GPIO descriptors

The Pandora uses GPIO descriptors pretty much exclusively, but not
for ASoC, so let's fix it. Register the pins in a descriptor table
in the machine since the ASoC device is not using device tree.

Use static locals for the GPIO descriptors because I'm not able
to experient with better state storage on any real hardware. Others
using the Pandora can come afterwards and improve this.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Link: https://lore.kernel.org/r/20230926-descriptors-asoc-ti-v1-4-60cf4f8adbc5@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
arch/arm/mach-omap2/pdata-quirks.c
sound/soc/ti/omap3pandora.c