[PATCH v16 0/4] ASoC: Add TI TAC5XX2 SoundWire codec driver support

Niranjan H Y posted 4 patches 1 month, 1 week ago
include/sound/sdca_asoc.h                     |    6 +
include/sound/soc_sdw_utils.h                 |    4 +
sound/soc/codecs/Kconfig                      |   11 +
sound/soc/codecs/Makefile                     |    2 +
sound/soc/codecs/tac5xx2-sdw.c                | 2047 +++++++++++++++++
sound/soc/codecs/tac5xx2.h                    |  259 +++
.../intel/common/soc-acpi-intel-mtl-match.c   |  132 ++
sound/soc/sdca/sdca_asoc.c                    |  106 +-
sound/soc/sdw_utils/soc_sdw_ti_amp.c          |  140 +-
sound/soc/sdw_utils/soc_sdw_utils.c           |  151 ++
10 files changed, 2827 insertions(+), 31 deletions(-)
create mode 100644 sound/soc/codecs/tac5xx2-sdw.c
create mode 100644 sound/soc/codecs/tac5xx2.h
[PATCH v16 0/4] ASoC: Add TI TAC5XX2 SoundWire codec driver support
Posted by Niranjan H Y 1 month, 1 week ago
This patch series adds support for Texas Instruments TAC5XX2 family of
SoundWire smart amplifiers, including TAC5572, TAC5672, TAC5682, and
TAS2883 devices.

The series includes:
- SDCA power state management helper for PDE verification
- New codec driver for TAC5XX2 family with SmartAmp, SmartMic,
  UAJ, and HID support
- Machine driver integration for Intel SoundWire platforms
- ACPI match entries for Intel MTL platform

Changes in V16:
- use EXPORT_SYMBOL_NS instead of EXPORT_SYMBOL_GPL for
  asoc_sdw_ti_tac5xx2_spk_rtd_init (patch 3/4)
- remove unwanted dynamic memory allocation for local
  variable. (patch 3/4)
- reorder to read the uaj status after the regcache
  sync is done in the resume callback. (patch 2/4)
- rebase and use updated sdca_parse_function (patch 2/4)

Changes in v15: (Patch 2/4)
- call pm_runtime_resume instead of waiting for
  device to get initialised similar to other drivers
- skip reading the uaj and hid registers in the interrupt
  handler if the uaj is not supported
- remove had_unattached in the dev_resume callback
- detect headset in the dev_resume callback only if the uaj
  is supported
- indentation fixes to use reverse-xmas tree

Changes in v14:
- Resending complete series (v13 1/4 was accidentally sent alone)
- rename the first_hw_init to first_hw_init_done for readability.
- Removed dummy tac5xx2_sdw_clk_stop function (Patch 2/4)
- Added pm_runtime calls in .set_jack callback (Patch 2/4)
- Improved error handling for early .set_jack calls (Patch 2/4)
- drop uaj_lock to make it simiar to other drivers (Patch 2/4)
- move the pm_runtime_enable to probe and keep only
  pm_runtime_set_active for first attach case. (Patch 2/4)
- remove tac5xx2_sdw_clk_stop as currently it is dummy (Patch 2/4)
- Used xmas tree style in .hw_free (Patch 2/4)

Changes in v13:
- no code changes (v13 1/4 was sent alone accidentally)

Changes in v12:
- Used correct namespace while exporting variables (Patch 1/4)
- Fixed missing entity information in logging (Patch 1/4)
- Removed hw_init check in .set_jack (Patch 2/4)
- Added missing pm_runtime_disable in .remove callback (Patch 2/4)
- Improved error logging in .hw_params and .hw_free (Patch 2/4)
- Included part_id in firmware binary name (Patch 2/4)
- Updated firmware header parsing (Patch 2/4)

Niranjan H Y (4):
  ASoC: SDCA: Add PDE verification reusable helper
  ASoC: tac5xx2-sdw: add soundwire based codec driver
  ASoC: sdw_utils: TI amp utility for tac5xx2 family
  ASoC: tac5xx2-sdw: ACPI match for intel mtl platform

 include/sound/sdca_asoc.h                     |    6 +
 include/sound/soc_sdw_utils.h                 |    4 +
 sound/soc/codecs/Kconfig                      |   11 +
 sound/soc/codecs/Makefile                     |    2 +
 sound/soc/codecs/tac5xx2-sdw.c                | 2047 +++++++++++++++++
 sound/soc/codecs/tac5xx2.h                    |  259 +++
 .../intel/common/soc-acpi-intel-mtl-match.c   |  132 ++
 sound/soc/sdca/sdca_asoc.c                    |  106 +-
 sound/soc/sdw_utils/soc_sdw_ti_amp.c          |  140 +-
 sound/soc/sdw_utils/soc_sdw_utils.c           |  151 ++
 10 files changed, 2827 insertions(+), 31 deletions(-)
 create mode 100644 sound/soc/codecs/tac5xx2-sdw.c
 create mode 100644 sound/soc/codecs/tac5xx2.h

-- 
2.34.1
Re: [PATCH v16 0/4] ASoC: Add TI TAC5XX2 SoundWire codec driver support
Posted by Mark Brown 1 month, 1 week ago
On Tue, 05 May 2026 16:48:02 +0530, Niranjan H Y wrote:
> ASoC: Add TI TAC5XX2 SoundWire codec driver support
> 
> This patch series adds support for Texas Instruments TAC5XX2 family of
> SoundWire smart amplifiers, including TAC5572, TAC5672, TAC5682, and
> TAS2883 devices.
> 
> The series includes:
> - SDCA power state management helper for PDE verification
> - New codec driver for TAC5XX2 family with SmartAmp, SmartMic,
>   UAJ, and HID support
> - Machine driver integration for Intel SoundWire platforms
> - ACPI match entries for Intel MTL platform
> 
> [...]

Applied to

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

Thanks!

[1/4] ASoC: SDCA: Add PDE verification reusable helper
      https://git.kernel.org/broonie/sound/c/ad1d77ef21be
[2/4] ASoC: tac5xx2-sdw: add soundwire based codec driver
      https://git.kernel.org/broonie/sound/c/6138388fab2b
[3/4] ASoC: sdw_utils: TI amp utility for tac5xx2 family
      https://git.kernel.org/broonie/sound/c/de14cc57efcb
[4/4] ASoC: tac5xx2-sdw: ACPI match for intel mtl platform
      https://git.kernel.org/broonie/sound/c/8f39fbbfb11f

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
Re: [PATCH v16 0/4] ASoC: Add TI TAC5XX2 SoundWire codec driver support
Posted by Mark Brown 1 month, 1 week ago
On Tue, 05 May 2026 16:48:02 +0530, Niranjan H Y wrote:
> ASoC: Add TI TAC5XX2 SoundWire codec driver support
> 
> This patch series adds support for Texas Instruments TAC5XX2 family of
> SoundWire smart amplifiers, including TAC5572, TAC5672, TAC5682, and
> TAS2883 devices.
> 
> The series includes:
> - SDCA power state management helper for PDE verification
> - New codec driver for TAC5XX2 family with SmartAmp, SmartMic,
>   UAJ, and HID support
> - Machine driver integration for Intel SoundWire platforms
> - ACPI match entries for Intel MTL platform
> 
> [...]

Applied to

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

Thanks!

[1/4] ASoC: SDCA: Add PDE verification reusable helper
      https://git.kernel.org/broonie/sound/c/cdff2e6ab890
[2/4] ASoC: tac5xx2-sdw: add soundwire based codec driver
      https://git.kernel.org/broonie/sound/c/38c89fededd5
[3/4] ASoC: sdw_utils: TI amp utility for tac5xx2 family
      https://git.kernel.org/broonie/sound/c/e812de61e9a0
[4/4] ASoC: tac5xx2-sdw: ACPI match for intel mtl platform
      https://git.kernel.org/broonie/sound/c/c4e19a93df81

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