@@ -1379,11 +1379,11 @@ static int mt8195_mt6359_soc_card_probe(struct mtk_soc_card_data *soc_card_data,
1379
1379
for_each_card_prelinks (card , i , dai_link ) {
1380
1380
if (strcmp (dai_link -> name , "DPTX_BE" ) == 0 ) {
1381
1381
if (dai_link -> num_codecs &&
1382
- strcmp (dai_link -> codecs -> dai_name , "snd-soc-dummy-dai" ))
1382
+ ! snd_soc_dlc_is_dummy (dai_link -> codecs ))
1383
1383
dai_link -> init = mt8195_dptx_codec_init ;
1384
1384
} else if (strcmp (dai_link -> name , "ETDM3_OUT_BE" ) == 0 ) {
1385
1385
if (dai_link -> num_codecs &&
1386
- strcmp (dai_link -> codecs -> dai_name , "snd-soc-dummy-dai" ))
1386
+ ! snd_soc_dlc_is_dummy (dai_link -> codecs ))
1387
1387
dai_link -> init = mt8195_hdmi_codec_init ;
1388
1388
} else if (strcmp (dai_link -> name , "DL_SRC_BE" ) == 0 ||
1389
1389
strcmp (dai_link -> name , "UL_SRC1_BE" ) == 0 ||
@@ -1423,7 +1423,7 @@ static int mt8195_mt6359_soc_card_probe(struct mtk_soc_card_data *soc_card_data,
1423
1423
codec_init |= RT5682_CODEC_INIT ;
1424
1424
}
1425
1425
} else {
1426
- if (strcmp (dai_link -> codecs -> dai_name , "snd-soc-dummy-dai" )) {
1426
+ if (! snd_soc_dlc_is_dummy (dai_link -> codecs )) {
1427
1427
if (!(codec_init & DUMB_CODEC_INIT )) {
1428
1428
dai_link -> init = mt8195_dumb_amp_init ;
1429
1429
codec_init |= DUMB_CODEC_INIT ;
0 commit comments