[PATCH v1 0/4] ASoC: simple-card-utils: jack for aux_devs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add a generic way to create jack inputs for auxiliary jack detection
drivers (e.g. via i2c, spi), which are not part of any real codec.
The simple-card can be used as combining card driver to add the jacks,
no new one is required.

Create a jack (for input-events) for jack devices in the auxiliary
device list (aux_devs). A device which has the functions set_jack and
get_jack_supported_type counts as jack device.

Add a devicetree entry, in case not all input types are required.
simple-card,aux-jack-types:
Array of snd_jack_type to create jack-input-event for jack devices in
aux-devs. If the setting is 0, the supported type of the device is used.

Astrid Rost (4):
  [PATCH v1 1/4] ASoC: soc-component: add get_jack_supported_type
  [PATCH v1 2/4] ASoC: simple-card-utils: create jack inputs for aux_devs
  [PATCH v1 3/4] ASoC: ts3a227e: add set_jack and get_jack_supported_type
  [PATCH v1 4/4] ASoC: dt-bindings: simple-card: create jack for aux_devs

 .../bindings/sound/simple-card.yaml           | 35 +++++++++++
 include/sound/simple_card_utils.h             |  3 +
 include/sound/soc-component.h                 |  2 +
 sound/soc/codecs/ts3a227e.c                   | 17 ++++-
 sound/soc/generic/simple-card-utils.c         | 63 +++++++++++++++++++
 sound/soc/generic/simple-card.c               |  4 ++
 sound/soc/soc-component.c                     | 18 ++++++
 7 files changed, 141 insertions(+), 1 deletion(-)

-- 
2.30.2




[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux