]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit47832dbe868e7c5a9676112c8c9a067ad8f37b94
tree6fcc1c25892def0d104d27874bc4ef2660b0c9d0
parent8e6510735d7ece32a29f8a158c6c96bbf050c37a
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