• Mark Brown's avatar
    ASoC: dapm: Fix handling of loops · 8af294b4
    Mark Brown authored
    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: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
    Acked-by: default avatarLiam Girdwood <liam.r.girdwood@linux.intel.com>
    8af294b4
soc-dapm.h 25.3 KB