mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 05:41:55 +00:00
7393958f63
This patch adds the analog loopback/bypass support for twl4030 codec. Details for the implementation: It seams that the analog loopback needs the DAC powered on on the channel, where the loopback is selected. The switch for the DACs has been moved from the DAPM_DAC to the "Analog XX Playback Mixer". In this way the DAC will be powered while the audio playback is used or/and the loopback is enabled for the channel. The twl4030 codec powering has been reworked. Now the codec will be powered as long as it does not receives the SND_SOC_BIAS_OFF event. The exceptions are when the given change in the registers needs the codec power down/up cycle in order to take effect. Otherwise the codec is on. When the codec enters to STANDBY state and none of the loopback paths are enabled, than the amplifiers, which are no in the DAPM path are forced to turn off and the PLL is disabled. When playback/capture starts the disabled gains are restored and the PLL is enabled. When one of the loopback enabled in STANDBY mode, the disabled gains are restored and the PLL is enabled also. In short: the codec always goes to the lowest power state based on the bias_level and the bypass_state. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> |
||
---|---|---|
.. | ||
ac97.c | ||
ac97.h | ||
ad1980.c | ||
ad1980.h | ||
ad73311.c | ||
ad73311.h | ||
ak4535.c | ||
ak4535.h | ||
cs4270.c | ||
cs4270.h | ||
Kconfig | ||
l3.c | ||
Makefile | ||
pcm3008.c | ||
pcm3008.h | ||
ssm2602.c | ||
ssm2602.h | ||
tlv320aic3x.c | ||
tlv320aic3x.h | ||
tlv320aic23.c | ||
tlv320aic23.h | ||
tlv320aic26.c | ||
tlv320aic26.h | ||
twl4030.c | ||
twl4030.h | ||
uda134x.c | ||
uda134x.h | ||
uda1380.c | ||
uda1380.h | ||
wm8350.c | ||
wm8350.h | ||
wm8510.c | ||
wm8510.h | ||
wm8580.c | ||
wm8580.h | ||
wm8728.c | ||
wm8728.h | ||
wm8731.c | ||
wm8731.h | ||
wm8750.c | ||
wm8750.h | ||
wm8753.c | ||
wm8753.h | ||
wm8900.c | ||
wm8900.h | ||
wm8903.c | ||
wm8903.h | ||
wm8971.c | ||
wm8971.h | ||
wm8990.c | ||
wm8990.h | ||
wm9705.c | ||
wm9705.h | ||
wm9712.c | ||
wm9712.h | ||
wm9713.c | ||
wm9713.h |