30 Apr
2010
30 Apr
'10
10:41 a.m.
On Fri, Apr 30, 2010 at 10:31:55AM +0300, Peter Ujfalusi wrote:
When the codec is in STANDBY we can actually turn it off. When the codec is off, than the associated regulator can be also turned off (if the number of users on the regulator is 0).
You can just set idle_bias_off in the CODEC and then the core will push you down into _BIAS_OFF.
There are few scenarios, which has to be taken care::
- Analog bypass caused BIAS_STANDBY -> BIAS_ON We need to power on the codec, and do the chip init, but we does not need to execute the playback related configuration
Moving the playback related configuration into events on the DAC widgets (or probably a supply connected to the DAC widgets) seems like a good move for a lot of these scenarios? The core will then take care of ensuring that the startup sequence for the playback is called for you and the states can do what they're supposed to more directly.