Prechádzať zdrojové kódy

Merge "asoc: Get num_cpus from dai_link after it was removed"

qctecmdr 2 rokov pred
rodič
commit
6fc0ac695e
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      asoc/msm_common.c

+ 2 - 2
asoc/msm_common.c

@@ -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;
 				}