Skip to content

Commit bf2a7ff

Browse files
morimotobroonie
authored andcommitted
ASoC: mediatek: mt8188: use snd_soc_dlc_is_dummy()
We can use snd_soc_dlc_is_dummy(). Let's use it. Signed-off-by: Kuninori Morimoto <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 3e021f3 commit bf2a7ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sound/soc/mediatek/mt8188/mt8188-mt6359.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,11 +1333,11 @@ static int mt8188_mt6359_soc_card_probe(struct mtk_soc_card_data *soc_card_data,
13331333
for_each_card_prelinks(card, i, dai_link) {
13341334
if (strcmp(dai_link->name, "DPTX_BE") == 0) {
13351335
if (dai_link->num_codecs &&
1336-
strcmp(dai_link->codecs->dai_name, "snd-soc-dummy-dai"))
1336+
!snd_soc_dlc_is_dummy(dai_link->codecs))
13371337
dai_link->init = mt8188_dptx_codec_init;
13381338
} else if (strcmp(dai_link->name, "ETDM3_OUT_BE") == 0) {
13391339
if (dai_link->num_codecs &&
1340-
strcmp(dai_link->codecs->dai_name, "snd-soc-dummy-dai"))
1340+
!snd_soc_dlc_is_dummy(dai_link->codecs))
13411341
dai_link->init = mt8188_hdmi_codec_init;
13421342
} else if (strcmp(dai_link->name, "DL_SRC_BE") == 0 ||
13431343
strcmp(dai_link->name, "UL_SRC_BE") == 0) {
@@ -1387,7 +1387,7 @@ static int mt8188_mt6359_soc_card_probe(struct mtk_soc_card_data *soc_card_data,
13871387
init_es8326 = true;
13881388
}
13891389
} else {
1390-
if (strcmp(dai_link->codecs->dai_name, "snd-soc-dummy-dai")) {
1390+
if (!snd_soc_dlc_is_dummy(dai_link->codecs)) {
13911391
if (!init_dumb) {
13921392
dai_link->init = mt8188_dumb_amp_init;
13931393
init_dumb = true;

0 commit comments

Comments
 (0)