summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/arizona.h
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2015-01-20 16:31:50 +0000
committerMark Brown <broonie@kernel.org>2015-01-27 17:28:50 +0000
commit054e1b4892271731453fbfa8658899050196e427 (patch)
tree605805dac28322fc99a972a8a19902b9a2df7c44 /sound/soc/codecs/arizona.h
parenta6b3db2c837a2db359bf7f846346680883dbb032 (diff)
downloadop-kernel-dev-054e1b4892271731453fbfa8658899050196e427.zip
op-kernel-dev-054e1b4892271731453fbfa8658899050196e427.tar.gz
ASoC: arizona: Add delay for output disable
Give the output disable sequence a chance to fully complete, otherwise there is a danger we may remove the clock before it is finished resulting in a pop noise. The delay for each output must be cumulative and these are coalesced into a single delay. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/arizona.h')
-rw-r--r--sound/soc/codecs/arizona.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/arizona.h b/sound/soc/codecs/arizona.h
index 942cfb1..59b0f50 100644
--- a/sound/soc/codecs/arizona.h
+++ b/sound/soc/codecs/arizona.h
@@ -77,6 +77,9 @@ struct arizona_priv {
int num_inputs;
unsigned int in_pending;
+ unsigned int out_down_pending;
+ unsigned int out_down_delay;
+
unsigned int spk_ena:2;
unsigned int spk_ena_pending:1;
};
OpenPOWER on IntegriCloud