Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 201911d9 authored by Ramprasad Katkam's avatar Ramprasad Katkam Committed by Laxminath Kasam
Browse files

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: default avatarRamprasad Katkam <katkam@codeaurora.org>
parent 14f47cc8
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -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;