Skip to contentSkip to conversation

ASoC: add Senary SN624x SoundWire SDCA support

PATCH In review Qianghua Wang 2 participants 6 messages Sep 1 – Sep 2

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v5 cover ASoC: add Senary SN624x SoundWire SDCA support

This series adds SoundWire SDCA support for Senary SN624x multi-function codecs (jack, speaker amp, DMIC) on Intel ARL, LNL, MTL, and PTL.

Based on current sound.git tip (249bfb5d8897 — Merge branch 'for-next').

Changes since v4:
- Rebase onto current code so the series applies cleanly. v4 failed to apply mainly against updated Intel soc-acpi match tables (PTL/MTL and related function-topology defaults).
- No intentional functional changes versus v4; content is the same three patches refreshed for the new context.

Validated previously on LG / Positivo Wildcat Lake (PTL) with part_id 0x6244 (MODALIAS sdw:m0496p6244v03c01).

Qianghua Wang (3):
ASoC: codecs: add SN624x SDCA SoundWire driver
ASoC: sdw_utils: add Senary SN624x helpers and codec_info
ASoC: Intel: soc-acpi: add SN624x entries for ARL/LNL/MTL/PTL

 MAINTAINERS                                   |    3 +
 include/sound/soc_sdw_utils.h                 |   20 +
 sound/soc/codecs/Kconfig                      |   13 +
 sound/soc/codecs/Makefile                     |    2 +
 sound/soc/codecs/sn624x-sdca-sdw.c            | 1888 +++++++++++++++++
 sound/soc/codecs/sn624x-sdca.h                |  152 ++
 sound/soc/intel/boards/Kconfig                |    1 +
 .../intel/common/soc-acpi-intel-arl-match.c   |   71 +
 .../intel/common/soc-acpi-intel-lnl-match.c   |   71 +
 .../intel/common/soc-acpi-intel-mtl-match.c   |   71 +
 .../intel/common/soc-acpi-intel-ptl-match.c   |   82 +
 sound/soc/sdw_utils/Makefile                  |    4 +-
 sound/soc/sdw_utils/soc_sdw_senary_amp.c      |   80 +
 sound/soc/sdw_utils/soc_sdw_senary_dmic.c     |   49 +
 sound/soc/sdw_utils/soc_sdw_senary_sdca.c     |   63 +
 .../soc_sdw_senary_sdca_jack_common.c         |  197 ++
 sound/soc/sdw_utils/soc_sdw_utils.c           |  166 ++
 17 files changed, 2932 insertions(+), 1 deletion(-)
 create mode 100644 sound/soc/codecs/sn624x-sdca-sdw.c
 create mode 100644 sound/soc/codecs/sn624x-sdca.h
 create mode 100644 sound/soc/sdw_utils/soc_sdw_senary_amp.c
 create mode 100644 sound/soc/sdw_utils/soc_sdw_senary_dmic.c
 create mode 100644 sound/soc/sdw_utils/soc_sdw_senary_sdca.c
 create mode 100644 sound/soc/sdw_utils/soc_sdw_senary_sdca_jack_common.c
Signature · 1 line
2.53.0
#1 lore raw

PATCH v5 1/3 ASoC: codecs: add SN624x SDCA SoundWire driver

Add a SoundWire SDCA driver for Senary SN624x multi-function codecs (jack, speaker amp, and DMIC). Program SDCA SampleFreqIndex in hw_params, keep SDCA jack IRQs masked with poll-based detection, and extend the Senary MAINTAINERS entry for the new codec files only.

---
 MAINTAINERS                        |    3 +
 sound/soc/codecs/Kconfig           |   13 +
 sound/soc/codecs/Makefile          |    2 +
 sound/soc/codecs/sn624x-sdca-sdw.c | 1888 ++++++++++++++++++++++++++++
 sound/soc/codecs/sn624x-sdca.h     |  152 +++
 5 files changed, 2058 insertions(+)
 create mode 100644 sound/soc/codecs/sn624x-sdca-sdw.c
 create mode 100644 sound/soc/codecs/sn624x-sdca.h
MAINTAINERS +3 -0
index 3a19da74d00c..e06f747a46f5 100644
@@ -30180,9 +30180,12 @@ F:	tools/testing/selftests/cgroup/test_zswap.c
 
 SENARYTECH AUDIO CODEC DRIVER
 M:	bo liu <[email protected]>
+M:	qianghua.wang <[email protected]>
 S:	Maintained
 T:	git git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
 F:	sound/hda/codecs/senarytech.c
+F:	sound/soc/codecs/sn624x*
+F:	sound/soc/sdw_utils/soc_sdw_senary*
 
 ZTE DINGHAI ETHERNET DRIVER
 M:	Junyang Han <[email protected]>
sound/soc/codecs/Kconfig +13 -0
index f9a47e262a77..62224dc19cab 100644
@@ -255,6 +255,7 @@ config SND_SOC_ALL_CODECS
 	imply SND_SOC_SIMPLE_MUX
 	imply SND_SOC_SMA1303
 	imply SND_SOC_SMA1307
+	imply SND_SOC_SN624X_SDCA_SDW
 	imply SND_SOC_SPDIF
 	imply SND_SOC_SRC4XXX_I2C
 	imply SND_SOC_SSM2305
@@ -2099,6 +2100,18 @@ config SND_SOC_SMA1307
 	  If you are using a system with an SMA1307 amplifier connected
 	  via I2C, enable this option.
 
+config SND_SOC_SN624X_SDCA_SDW
+	tristate "Senary SN624x SDCA Codec - SDW"
+	depends on SND_SOC_SDCA
+	depends on SOUNDWIRE
+	select REGMAP_SOUNDWIRE
+	select REGMAP_SOUNDWIRE_MBQ
+	help
+	  Enable support for Senary SN624x SDCA SoundWire codecs.
+	  These multi-function devices provide headset jack, speaker
+	  amplifier, and digital microphone endpoints on the SoundWire
+	  bus.
+
 config SND_SOC_SPDIF
 	tristate "S/PDIF CODEC"
 
sound/soc/codecs/Makefile +2 -0
index 3d122ace75ad..3b8d7594b80f 100644
@@ -301,6 +301,7 @@ snd-soc-sigmadsp-regmap-y := sigmadsp-regmap.o
 snd-soc-si476x-y := si476x.o
 snd-soc-sma1303-y := sma1303.o
 snd-soc-sma1307-y := sma1307.o
+snd-soc-sn624x-sdca-y := sn624x-sdca-sdw.o
 snd-soc-spdif-tx-y := spdif_transmitter.o
 snd-soc-spdif-rx-y := spdif_receiver.o
 snd-soc-src4xxx-y := src4xxx.o
@@ -742,6 +743,7 @@ obj-$(CONFIG_SND_SOC_SIGMADSP_REGMAP)	+= snd-soc-sigmadsp-regmap.o
 obj-$(CONFIG_SND_SOC_SI476X)	+= snd-soc-si476x.o
 obj-$(CONFIG_SND_SOC_SMA1303)	+= snd-soc-sma1303.o
 obj-$(CONFIG_SND_SOC_SMA1307)	+= snd-soc-sma1307.o
+obj-$(CONFIG_SND_SOC_SN624X_SDCA_SDW)    += snd-soc-sn624x-sdca.o
 obj-$(CONFIG_SND_SOC_SPDIF)	+= snd-soc-spdif-rx.o snd-soc-spdif-tx.o
 obj-$(CONFIG_SND_SOC_SRC4XXX)	+= snd-soc-src4xxx.o
 obj-$(CONFIG_SND_SOC_SRC4XXX_I2C)	+= snd-soc-src4xxx-i2c.o
sound/soc/codecs/sn624x-sdca-sdw.c new file +1888 -0

1,888 lines not on this page · raw message

sound/soc/codecs/sn624x-sdca.h new file +152 -0

152 lines not on this page · raw message

Signature · 1 line
2.53.0
#2 lore raw

PATCH v5 2/3 ASoC: sdw_utils: add Senary SN624x helpers and codec_info

In reply to Qianghua Wang

Add sof_sdw helpers for SN624x jack, amp, and DMIC, and register the codec_info entries used by the Intel SOF SoundWire machine driver. Use name_prefix "sn624x" to match UCM and DAI widget naming.

---
 include/sound/soc_sdw_utils.h                 |  20 ++
 sound/soc/sdw_utils/Makefile                  |   4 +-
 sound/soc/sdw_utils/soc_sdw_senary_amp.c      |  80 +++++++
 sound/soc/sdw_utils/soc_sdw_senary_dmic.c     |  49 +++++
 sound/soc/sdw_utils/soc_sdw_senary_sdca.c     |  63 ++++++
 .../soc_sdw_senary_sdca_jack_common.c         | 197 ++++++++++++++++++
 sound/soc/sdw_utils/soc_sdw_utils.c           | 166 +++++++++++++++
 7 files changed, 578 insertions(+), 1 deletion(-)
 create mode 100644 sound/soc/sdw_utils/soc_sdw_senary_amp.c
 create mode 100644 sound/soc/sdw_utils/soc_sdw_senary_dmic.c
 create mode 100644 sound/soc/sdw_utils/soc_sdw_senary_sdca.c
 create mode 100644 sound/soc/sdw_utils/soc_sdw_senary_sdca_jack_common.c
include/sound/soc_sdw_utils.h +20 -0
index 9b28e9aef4f1..3c1d177a2f2d 100644
@@ -294,4 +294,24 @@ int asoc_sdw_es9356_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai
 int asoc_sdw_es9356_spk_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
 int asoc_sdw_es9356_dmic_rtd_init(struct snd_soc_pcm_runtime *rtd, struct snd_soc_dai *dai);
 
+/* Senary SN624x SDCA */
+int asoc_sdw_senary_sdca_jack_init(struct snd_soc_card *card,
+				   struct snd_soc_dai_link *dai_links,
+				   struct asoc_sdw_codec_info *info,
+				   bool playback);
+int asoc_sdw_senary_sdca_jack_exit(struct snd_soc_card *card,
+				   struct snd_soc_dai_link *dai_link);
+int asoc_sdw_senary_sdca_jack_rtd_init(struct snd_soc_pcm_runtime *rtd,
+				       struct snd_soc_dai *dai);
+int asoc_sdw_senary_amp_init(struct snd_soc_card *card,
+			     struct snd_soc_dai_link *dai_links,
+			     struct asoc_sdw_codec_info *info,
+			     bool playback);
+int asoc_sdw_senary_amp_exit(struct snd_soc_card *card,
+			     struct snd_soc_dai_link *dai_link);
+int asoc_sdw_senary_sdca_spk_rtd_init(struct snd_soc_pcm_runtime *rtd,
+				      struct snd_soc_dai *dai);
+int asoc_sdw_senary_dmic_rtd_init(struct snd_soc_pcm_runtime *rtd,
+				  struct snd_soc_dai *dai);
+
 #endif
sound/soc/sdw_utils/Makefile +3 -1
index 5ae8c69b8b98..1dbc00a2d64a 100644
@@ -10,5 +10,7 @@ snd-soc-sdw-utils-y := soc_sdw_utils.o soc_sdw_dmic.o soc_sdw_rt_dmic.o \
 		       soc_sdw_cs_amp.o					\
 		       soc_sdw_es9356.o					\
 		       soc_sdw_maxim.o \
-		       soc_sdw_ti_amp.o
+		       soc_sdw_ti_amp.o \
+		       soc_sdw_senary_sdca.o soc_sdw_senary_sdca_jack_common.o \
+		       soc_sdw_senary_amp.o soc_sdw_senary_dmic.o
 obj-$(CONFIG_SND_SOC_SDW_UTILS) += snd-soc-sdw-utils.o
sound/soc/sdw_utils/soc_sdw_senary_amp.c new file +80 -0

80 lines not on this page · raw message

sound/soc/sdw_utils/soc_sdw_senary_dmic.c new file +49 -0

49 lines not on this page · raw message

sound/soc/sdw_utils/soc_sdw_senary_sdca.c new file +63 -0

63 lines not on this page · raw message

sound/soc/sdw_utils/soc_sdw_senary_sdca_jack_common.c new file +197 -0

197 lines not on this page · raw message

sound/soc/sdw_utils/soc_sdw_utils.c +166 -0

178 lines not on this page · raw message

Signature · 1 line
2.53.0
#3 lore raw

PATCH v5 3/3 ASoC: Intel: soc-acpi: add SN624x entries for ARL/LNL/MTL/PTL

In reply to Qianghua Wang

Add SoundWire machine match entries for Senary SN624x on Arrow Lake, Lunar Lake, Meteor Lake, and Panther Lake, and select the SN624x SDCA codec from the SOF SoundWire machine Kconfig. Each part ID uses a separate mach entry; name_prefix is "sn624x".

---
 sound/soc/intel/boards/Kconfig                |  1 +
 .../intel/common/soc-acpi-intel-arl-match.c   | 71 ++++++++++++++++
 .../intel/common/soc-acpi-intel-lnl-match.c   | 71 ++++++++++++++++
 .../intel/common/soc-acpi-intel-mtl-match.c   | 71 ++++++++++++++++
 .../intel/common/soc-acpi-intel-ptl-match.c   | 82 +++++++++++++++++++
 5 files changed, 296 insertions(+)
sound/soc/intel/boards/Kconfig +1 -0
index cddbd2aa424e..5b80b1770ff0 100644
@@ -535,6 +535,7 @@ config SND_SOC_INTEL_SOUNDWIRE_SOF_MACH
 	select SND_SOC_ES9356
 	select SND_SOC_DMIC
 	select SND_SOC_INTEL_HDA_DSP_COMMON
+	select SND_SOC_SN624X_SDCA_SDW
 	imply SND_SOC_SDW_MOCKUP
 	help
 	  Add support for Intel SoundWire-based platforms connected to
sound/soc/intel/common/soc-acpi-intel-arl-match.c +71 -0

83 lines not on this page · raw message

sound/soc/intel/common/soc-acpi-intel-lnl-match.c +71 -0

83 lines not on this page · raw message

sound/soc/intel/common/soc-acpi-intel-mtl-match.c +71 -0

83 lines not on this page · raw message

sound/soc/intel/common/soc-acpi-intel-ptl-match.c +82 -0

94 lines not on this page · raw message

Signature · 1 line
2.53.0
maintainer
#4 lore raw
In reply to Qianghua Wang
Quoted 9 lines · Qianghua Wang

ASoC: add Senary SN624x SoundWire SDCA support

This series adds SoundWire SDCA support for Senary SN624x multi-function codecs (jack, speaker amp, DMIC) on Intel ARL, LNL, MTL, and PTL.

Based on current sound.git tip (249bfb5d8897 — Merge branch 'for-next').

[...]

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.4

Thanks!

[1/3] ASoC: codecs: add SN624x SDCA SoundWire driver

      https://git.kernel.org/broonie/sound/c/12d9c9f8679c
[2/3] ASoC: sdw_utils: add Senary SN624x helpers and codec_info
      https://git.kernel.org/broonie/sound/c/77272ecd96d7
[3/3] ASoC: Intel: soc-acpi: add SN624x entries for ARL/LNL/MTL/PTL
      https://git.kernel.org/broonie/sound/c/32f9c551a91a

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

#5 lore raw

reply: [PATCH v5 0/3] ASoC: add Senary SN624x SoundWire SDCA support

Thanks Mark!

I'll keep an eye on the list for any test feedback and send follow-up patches if needed.

Best regards,
Qianghua

----- Original email -----
From: Mark Brown [email protected]
Sent: Monday, September 1, 2026 8:42 PM
To: [email protected]; Qianghua Wang [email protected]
Cc: Pierre-Louis Bossart [email protected]; Bard Liao [email protected]; Liam Girdwood [email protected]; Peter Ujfalusi [email protected]; Kai Vehmanen [email protected]; Cezary Rojewski [email protected]; Charles Keepax [email protected]; bo liu [email protected]
Subject: Re: [PATCH v5 0/3] ASoC: add Senary SN624x SoundWire SDCA support

Quoted 9 lines · Qianghua Wang

ASoC: add Senary SN624x SoundWire SDCA support

This series adds SoundWire SDCA support for Senary SN624x multi-function codecs (jack, speaker amp, DMIC) on Intel ARL, LNL, MTL, and PTL.

Based on current sound.git tip (249bfb5d8897 — Merge branch 'for-next').

[...]

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.4

Thanks!

[1/3] ASoC: codecs: add SN624x SDCA SoundWire driver

      https://git.kernel.org/broonie/sound/c/12d9c9f8679c
[2/3] ASoC: sdw_utils: add Senary SN624x helpers and codec_info
      https://git.kernel.org/broonie/sound/c/77272ecd96d7
[3/3] ASoC: Intel: soc-acpi: add SN624x entries for ARL/LNL/MTL/PTL
      https://git.kernel.org/broonie/sound/c/32f9c551a91a

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