]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: component: Remove misplaced prefix handling in pin control functions
authorMark Brown <broonie@kernel.org>
Mon, 26 Jul 2021 19:41:23 +0000 (20:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Sep 2021 08:22:44 +0000 (10:22 +0200)
commitdbd38b275b86c3229377451dd269a380ce8f7000
tree65ded0b7194000f85677130b0bc6f21a532677bf
parent6f2ec29dfd5e9df75d9c11e56787868f83c6b2f0
ASoC: component: Remove misplaced prefix handling in pin control functions

[ Upstream commit 31428c78748cafdd9352e1f622eb89bf453d9700 ]

When the component level pin control functions were added they for some
no longer obvious reason handled adding prefixing of widget names. This
meant that when the lack of prefix handling in the DAPM level pin
operations was fixed by ae4fc532244b3bb4d (ASoC: dapm: use component
prefix when checking widget names) the one device using the component
level API ended up with the prefix being applied twice, causing all
lookups to fail.

Fix this by removing the redundant prefixing from the component code,
which has the nice side effect of also making that code much simpler.

Reported-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Tested-by: Lucas Tanure <tanureal@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210726194123.54585-1-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/soc-component.c