]> 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)
commitcaf43a6ddb018e6f3509adc6b3c36c1e85f795c2
tree6fcc1c25892def0d104d27874bc4ef2660b0c9d0
parentdc62063eba93bb8c56a363b8ded6f9052819eb7f
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