Browse Source

Merge "asoc: wcd937x: fix wcd9375 widgets override issue"

Linux Build Service Account 6 years ago
parent
commit
a69dbed411
1 changed files with 1 additions and 6 deletions
  1. 1 6
      asoc/codecs/wcd937x/wcd937x.c

+ 1 - 6
asoc/codecs/wcd937x/wcd937x.c

@@ -1715,12 +1715,7 @@ static int wcd937x_soc_codec_probe(struct snd_soc_codec *codec)
 				__func__);
 			goto err_hwdep;
 		}
-		ret = snd_soc_dapm_new_widgets(dapm->card);
-		if (ret < 0) {
-			dev_err(codec->dev, "%s: Failed to add widgets\n",
-				__func__);
-			goto err_hwdep;
-		}
+		snd_soc_dapm_sync(dapm);
 	}
 	wcd937x->version = WCD937X_VERSION_1_0;
 	return ret;