ASoC: da7219: Make more efficient use of MCLK within driver
authorAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Fri, 29 Jul 2016 13:46:54 +0000 (14:46 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 8 Aug 2016 10:54:45 +0000 (11:54 +0100)
commit40585391fc88d6d66dc479efccba973426c004ab
tree2c9619209cbce9a12970de8d5b3ed75988cc9c20
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
ASoC: da7219: Make more efficient use of MCLK within driver

Currently, if the driver has control of MCLK then it remains
enabled as long as the codec is in STANDBY or above. The MCLK is
only really required in STANDBY when a 3-pole jack is inserted
and the HP detect procedure is required to run.

This patch updates the code to enable/disable the MCLK when moving
between the STANDBY and PREPARE bias level, and when a 3-pole jack
is inserted and HP detection is required, thus saving power at all
other times.

Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/da7219-aad.c
sound/soc/codecs/da7219.c
This page took 0.026513 seconds and 5 git commands to generate.