On 12/5/23 07:50, Richard Fitzgerald wrote:
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
We should probably do the same thing for sof_sdw_rt_map.c, there's no good reason to encode rt1316-2 SPOL and rt1318-2 SPOR