diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-02-15 21:27:22 +0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-04 07:01:01 +0400 |
commit | ddbce97cd1798ba4661e33662c659b168e9f51ed (patch) | |
tree | 71d0238f92143a022c973f52ba8ba9f1ca536a83 /sound/soc/codecs/arizona.h | |
parent | f3f1163d19ebd5aa374e5df5372a8f932f2bd5f9 (diff) | |
download | linux-ddbce97cd1798ba4661e33662c659b168e9f51ed.tar.xz |
ASoC: arizona: Only allow input volume updates when inputs are enabled
Since we are automatically managing the mutes we may as well also manage
the volume update bits, disabling volume updates while none of the inputs
are active. Since we are doing this we may as well allow the volumes to
ramp together so only enable volume updates once at the end of power up.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/arizona.h')
-rw-r--r-- | sound/soc/codecs/arizona.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/arizona.h b/sound/soc/codecs/arizona.h index 3f84943b23bf..d592adcc969c 100644 --- a/sound/soc/codecs/arizona.h +++ b/sound/soc/codecs/arizona.h @@ -65,6 +65,9 @@ struct arizona_priv { int sysclk; int asyncclk; struct arizona_dai_priv dai[ARIZONA_MAX_DAI]; + + int num_inputs; + unsigned int in_pending; }; #define ARIZONA_NUM_MIXER_INPUTS 99 |