[alsa-devel] [PATCH 1/3] ASoC: dapm: Mark widgets as dirty when a route is added
Liam Girdwood
lrg at ti.com
Fri Jul 6 16:04:42 CEST 2012
On Thu, 2012-07-05 at 17:27 +0100, Mark Brown wrote:
> 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 at opensource.wolfsonmicro.com>
> ---
> sound/soc/soc-dapm.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
> index ed1860c..beac5e6 100644
> --- a/sound/soc/soc-dapm.c
> +++ b/sound/soc/soc-dapm.c
> @@ -2250,6 +2250,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:
All
Acked-by: Liam Girdwood <lrg at ti.com>
More information about the Alsa-devel
mailing list