asoc: Get num_cpus from dai_link after it was removed
With new "struct snd_soc_pcm_runtime", num_cpus is removed, instead num_cpus now is in "struct snd_soc_dai_link". Change-Id: Ia08e98ec0afa72deab147c6758fd6aeaf4477e75
This commit is contained in:
@@ -1157,8 +1157,8 @@ int msm_common_dai_link_init(struct snd_soc_pcm_runtime *rtd)
|
||||
pdata->id = SLIM;
|
||||
} else {
|
||||
pdata->id = CODEC_DMA;
|
||||
if (rtd->num_codecs <= MAX_CODEC_DAI) {
|
||||
pdata->num_codec_dai = rtd->num_codecs;
|
||||
if (rtd->dai_link->num_codecs <= MAX_CODEC_DAI) {
|
||||
pdata->num_codec_dai = rtd->dai_link->num_codecs;
|
||||
for_each_rtd_codec_dais(rtd, index, codec_dai) {
|
||||
pdata->dai[index] = codec_dai;
|
||||
}
|
||||
|
Reference in New Issue
Block a user