From: Mark Brown Date: Fri, 22 Feb 2013 17:48:15 +0000 (+0000) Subject: ASoC: dapm: Fix handling of loops X-Git-Tag: v3.9-rc6~16^2~7^2~5^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8af294b472067e9034fe288d912455cc0961d1b9;p=pandora-kernel.git 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 Acked-by: Liam Girdwood --- Reading git-diff-tree failed