]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit80b16ac4cfb91bf2be5b8a9c51115d2ec7bd08e5
tree777a8765ae31c63aab7de14c5a97538c4e883f30
parent159d5c48d63750191c1d9995ba0208c748d732b7
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