ASoC: Intel: sof_sdw_cs_amp: Connect outputs to a speaker widget
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Tue, 5 Dec 2023 13:50:01 +0000 (13:50 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 5 Dec 2023 15:41:31 +0000 (15:41 +0000)
commit138a4e2a26ec73197e22fe64ee3957b1594eabb3
treead262e34deb920d48a64c57281baf71f58286d20
parentf31c166a5027e927e5c032d40ef2e484d9ecd612
ASoC: Intel: sof_sdw_cs_amp: Connect outputs to a speaker widget

Hookup the CS35L56 DAPM_OUTPUT widgets to a DAPM_SPK widget so
that there is a complete logical path to a speaker.

There is no particular reason to use multiple speaker widgets.
The CS35L56 are designed to work together as a set so they have
all been connected to a single speaker widget.

Instead of a hardcoded list of codec widget names, the code walks
through all the codecs on the dailink and for every cs35l56 it uses
its name prefix to construct the source end of the route. This adds
a small amount of overhead during probe but has the benefit that it
isn't dependent on every system using the same prefixes.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20231205135001.2506070-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_sdw_cs_amp.c