OSDN Git Service

ASoC: Intel: boards: max98373: get dapm from cpu_dai
authorBard Liao <yung-chuan.liao@linux.intel.com>
Mon, 8 Feb 2021 23:40:43 +0000 (17:40 -0600)
committerMark Brown <broonie@kernel.org>
Wed, 10 Feb 2021 17:16:30 +0000 (17:16 +0000)
commit1183c350011a6f6b551c200b9206bf1808c22a4c
treeeb6515aea0446e724d09903aed31ecb5a17549f4
parentae4fc532244b3bb4d86c397418d980b0c6be1dfd
ASoC: Intel: boards: max98373: get dapm from cpu_dai

There is a prefix on max98373 codec, and the prefix will be added to
the pin name However, there is no prefix on the "Right Spk" and "Left
Spk" widgets.

To avoid getting a redundant prefix, we should get dapm from cpu_dai
component.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210208234043.59750-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_maxim_common.c