public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/4] ASoC: simple-card-utils: jack for aux_devs
@ 2023-01-18 12:52 Astrid Rost
  2023-01-18 12:52 ` [PATCH v1 1/4] ASoC: soc-component: add get_jack_supported_type Astrid Rost
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Astrid Rost @ 2023-01-18 12:52 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood, Krzysztof Kozlowski
  Cc: kernel, alsa-devel, linux-kernel, Astrid Rost

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


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

end of thread, other threads:[~2023-01-19 16:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-18 12:52 [PATCH v1 0/4] ASoC: simple-card-utils: jack for aux_devs Astrid Rost
2023-01-18 12:52 ` [PATCH v1 1/4] ASoC: soc-component: add get_jack_supported_type Astrid Rost
2023-01-18 12:52 ` [PATCH v1 2/4] ASoC: simple-card-utils: create jack inputs for aux_devs Astrid Rost
2023-01-18 13:39   ` Amadeusz Sławiński
2023-01-18 14:04     ` Astrid Rost
2023-01-18 12:52 ` [PATCH v1 3/4] ASoC: ts3a227e: add set_jack and get_jack_supported_type Astrid Rost
2023-01-18 13:49   ` Amadeusz Sławiński
2023-01-18 12:52 ` [PATCH v1 4/4] ASoC: dt-bindings: simple-card: create jack for aux_devs Astrid Rost
2023-01-19 11:18   ` Krzysztof Kozlowski
2023-01-19 16:00     ` Astrid Rost
2023-01-19 16:17   ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox