ASoC: samsung: speyside: Convert to GPIO descriptor
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 3 Mar 2025 08:41:44 +0000 (09:41 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 4 Mar 2025 12:29:37 +0000 (12:29 +0000)
commitda9146c19b1774926148ff271c4a3dc8d7891b18
tree83da812ac50b66ac4daf514d6445538743bf254a
parent5c06f7f3d8374df1cec3b353306a4d1032a60f44
ASoC: samsung: speyside: Convert to GPIO descriptor

The Speyside ASoC uses a single GPIO from the WM8996
that we can provide from the local offset on that chip
rather than from the global GPIO numberspace as is being
done currently.

The offset 2 was done by calculating the base offset
for the CODEC (i.e. wm8996) GPIOs to 212, by reading
arch/arm/mach-s3c/gpio-samsung-s3c64xx.h and
arch/arm/mach-s3c/crag6410.h and adding up all the
offsets that were occasionally adding a +1 blank GPIO
between each GPIO provider.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patch.msgid.link/20250303-samsung-codecs-v1-4-56a2299dd928@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/speyside.c