]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: ssm2602: Support setting the oscillator and the clock output state
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 27 Sep 2011 09:08:48 +0000 (11:08 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 27 Sep 2011 12:30:48 +0000 (13:30 +0100)
commit6e97a2ed63f14db759db9054fe3f0c9c00a1e126
tree2832216154fafb2530c3e3f5a9b0d9035d975ff9
parent8a750b933cf8a16644f70f0a6fb6b4a59c723558
ASoC: ssm2602: Support setting the oscillator and the clock output state

Currently the oscillator is always enabled and the clock output is always
disabled. This patch adds support for controlling the oscillator and clock
output state through snd_soc_dai_set_sysclk. Which makes it possible to
disable or enable them dynamically according to the requirements of the board
on which the CODEC is used.

This patch also slightly modifies the behavior as to when the oscillator is
going to be disabled in low-power states. Previously it would only be disabled
in BIAS_OFF, now it is also going to be disabled in BIAS_STANDBY, since no
components which depend on it should be active in this state.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/ssm2602.c
sound/soc/codecs/ssm2602.h