diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-02-22 17:48:15 +0000 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-02-25 13:51:22 +0000 |
commit | 8af294b472067e9034fe288d912455cc0961d1b9 (patch) | |
tree | b066db8681e6220a3b8ddbc83d2f820a7450fb4e /include/sound/soc-dapm.h | |
parent | 19f949f52599ba7c3f67a5897ac6be14bfcb1200 (diff) | |
download | linux-8af294b472067e9034fe288d912455cc0961d1b9.tar.gz linux-8af294b472067e9034fe288d912455cc0961d1b9.tar.bz2 linux-8af294b472067e9034fe288d912455cc0961d1b9.zip |
ASoC: dapm: Fix handling of loops
Currently if a path loops back on itself we correctly skip over it to
avoid going into an infinite loop but this causes us to ignore the need
to power up the path as we don't count the loop for the purposes of
counting inputs and outputs. This means that internal loopbacks within a
device that have powered devices on them won't be powered up.
Fix this by treating any path that is currently in the process of being
recursed as having a single input or output so that it is counted for
the purposes of power decisions.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Diffstat (limited to 'include/sound/soc-dapm.h')
-rw-r--r-- | include/sound/soc-dapm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index e1ef63d4a5c4..44a30b108683 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h @@ -488,6 +488,7 @@ struct snd_soc_dapm_path { /* status */ u32 connect:1; /* source and sink widgets are connected */ u32 walked:1; /* path has been walked */ + u32 walking:1; /* path is in the process of being walked */ u32 weak:1; /* path ignored for power management */ int (*connected)(struct snd_soc_dapm_widget *source, |