ASoC: dapm: use component prefix when checking widget names
authorShuming Fan <shumingf@realtek.com>
Mon, 8 Feb 2021 23:40:42 +0000 (17:40 -0600)
committerMark Brown <broonie@kernel.org>
Wed, 10 Feb 2021 17:16:29 +0000 (17:16 +0000)
commitae4fc532244b3bb4d86c397418d980b0c6be1dfd
tree755729a5a86c8233fedcd7989f87f7d4e78a79c8
parentd40dac7ae8c0f213ac1da7896c35ddc2c58419ab
ASoC: dapm: use component prefix when checking widget names

On a TigerLake SoundWire platform, we see these warnings:

[   27.360086] rt5682 sdw:0:25d:5682:0: ASoC: DAPM unknown pin MICBIAS
[   27.360092] rt5682 sdw:0:25d:5682:0: ASoC: DAPM unknown pin Vref2

This is root-caused to the addition of a component prefix in the
machine driver. The tests in soc-dapm should account for a prefix
instead of reporting an invalid issue.

Reported-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@linux.intel.com>
Signed-off-by: Shuming Fan <shumingf@realtek.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210208234043.59750-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c