diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-04-27 22:13:23 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-04-27 21:34:45 +0100 |
commit | fa880775ab0d5a8d540972f7b6800fad1af16b75 (patch) | |
tree | 201bcfeaaccfb233e674bd10ac8d834520bc7025 /sound/soc/codecs/rt5645.c | |
parent | 39ed68c8cd3aff417603a95d0594308598b9f469 (diff) | |
download | op-kernel-dev-fa880775ab0d5a8d540972f7b6800fad1af16b75.zip op-kernel-dev-fa880775ab0d5a8d540972f7b6800fad1af16b75.tar.gz |
ASoC: Add helper functions bias level management
Currently drivers are responsible for managing the bias_level field of
their DAPM context. The DAPM state itself is managed by the DAPM core
though and the core has certain expectations on how and when the bias_level
field should be updated. If drivers don't adhere to these undefined
behavior can occur.
This patch adds a few helper functions for manipulating the DAPM context
state, each function with a description on when it should be used and what
its effects are. This will also help us to move more of the bias_level
management from drivers to the DAPM core.
For convenience also add snd_soc_codec_* wrappers around these helpers.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5645.c')
0 files changed, 0 insertions, 0 deletions