]> git.karo-electronics.de Git - mv-sheeva.git/commit
ASoC: wm8994: Provide VMID mode control and fix default sequence
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 19 Mar 2012 17:32:06 +0000 (17:32 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 19 Mar 2012 19:08:17 +0000 (19:08 +0000)
commit22f8d055350066b4a87de4adea8c5213cac54534
tree229a761bb0e5c4a9ee27db3d327bbd11905b9c96
parent6f8270cc9a43d767676c97df5773fdcede312a88
ASoC: wm8994: Provide VMID mode control and fix default sequence

The optimal management of VMID depends on a number of factors which vary
dynamically at runtime, for example the connection to a system docking
station. In some circumstances it is desirable to keep VMID enabled all
the time, in others it is desirable to aggressively power it up and down.

Provide a callback allowing machine driver to configure either the normal
power up/down mode (WM8994_VMID_MODE_NORMAL) or to maintain VMID even
when idle (WM8994_VMID_MODE_FORCE). This callback, wm8994_vmid_mode(),
should be called with the CODEC lock.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8994.c
sound/soc/codecs/wm8994.h