Skip to content

Commit

Permalink
ASoC: dapm: Mark widgets as dirty when a route is added
Browse files Browse the repository at this point in the history
If we add a new route at runtime then we'll need to recheck the connections
to the affected widgets.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
  • Loading branch information
Mark Brown committed Jul 6, 2012
1 parent 3ac3f5c commit fabd038
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sound/soc/soc-dapm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2251,6 +2251,10 @@ static int snd_soc_dapm_add_route(struct snd_soc_dapm_context *dapm,
path->connect = 0;
return 0;
}

dapm_mark_dirty(wsource, "Route added");
dapm_mark_dirty(wsink, "Route added");

return 0;

err:
Expand Down

0 comments on commit fabd038

Please sign in to comment.