mbox series

[v3,0/3] ASoC: simple-card-utils: create jack inputs for aux_devs

Message ID 20230123135913.2720991-1-astrid.rost@axis.com (mailing list archive)
Headers show
Series ASoC: simple-card-utils: create jack inputs for aux_devs | expand

Message

Astrid Rost Jan. 23, 2023, 1:59 p.m. UTC
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 returns a valid value on
get_jack_type counts as jack device; set_jack is required
to add the jack to the device.

v1 -> v2: Auxiliary jack drivers return the correct snd_jack_type with
 the function: get_jack_type.
- No devicetree changes in simple-card.
- soc-component: changed name to: get_jack_type.
- simple-jack-utils: updated algorithm to add jack devices.
   A device which returns a valid value on get_jack_type counts as jack
   device
- ts3a227e: added devicetree property jack-type, added NULL check for jack.

v2 -> v3:  ts3a227e: remove devictree property.

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

 include/sound/simple_card_utils.h     |  3 ++
 include/sound/soc-component.h         |  2 ++
 sound/soc/codecs/ts3a227e.c           | 20 ++++++++++-
 sound/soc/generic/simple-card-utils.c | 49 +++++++++++++++++++++++++++
 sound/soc/generic/simple-card.c       |  4 +++
 sound/soc/soc-component.c             | 20 +++++++++++
 6 files changed, 97 insertions(+), 1 deletion(-)

Comments

Mark Brown Jan. 28, 2023, 10:48 a.m. UTC | #1
On Mon, 23 Jan 2023 14:59:10 +0100, Astrid Rost wrote:
> 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 returns a valid value on
> get_jack_type counts as jack device; set_jack is required
> to add the jack to the device.
> 
> [...]

Applied to

   broonie/sound.git for-next

Thanks!

[1/3] ASoC: soc-component: add get_jack_type
      commit: df55122ba0955951a85ef3ffb19f0dcb0ad3ffbb
[2/3] ASoC: simple-card-utils: create jack inputs for aux_devs
      commit: 9b271207ac83db362fac757d367923bde57dce86
[3/3] ASoC: ts3a227e: add set_jack and get_jack_type
      commit: 087b9dda8658052a33031ef82a8d8ef77a7c94ea

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark