ASoC: Handle ignore_pmdown_time for CODEC to CODEC links
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 5 Mar 2014 12:17:42 +0000 (13:17 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 6 Mar 2014 09:04:55 +0000 (17:04 +0800)
commit208a1589db3e30767223d97e39e13237328e8a6e
tree07a178803a19d3517d7b393e7b821bae2faf3e2b
parent38dbfb59d1175ef458d006556061adeaa8751b72
ASoC: Handle ignore_pmdown_time for CODEC to CODEC links

For CODEC to CODEC links we should only immediately power down if both CODECs
are configured to ignore the power down delay. Factor the logic for this
into a helper function that can be used for both compressed and normal PCMs.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
include/sound/soc.h
sound/soc/soc-compress.c
sound/soc/soc-pcm.c