]> 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)
commit4e17c7f5bf205c048f3aa8cc8f4cf17965a38c30
tree777a8765ae31c63aab7de14c5a97538c4e883f30
parente217c25e11477e4610650ae55634367feb5e0f0a
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