alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/5] Add a gpio jack device
@ 2015-05-22 22:09 Dylan Reid
  2015-05-22 22:09 ` [RFC 1/5] ALSA: Add jack types to dt-bindings Dylan Reid
                   ` (5 more replies)
  0 siblings, 6 replies; 22+ messages in thread
From: Dylan Reid @ 2015-05-22 22:09 UTC (permalink / raw)
  To: alsa-devel; +Cc: lars, zhengxing, tiwai, lgirdwood, broonie, Dylan Reid

The first three changes add a gpio audio jack device.  This device can
be used on systems that report headphone or mic plug through GPIOS.
There can be 0-N of these devices created per board each can report one
of several events.  For example, this allows for a single jack for
HP/Mic and a separate jack for line out.

The last two patches are an example of the jack being used on Acer's
Tegra Chromebook, those can be considered separately and might not be
worth the churn.

Dylan Reid (5):
  ALSA: Add jack types to dt-bindings
  ASoC: jack - make add_gpiods accept pre-filled descriptors
  ASoC: Add GPIO based jack device
  ASoC: tegra_max98090: Change nyan to use gpio-jack
  ARM: tegra: nyan: specify gpio-audio-jack device

 .../devicetree/bindings/sound/gpio-audio-jack.txt  |  39 +++++
 arch/arm/boot/dts/tegra124-nyan.dtsi               |  22 ++-
 include/dt-bindings/sound/audio-jack-events.h      |   9 +
 sound/soc/codecs/Kconfig                           |   4 +
 sound/soc/codecs/Makefile                          |   2 +
 sound/soc/codecs/gpio-audio-jack.c                 | 191 +++++++++++++++++++++
 sound/soc/soc-jack.c                               |   9 +-
 sound/soc/tegra/tegra_max98090.c                   | 107 +++---------
 8 files changed, 291 insertions(+), 92 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/sound/gpio-audio-jack.txt
 create mode 100644 include/dt-bindings/sound/audio-jack-events.h
 create mode 100644 sound/soc/codecs/gpio-audio-jack.c

-- 
2.2.1.62.g3f15098

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2015-05-28 19:35 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-22 22:09 [RFC 0/5] Add a gpio jack device Dylan Reid
2015-05-22 22:09 ` [RFC 1/5] ALSA: Add jack types to dt-bindings Dylan Reid
2015-05-25 12:11   ` Mark Brown
2015-05-22 22:09 ` [RFC 2/5] ASoC: jack - add_gpiods accepts filled descriptors Dylan Reid
2015-05-25 12:12   ` Mark Brown
2015-05-22 22:09 ` [RFC 3/5] ASoC: Add GPIO based jack device Dylan Reid
2015-05-25 12:11   ` Mark Brown
2015-05-26  6:20     ` Dylan Reid
2015-05-22 22:09 ` [RFC 4/5] ASoC: tegra_max98090: Change nyan to use gpio-jack Dylan Reid
2015-05-22 22:09 ` [RFC 5/5] ARM: tegra: nyan: specify gpio-audio-jack device Dylan Reid
2015-05-25 15:17 ` [RFC 0/5] Add a gpio jack device Lars-Peter Clausen
2015-05-25 17:15   ` Mark Brown
2015-05-25 18:58     ` Dylan Reid
2015-05-26 18:43     ` Lars-Peter Clausen
2015-05-26 20:14       ` Mark Brown
2015-05-27  4:22         ` Dylan Reid
2015-05-27 11:15           ` Lars-Peter Clausen
2015-05-27 17:26           ` Mark Brown
2015-05-28  5:38             ` Dylan Reid
2015-05-28 10:17               ` Mark Brown
2015-05-27 11:12         ` Lars-Peter Clausen
2015-05-28 19:35           ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).