Commit 606e21fd authored by Guneshwor Singh's avatar Guneshwor Singh Committed by Mark Brown

ASoC: Intel: Skylake: Add dai load ops for dais from topology

Since FE dais can come from topology, add dai_load ops
for the dais from topology.
Signed-off-by: default avatarGuneshwor Singh <guneshwor.o.singh@intel.com>
Acked-By: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c3ae22e3
...@@ -977,6 +977,14 @@ static struct snd_soc_dai_driver skl_platform_dai[] = { ...@@ -977,6 +977,14 @@ static struct snd_soc_dai_driver skl_platform_dai[] = {
}, },
}; };
int skl_dai_load(struct snd_soc_component *cmp,
struct snd_soc_dai_driver *pcm_dai)
{
pcm_dai->ops = &skl_pcm_dai_ops;
return 0;
}
static int skl_platform_open(struct snd_pcm_substream *substream) static int skl_platform_open(struct snd_pcm_substream *substream)
{ {
struct snd_soc_pcm_runtime *rtd = substream->private_data; struct snd_soc_pcm_runtime *rtd = substream->private_data;
......
...@@ -3331,6 +3331,7 @@ static struct snd_soc_tplg_ops skl_tplg_ops = { ...@@ -3331,6 +3331,7 @@ static struct snd_soc_tplg_ops skl_tplg_ops = {
.io_ops = skl_tplg_kcontrol_ops, .io_ops = skl_tplg_kcontrol_ops,
.io_ops_count = ARRAY_SIZE(skl_tplg_kcontrol_ops), .io_ops_count = ARRAY_SIZE(skl_tplg_kcontrol_ops),
.manifest = skl_manifest_load, .manifest = skl_manifest_load,
.dai_load = skl_dai_load,
}; };
/* /*
......
...@@ -501,4 +501,7 @@ int skl_pcm_host_dma_prepare(struct device *dev, ...@@ -501,4 +501,7 @@ int skl_pcm_host_dma_prepare(struct device *dev,
struct skl_pipe_params *params); struct skl_pipe_params *params);
int skl_pcm_link_dma_prepare(struct device *dev, int skl_pcm_link_dma_prepare(struct device *dev,
struct skl_pipe_params *params); struct skl_pipe_params *params);
int skl_dai_load(struct snd_soc_component *cmp,
struct snd_soc_dai_driver *pcm_dai);
#endif #endif
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