Unverified Commit fed0805f authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

ASoC: mediatek: mt8195: use snd_soc_dlc_is_dummy()

parent bf2a7ff8
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1379,11 +1379,11 @@ static int mt8195_mt6359_soc_card_probe(struct mtk_soc_card_data *soc_card_data,
	for_each_card_prelinks(card, i, dai_link) {
		if (strcmp(dai_link->name, "DPTX_BE") == 0) {
			if (dai_link->num_codecs &&
			    strcmp(dai_link->codecs->dai_name, "snd-soc-dummy-dai"))
			    !snd_soc_dlc_is_dummy(dai_link->codecs))
				dai_link->init = mt8195_dptx_codec_init;
		} else if (strcmp(dai_link->name, "ETDM3_OUT_BE") == 0) {
			if (dai_link->num_codecs &&
			    strcmp(dai_link->codecs->dai_name, "snd-soc-dummy-dai"))
			    !snd_soc_dlc_is_dummy(dai_link->codecs))
				dai_link->init = mt8195_hdmi_codec_init;
		} else if (strcmp(dai_link->name, "DL_SRC_BE") == 0 ||
			   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,
					codec_init |= RT5682_CODEC_INIT;
				}
			} else {
				if (strcmp(dai_link->codecs->dai_name, "snd-soc-dummy-dai")) {
				if (!snd_soc_dlc_is_dummy(dai_link->codecs)) {
					if (!(codec_init & DUMB_CODEC_INIT)) {
						dai_link->init = mt8195_dumb_amp_init;
						codec_init |= DUMB_CODEC_INIT;