ASoC: SOF: topology: Use partial match for connecting DAI link and DAI widget
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Fri, 26 May 2023 20:41:48 +0000 (15:41 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 30 May 2023 13:11:03 +0000 (14:11 +0100)
commitfe88788779fc30a4117dc2f9db4b50182679bb67
tree71848495b8390989885c44f3735d7506e51cc284
parente018e0b346706d0a0d7d7f884f3850cc0903abc2
ASoC: SOF: topology: Use partial match for connecting DAI link and DAI widget

This allows setting shorter names for the widget stream names in
topology. For example, in the case of HDA Analog DAI link, the stream
name is "Analog Playback and Capture". But it is enough to match "Analog"
in the DAI link stream name with a widget's stream name. This is needed
to set more meaningful names for the DAI widgets using the stream name
in topology.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20230526204149.456068-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/topology.c