Skip to content

TAC5572, TAC5682 Support on Intel - #5883

Merged
bardliao merged 2 commits into
thesofproject:topic/sof-devfrom
niranjanhyti:for-tac5xx2
Aug 28, 2026
Merged

TAC5572, TAC5682 Support on Intel #5883
bardliao merged 2 commits into
thesofproject:topic/sof-devfrom
niranjanhyti:for-tac5xx2

Conversation

@niranjanhyti

Copy link
Copy Markdown

TI's TAC5572, TAC5682 Support on Intel.

@sofci

sofci commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

reply test this please to run this test once

Add tac5572, tac5682 to the wake_capable_list as it can generate jack
events whilst the bus is stopped.

Signed-off-by: Niranjan H Y <niranjan.hy@ti.com>
@bardliao

Copy link
Copy Markdown
Collaborator

test this please

bardliao
bardliao previously approved these changes Aug 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for TI TAC5572/TAC5682 SoundWire smart amplifiers on Intel platforms by enabling the TAC5XX2 SoundWire codec driver in the Intel SoundWire SOF generic machine configuration and by marking these parts as wake-capable in the Intel SoundWire manager.

Changes:

  • Select SND_SOC_TAC5XX2_SDW for SND_SOC_INTEL_SOUNDWIRE_SOF_MACH to ensure TAC5XX2 SDW codec support is built for Intel SoundWire SOF machines.
  • Add TAC5572/TAC5682 (mfg 0x0102) to the Intel SoundWire wake-capable part list so they can be placed in the wake-capable device-number range.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
sound/soc/intel/boards/Kconfig Enables TAC5XX2 SoundWire codec support for the Intel SoundWire SOF generic machine driver.
drivers/soundwire/intel_auxdevice.c Marks TAC5572/TAC5682 as wake-capable parts for Intel SoundWire manager handling.
Suppressed comments (1)

sound/soc/intel/boards/Kconfig:540

  • The help text for this machine driver lists supported codecs/amplifiers but does not mention the newly selected TAC5XX2 family, which can mislead users about what enabling this option provides.
	select SND_SOC_TAC5XX2_SDW
	select SND_SOC_DMIC
	select SND_SOC_INTEL_HDA_DSP_COMMON
	imply SND_SOC_SDW_MOCKUP
	help

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 535 to 537
select SND_SOC_ES9356
select SND_SOC_TAC5XX2_SDW
select SND_SOC_DMIC

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@niranjanhyti Please check the Copilot comment.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@charleskeepax Do you think we need to select SND_SOC_SDCA here for cs42l45?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@niranjanhyti Please check the Copilot comment.
I will update it in some time. tac5xx2-sdw driver depends on SND_SOC_SDCA so I think it makes sense

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Bard,

1] Recently I have added 78983d8 which is not there in sof kernel

2] Adding SND_SOC_SDCA is causing the issue
HOSTLD scripts/kconfig/mconf
error: recursive dependency detected!
symbol SOUNDWIRE depends on SND_SOC_SDCA_OPTIONAL
symbol SND_SOC_SDCA_OPTIONAL default value contains SND_SOC_SDCA
symbol SND_SOC_SDCA is selected by SND_SOC_INTEL_SOUNDWIRE_SOF_MACH
symbol SND_SOC_INTEL_SOUNDWIRE_SOF_MACH depends on SND_SOC_SOF_INTEL_SOUNDWIRE
symbol SND_SOC_SOF_INTEL_SOUNDWIRE depends on SOUNDWIRE
For a resolution refer to Documentation/kbuild/kconfig-language.rst
subsection "Kconfig recursive dependency limitations"

make[2]: *** [scripts/kconfig/Makefile:56: menuconfig] Error 1
make[1]: *** [/home/novalake/work/sof/linux/Makefile:766: menuconfig] Error 2
make: *** [Makefile:248: __sub-make] Error 2

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@niranjanhyti Instead of selecting SND_SOC_SDCA, can you try imply SND_SOC_TAC5XX2_SDW? So, the SND_SOC_TAC5XX2_SDW module will be selected when SND_SOC_SDCA is selected.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bardliao It doesn't enable CONFIG_SND_SOC_TAC5XX2_SDW even when CONFIG_SND_SOC_SDCA=m with the change

--- a/sound/soc/intel/boards/Kconfig
+++ b/sound/soc/intel/boards/Kconfig
@@ -533,7 +533,7 @@ config SND_SOC_INTEL_SOUNDWIRE_SOF_MACH
        select SND_SOC_CS35L56_SPI
        select SND_SOC_CS35L56_SDW
        select SND_SOC_ES9356
-       select SND_SOC_TAC5XX2_SDW
+       imply SND_SOC_TAC5XX2_SDW

$ cat .config | grep -E 'SND_SOC_SDCA|SOC_INTEL_SOUND|TAC5XX'
CONFIG_SND_SOC_INTEL_SOUNDWIRE_SOF_MACH=m
CONFIG_SND_SOC_SDCA=m
CONFIG_SND_SOC_SDCA_HID=y
CONFIG_SND_SOC_SDCA_IRQ=y
CONFIG_SND_SOC_SDCA_FDL=y
CONFIG_SND_SOC_SDCA_OPTIONAL=m
# CONFIG_SND_SOC_SDCA_CLASS is not set
# CONFIG_SND_SOC_TAC5XX2_SDW is not set

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@niranjanhyti Can you remove CONFIG_SND_SOC_TAC5XX2_SDW from .kconfig and run make olddefconfig? imply is just a suggestion and it will only apply the default value when there is no value set. In other words, if there is a CONFIG_SND_SOC_TAC5XX2_SDW in the .kconfig file already, the kernel will not change the value.

 Add Texas Instrument's tac5xx2-sdw family to include
support for soundwire codecs tac5572, tac5682

Signed-off-by: Niranjan H Y <niranjan.hy@ti.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@bardliao
bardliao requested a lite review from Copilot August 28, 2026 11:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@bardliao
bardliao merged commit 13ac31e into thesofproject:topic/sof-dev Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants