diff options
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r-- | sound/soc/soc-dapm.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index d84bd0f167b6..548b1c9e875e 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
@@ -2374,6 +2374,9 @@ static int snd_soc_dapm_add_path(struct snd_soc_dapm_context *dapm, | |||
2374 | wsource->ext = 1; | 2374 | wsource->ext = 1; |
2375 | } | 2375 | } |
2376 | 2376 | ||
2377 | dapm_mark_dirty(wsource, "Route added"); | ||
2378 | dapm_mark_dirty(wsink, "Route added"); | ||
2379 | |||
2377 | /* connect static paths */ | 2380 | /* connect static paths */ |
2378 | if (control == NULL) { | 2381 | if (control == NULL) { |
2379 | list_add(&path->list, &dapm->card->paths); | 2382 | list_add(&path->list, &dapm->card->paths); |
@@ -2436,9 +2439,6 @@ static int snd_soc_dapm_add_path(struct snd_soc_dapm_context *dapm, | |||
2436 | return 0; | 2439 | return 0; |
2437 | } | 2440 | } |
2438 | 2441 | ||
2439 | dapm_mark_dirty(wsource, "Route added"); | ||
2440 | dapm_mark_dirty(wsink, "Route added"); | ||
2441 | |||
2442 | return 0; | 2442 | return 0; |
2443 | err: | 2443 | err: |
2444 | kfree(path); | 2444 | kfree(path); |
@@ -2712,9 +2712,8 @@ EXPORT_SYMBOL_GPL(snd_soc_dapm_weak_routes); | |||
2712 | * | 2712 | * |
2713 | * Returns 0 for success. | 2713 | * Returns 0 for success. |
2714 | */ | 2714 | */ |
2715 | int snd_soc_dapm_new_widgets(struct snd_soc_dapm_context *dapm) | 2715 | int snd_soc_dapm_new_widgets(struct snd_soc_card *card) |
2716 | { | 2716 | { |
2717 | struct snd_soc_card *card = dapm->card; | ||
2718 | struct snd_soc_dapm_widget *w; | 2717 | struct snd_soc_dapm_widget *w; |
2719 | unsigned int val; | 2718 | unsigned int val; |
2720 | 2719 | ||