ASoC: pcm3168a: Add support for optional RST gpio handling
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 13 Nov 2019 12:47:34 +0000 (14:47 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 18 Nov 2019 13:09:22 +0000 (13:09 +0000)
commit79f6c108c87b470aacf25fc25a86f48694d03ae8
tree777a8765ae31c63aab7de14c5a97538c4e883f30
parentcdacc761dae1cbd6475ac79f0e732f2b1ca021e0
ASoC: pcm3168a: Add support for optional RST gpio handling

In case the RST line is connected to a GPIO line it needs to be pulled high
when the driver probes to be able to use the codec.

Add support also for cases when more than one codec is is controlled by the
same GPIO line by requesting the gpio with GPIOD_FLAGS_BIT_NONEXCLUSIVE.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20191113124734.27984-3-peter.ujfalusi@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/pcm3168a.c