]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: SDCA: fix finding wrong entity
authorShuming Fan <shumingf@realtek.com>
Wed, 25 Mar 2026 11:04:06 +0000 (19:04 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 25 Mar 2026 15:37:51 +0000 (15:37 +0000)
commitc673efd5db2223c2e8b885025bcd96bca6cdb171
tree898fce62fd38f2a6f5851d47289819fdbb897bbd
parentc991ca3238410b611a2ce59adeca9b55850aff69
ASoC: SDCA: fix finding wrong entity

This patch fixes an issue like:
where searching for the entity 'FU 11' could incorrectly match 'FU 113' first.
The driver should first perform an exact match on the full string name.
If no exact match is found, it can then fall back to a partial match.

Fixes: 48fa77af2f4a ("ASoC: SDCA: Add terminal type into input/output widget name")
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Shuming Fan <shumingf@realtek.com>
Link: https://patch.msgid.link/20260325110406.3232420-1-shumingf@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sdca/sdca_functions.c