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)
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>

No differences found