aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/soc-dapm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 2ee738c08ca4..4c868f9087f4 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -2403,6 +2403,12 @@ int snd_soc_dapm_get_pin_status(struct snd_soc_dapm_context *dapm,
2403 return w->connected; 2403 return w->connected;
2404 } 2404 }
2405 2405
2406 /* Try again in other contexts */
2407 list_for_each_entry(w, &dapm->card->widgets, list) {
2408 if (!strcmp(w->name, pin))
2409 return w->connected;
2410 }
2411
2406 return 0; 2412 return 0;
2407} 2413}
2408EXPORT_SYMBOL_GPL(snd_soc_dapm_get_pin_status); 2414EXPORT_SYMBOL_GPL(snd_soc_dapm_get_pin_status);