diff options
author | Jarkko Nikula <jarkko.nikula@linux.intel.com> | 2014-05-26 14:34:37 +0300 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-26 15:26:00 +0100 |
commit | f025d3b9c64e1f7feb75a559d4a12f5f8c6a4a25 (patch) | |
tree | 819909f51afd408c50379e69c55d29337365d02c /arch/score | |
parent | 50dfb69d1bb0062e2811547525c73e9a45a423e9 (diff) |
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 'arch/score')
0 files changed, 0 insertions, 0 deletions