]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoc: SOF: topology: connect DAI to a single DAI link
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Fri, 9 May 2025 08:53:18 +0000 (11:53 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 9 May 2025 09:20:15 +0000 (18:20 +0900)
commit6052f05254b4fe7b16bbd8224779af52fba98b71
treed4770dff39ce42f7a3ef11f4b9dcb8384238569d
parent4e7010826e96702d7fad13dbe85de4e94052f833
ASoc: SOF: topology: connect DAI to a single DAI link

The partial matching of DAI widget to link names, can cause problems if
one of the widget names is a substring of another. E.g. with names
"Foo1" and Foo10", it's not possible to correctly link up "Foo1".

Modify the logic so that if multiple DAI links match the widget stream
name, prioritize a full match if one is found.

Fixes: fe88788779fc ("ASoC: SOF: topology: Use partial match for connecting DAI link and DAI widget")
Link: https://github.com/thesofproject/linux/issues/5308
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://patch.msgid.link/20250509085318.13936-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/topology.c