summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSudheer Papothi <spapothi@codeaurora.org>2016-11-03 02:30:27 +0530
committerSudheer Papothi <spapothi@codeaurora.org>2016-11-04 04:19:04 +0530
commitcb1e9d53bf92f8b552ea01de32ccb66d71060477 (patch)
treed97cb987c364d0bf8af3e690433b2a171df5918b
parent758693b4a6d94a0724081578d24f6ba1cc449255 (diff)
ASoC: soc-dapm: Invalidate DAPM path during dapm addition of routes
During sound card registration, dapm adds routes of codec and other component paths, but the invalidation of the widgets in these paths will happen only when the sound card is instantiated. As these routes are added before sound card instantiation, these widgets are not invalidated until a playback or recording usecase is started. Audio playback or recording usecase is not started in the case of codec loopback. So, if codec loopback is performed just after soundcard registration, then the widgets are not powered up as those widgets are not invalidated, results into codec loopback failure. Change is to remove the sound card instantiation check condition in dapm add paths, so widgets get invalidated whenever they are added. Change-Id: I734f53162055373126f9a11038b8cbfc75ae7a5e Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
-rw-r--r--sound/soc/soc-dapm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 4c66eeaeeb03..b1980df07dce 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -2623,8 +2623,7 @@ static int snd_soc_dapm_add_path(struct snd_soc_dapm_context *dapm,
dapm_mark_dirty(widgets[dir], "Route added");
}
- if (dapm->card->instantiated && path->connect)
- dapm_path_invalidate(path);
+ dapm_path_invalidate(path);
return 0;
err: