diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-01-19 17:49:43 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-01-21 07:04:08 -0500 |
commit | a96ca3387382498ec8b501db5acef3ed9eb1bd36 (patch) | |
tree | 3bc8d76f8796b0e555585802576fc2fed574587a /include/sound/soc.h | |
parent | b91b8fa02482a5a18f598ee5d2cd42970051731b (diff) |
ASoC: Support turning off bias when the CODEC is idle
Currently ASoC always maintains the bias of the CODEC while the system
is active. With older mobile CODECs this is required since the outputs
are referenced to a non-zero voltage and enabling or disabling this
voltage without audible pops or clicks in the output takes too long to
do when starting or stopping audio.
As a result of features such as ground referenced outputs and class D
speaker drivers current generation devices are able to power on and off
much more quickly without these system level issues so provide a new
flag idle_bias_off in snd_soc_codec which will cause the core to turn
off the CODEC bias. The distinction between STANDBY and OFF is still
maintained. This is partly for consistency but also allows for
potential future extensions such as per-machine overrides or deferring
the bias removal.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r-- | include/sound/soc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 08909ccd235b..a8768ea7571a 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -405,6 +405,8 @@ struct snd_soc_codec { | |||
405 | short reg_cache_size; | 405 | short reg_cache_size; |
406 | short reg_cache_step; | 406 | short reg_cache_step; |
407 | 407 | ||
408 | unsigned int idle_bias_off:1; /* Use BIAS_OFF instead of STANDBY */ | ||
409 | |||
408 | /* dapm */ | 410 | /* dapm */ |
409 | u32 pop_time; | 411 | u32 pop_time; |
410 | struct list_head dapm_widgets; | 412 | struct list_head dapm_widgets; |