Prechádzať zdrojové kódy

asoc: wcd937x: fix wcd9375 widgets override issue

wcd9375 widgets addition override wcd9370 widgets
registered already in dapm. Need to call
snd_soc_dapm_sync only after adding new widgets/routes.

Change-Id: I285d2f971ca2daae865156e050904fdcc9ea8c3c
signed-off-by: Ramprasad Katkam <[email protected]>
Ramprasad Katkam 6 rokov pred
rodič
commit
201911d93e
1 zmenil súbory, kde vykonal 1 pridanie a 6 odobranie
  1. 1 6
      asoc/codecs/wcd937x/wcd937x.c

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

@@ -1623,12 +1623,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);
 	}
 	return ret;