From 233b39f8b8b155154cace077078cd4a79312b451 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Sat, 8 Oct 2011 13:36:03 +0100 Subject: [PATCH] --- yaml --- r: 270807 b: refs/heads/master c: 25c77c5fae5e0ef43ab6381f89fc41e26d2ca0f4 h: refs/heads/master i: 270805: 9cb0df7e61addcb1266aab946f4cb1df87e2e511 270803: 448c147b9c0cc303734e1beb4370fcbc08fd9efb 270799: f2f903d6718b7f8d3a6ba329bcfd6346532681f5 v: v3 --- [refs] | 2 +- trunk/include/sound/soc-dapm.h | 3 +++ trunk/sound/soc/codecs/tlv320aic3x.c | 4 ++++ trunk/sound/soc/soc-dapm.c | 3 ++- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 5ce2db2f37b2..24bb727e0086 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3ebb5c9b1056b7eaae3e5dd11b97e2830797e51c +refs/heads/master: 25c77c5fae5e0ef43ab6381f89fc41e26d2ca0f4 diff --git a/trunk/include/sound/soc-dapm.h b/trunk/include/sound/soc-dapm.h index bfefc16137ea..17a4c17f19f5 100644 --- a/trunk/include/sound/soc-dapm.h +++ b/trunk/include/sound/soc-dapm.h @@ -381,6 +381,9 @@ int snd_soc_dapm_force_enable_pin(struct snd_soc_dapm_context *dapm, int snd_soc_dapm_ignore_suspend(struct snd_soc_dapm_context *dapm, const char *pin); +/* Mostly internal - should not normally be used */ +void dapm_mark_dirty(struct snd_soc_dapm_widget *w, const char *reason); + /* dapm widget types */ enum snd_soc_dapm_type { snd_soc_dapm_input = 0, /* input pin */ diff --git a/trunk/sound/soc/codecs/tlv320aic3x.c b/trunk/sound/soc/codecs/tlv320aic3x.c index d877b39b5000..be55b7f36282 100644 --- a/trunk/sound/soc/codecs/tlv320aic3x.c +++ b/trunk/sound/soc/codecs/tlv320aic3x.c @@ -197,6 +197,10 @@ static int snd_soc_dapm_put_volsw_aic3x(struct snd_kcontrol *kcontrol, else /* old connection must be powered down */ path->connect = invert ? 1 : 0; + + dapm_mark_dirty(path->source, "tlv320aic3x source"); + dapm_mark_dirty(path->sink, "tlv320aic3x sink"); + break; } diff --git a/trunk/sound/soc/soc-dapm.c b/trunk/sound/soc/soc-dapm.c index 258326b031cf..f42e8b9fb17d 100644 --- a/trunk/sound/soc/soc-dapm.c +++ b/trunk/sound/soc/soc-dapm.c @@ -124,7 +124,7 @@ static bool dapm_dirty_widget(struct snd_soc_dapm_widget *w) return !list_empty(&w->dirty); } -static void dapm_mark_dirty(struct snd_soc_dapm_widget *w, const char *reason) +void dapm_mark_dirty(struct snd_soc_dapm_widget *w, const char *reason) { if (!dapm_dirty_widget(w)) { dev_vdbg(w->dapm->dev, "Marking %s dirty due to %s\n", @@ -132,6 +132,7 @@ static void dapm_mark_dirty(struct snd_soc_dapm_widget *w, const char *reason) list_add_tail(&w->dirty, &w->dapm->card->dapm_dirty); } } +EXPORT_SYMBOL_GPL(dapm_mark_dirty); /* create a new dapm widget */ static inline struct snd_soc_dapm_widget *dapm_cnew_widget(