Commit a40acc6b authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Mark Brown

ASoC: Intel: bdw-rt5650: change cpu_dai and platform components for SOF

The legacy driver uses dummy cpu_dai and platform, SOF requires actual
values to bind.
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200110235751.3404-5-pierre-louis.bossart@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 64df6afa
...@@ -223,6 +223,14 @@ SND_SOC_DAILINK_DEF(platform, ...@@ -223,6 +223,14 @@ SND_SOC_DAILINK_DEF(platform,
SND_SOC_DAILINK_DEF(be, SND_SOC_DAILINK_DEF(be,
DAILINK_COMP_ARRAY(COMP_CODEC("i2c-10EC5650:00", "rt5645-aif1"))); DAILINK_COMP_ARRAY(COMP_CODEC("i2c-10EC5650:00", "rt5645-aif1")));
#if IS_ENABLED(CONFIG_SND_SOC_SOF_BROADWELL)
SND_SOC_DAILINK_DEF(ssp0_port,
DAILINK_COMP_ARRAY(COMP_CPU("ssp0-port")));
#else
SND_SOC_DAILINK_DEF(ssp0_port,
DAILINK_COMP_ARRAY(COMP_DUMMY()));
#endif
static struct snd_soc_dai_link bdw_rt5650_dais[] = { static struct snd_soc_dai_link bdw_rt5650_dais[] = {
/* Front End DAI links */ /* Front End DAI links */
{ {
...@@ -256,7 +264,7 @@ static struct snd_soc_dai_link bdw_rt5650_dais[] = { ...@@ -256,7 +264,7 @@ static struct snd_soc_dai_link bdw_rt5650_dais[] = {
.dpcm_playback = 1, .dpcm_playback = 1,
.dpcm_capture = 1, .dpcm_capture = 1,
.init = bdw_rt5650_init, .init = bdw_rt5650_init,
SND_SOC_DAILINK_REG(dummy, be, dummy), SND_SOC_DAILINK_REG(ssp0_port, be, platform),
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment