Set the CODEC driver's suspend_bias_off flag rather than manually going to SND_SOC_BIAS_OFF in suspend and SND_SOC_BIAS_STANDBY in resume. This makes the code a bit shorter and cleaner. Since the ASoC core now takes care of setting the bias level to SND_SOC_BIAS_OFF when removing the CODEC there is no need to do it manually anymore either. The manual transition to SND_SOC_BIAS_STANDBY at the end of CODEC probe() can also be removed as the core will automatically do this after the CODEC has been probed. Signed-off-by:Lars-Peter Clausen <lars@metafoo.de> Acked-by:
Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by:
Mark Brown <broonie@kernel.org> (cherry picked from commit 0a87a6e1)
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
aoa | Loading commit data... | |
arm | Loading commit data... | |
atmel | Loading commit data... | |
core | Loading commit data... | |
drivers | Loading commit data... | |
firewire | Loading commit data... | |
i2c | Loading commit data... | |
isa | Loading commit data... | |
mips | Loading commit data... | |
oss | Loading commit data... | |
parisc | Loading commit data... | |
pci | Loading commit data... | |
pcmcia | Loading commit data... | |
ppc | Loading commit data... | |
sh | Loading commit data... | |
soc | Loading commit data... | |
sparc | Loading commit data... | |
spi | Loading commit data... | |
synth | Loading commit data... | |
usb | Loading commit data... | |
Kconfig | Loading commit data... | |
Makefile | Loading commit data... | |
ac97_bus.c | Loading commit data... | |
last.c | Loading commit data... | |
sound_core.c | Loading commit data... | |
sound_firmware.c | Loading commit data... |