Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH v2 0/4] ASoC: arizona: switch to generic device properties and clean up
@ 2026-11-23 23:00 Dmitry Torokhov
  2026-11-23 23:00 ` [PATCH v2 1/4] ASoC: arizona: convert audio pdata parsing to generic device properties Dmitry Torokhov
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Dmitry Torokhov @ 2026-11-23 23:00 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	Charles Keepax, Richard Fitzgerald, David Rhodes, Lee Jones
  Cc: patches, linux-sound, linux-kernel, mfd

This series converts Arizona ASoC drivers to generic device properties
and cleans up dead code and formatting issues:

- Convert audio platform data parsing from OF-only APIs to generic
  device property helpers and drop CONFIG_OF guards across the codec
  drivers.
- Parse device properties unconditionally in the jack detection and codec
  drivers even when platform data is supplied, preserving existing
  channel settings and boolean flags when properties are absent.
- Drop unused hpdet_acc_id and hpdet_acc_id_line fields from struct
  arizona_pdata along with the unreachable HPDET accessory ID logic in
  the jack detection driver.
- Clean up coding style and argument alignment in arizona-jack.c.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
Changes in v2:
- Only parse and validate wlf,hpdet-channel when the property is present,
  without clobbering existing platform data on absent or invalid values.
- Default an unset (0) hpdet_channel to ARIZONA_ACCDET_MODE_HPL in
  arizona_jack_codec_dev_probe() instead of using the GNU ?: extension
  in arizona_extcon_device_get_pdata().
- Link to v1: https://patch.msgid.link/20261105-arizona-asoc-v1-0-25ec7338446e@gmail.com

---
Dmitry Torokhov (4):
      ASoC: arizona: convert audio pdata parsing to generic device properties
      ASoC: arizona: always parse device properties regardless of platform data
      ASoC: arizona: drop unused HPDET accessory ID support
      ASoC: arizona: clean up coding style and formatting

 include/linux/mfd/arizona/pdata.h |  21 ++--
 sound/soc/codecs/arizona-jack.c   | 248 ++++++--------------------------------
 sound/soc/codecs/arizona.c        | 121 +++++++++----------
 sound/soc/codecs/arizona.h        |   8 +-
 sound/soc/codecs/cs47l24.c        |   8 +-
 sound/soc/codecs/wm5102.c         |   8 +-
 sound/soc/codecs/wm5110.c         |   8 +-
 sound/soc/codecs/wm8997.c         |   8 +-
 sound/soc/codecs/wm8998.c         |   8 +-
 9 files changed, 113 insertions(+), 325 deletions(-)
---
base-commit: 909ef7a9a30fa139e69e555e3606680f5cca7726
change-id: 20261105-arizona-asoc-ca9bba7a3bb7

Thanks.

-- 
Dmitry


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

end of thread, other threads:[~2026-11-24 14:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 23:00 [PATCH v2 0/4] ASoC: arizona: switch to generic device properties and clean up Dmitry Torokhov
2026-11-23 23:00 ` [PATCH v2 1/4] ASoC: arizona: convert audio pdata parsing to generic device properties Dmitry Torokhov
2026-11-24 13:42   ` Charles Keepax
2026-11-23 23:00 ` [PATCH v2 2/4] ASoC: arizona: always parse device properties regardless of platform data Dmitry Torokhov
2026-11-24 14:23   ` Charles Keepax
2026-11-23 23:00 ` [PATCH v2 3/4] ASoC: arizona: drop unused HPDET accessory ID support Dmitry Torokhov
2026-11-24 14:24   ` Charles Keepax
2026-11-23 23:00 ` [PATCH v2 4/4] ASoC: arizona: clean up coding style and formatting Dmitry Torokhov
2026-11-24 14:31   ` Charles Keepax

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