ASoC: rockchip: Make RK3328 GPIO_MUTE control explicit
authorRobin Murphy <robin.murphy@arm.com>
Tue, 18 Feb 2020 21:31:59 +0000 (21:31 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 19 Feb 2020 17:43:21 +0000 (17:43 +0000)
commit87d12d5545fa72d67d99d797cdb464c0c7efb9c9
tree6fcc1c25892def0d104d27874bc4ef2660b0c9d0
parente14980976534d9d94f5cddd70033707965482ede
ASoC: rockchip: Make RK3328 GPIO_MUTE control explicit

The RK3328 reference design uses an external line driver IC as a buffer
on the analog codec output, enabled by the GPIO_MUTE pin, and such a
configuration is currently assumed in the codec driver's direct poking
of GRF_SOC_CON10 to control the GPIO_MUTE output value. However, some
boards wire up analog audio yet use that pin for some other purpose, so
that assumption doesn't always hold. Update this functionality to rely
on an explicit GPIO descriptor, such that it can be managed at the
board level.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/5bc383ed1832f0f5d1dcb3c97ad92fd68e5217e3.1581376744.git.robin.murphy@arm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rk3328_codec.c