Skip to contentSkip to conversation

ASoC: dapm: Remove the redundant check

PATCH Superseded anish kumar 1 participant 1 message Aug 26, 2017

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 ASoC: dapm: Remove the redundant check

Remove this redundant check, the check for creating the control in the case of codec to codec dai link is moved to snd_soc_dapm_new_pcm function.

---
 sound/soc/soc-dapm.c | 4 ----
 1 file changed, 4 deletions(-)
sound/soc/soc-dapm.c +0 -4
index 5d792dc..3ecaad0 100644
@@ -1032,10 +1032,6 @@ static int dapm_new_dai_link(struct snd_soc_dapm_widget *w)
 	struct snd_soc_dapm_context *dapm = w->dapm;
 	struct snd_card *card = dapm->card->snd_card;
 
-	/* create control for links with > 1 config */
-	if (w->num_params <= 1)
-		return 0;
-
 	/* add kcontrol */
 	for (i = 0; i < w->num_kcontrols; i++) {
 		kcontrol = snd_soc_cnew(&w->kcontrol_news[i], w,
Signature · 1 line
2.10.1 (Apple Git-78)