From 201911d93e34dd623878220bf75421381ae93017 Mon Sep 17 00:00:00 2001 From: Ramprasad Katkam Date: Wed, 29 Aug 2018 11:27:34 +0530 Subject: [PATCH] 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 --- asoc/codecs/wcd937x/wcd937x.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/asoc/codecs/wcd937x/wcd937x.c b/asoc/codecs/wcd937x/wcd937x.c index d60b9f37b673..3056b26e13db 100644 --- a/asoc/codecs/wcd937x/wcd937x.c +++ b/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;