diff options
author | 2014-05-26 14:34:37 +0300 | |
---|---|---|
committer | 2014-05-26 15:26:00 +0100 | |
commit | f025d3b9c64e1f7feb75a559d4a12f5f8c6a4a25 (patch) | |
tree | 819909f51afd408c50379e69c55d29337365d02c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ASoC: jack: Basic GPIO descriptor conversion (diff) | |
download | wireguard-linux-f025d3b9c64e1f7feb75a559d4a12f5f8c6a4a25.tar.xz wireguard-linux-f025d3b9c64e1f7feb75a559d4a12f5f8c6a4a25.zip |
ASoC: jack: Add support for GPIO descriptor defined jack pins
Allow jack GPIO pins be defined also using GPIO descriptor-based interface
in addition to legacy GPIO numbers. This is done by adding two new fields to
struct snd_soc_jack_gpio: idx and gpiod_dev.
Legacy GPIO numbers are used only when GPIO consumer device gpiod_dev is
NULL and otherwise idx is the descriptor index within the GPIO consumer
device.
New function snd_soc_jack_add_gpiods() is added for typical cases where all
GPIO descriptor jack pins belong to same GPIO consumer device. For other
cases the caller must set the gpiod_dev in struct snd_soc_jack_gpio before
calling snd_soc_jack_add_gpios().
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions