summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/wm8804-spi.c
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2015-04-07 12:55:10 +0100
committerMark Brown <broonie@kernel.org>2015-04-08 19:25:40 +0100
commit1a60667fc81fdab3733a1d41480da3a5d0ccecea (patch)
treed146cc70eb718062b3f7546a896c21bbaf9e4b1d /sound/soc/codecs/wm8804-spi.c
parent5631f18763f1b0989cec7cbf8f3badcb74dfe469 (diff)
downloadlwn-1a60667fc81fdab3733a1d41480da3a5d0ccecea.tar.gz
lwn-1a60667fc81fdab3733a1d41480da3a5d0ccecea.zip
ASoC: wm8804: Enable runtime PM
Currently both the oscillator and the PLL are powered up in set_bias_level. This can be problematic when using output clocks from the wm8804 for other devices. The snd_soc_codec_set_pll API defines that a clock should be available once the call returns, however, with all the clocking controlled in set_bias_level this is not currently the case. This patch enables pm_runtime for the wm8804, enabling both the regulators and the oscillator when the chip resumes, and enabling the PLL in the snd_soc_codec_set_pll call. Naturally the enabling the PLL will also cause the chip to resume. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm8804-spi.c')
-rw-r--r--sound/soc/codecs/wm8804-spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8804-spi.c b/sound/soc/codecs/wm8804-spi.c
index 287e11e90794..407a3cf391e5 100644
--- a/sound/soc/codecs/wm8804-spi.c
+++ b/sound/soc/codecs/wm8804-spi.c
@@ -43,6 +43,7 @@ static struct spi_driver wm8804_spi_driver = {
.driver = {
.name = "wm8804",
.owner = THIS_MODULE,
+ .pm = &wm8804_pm,
.of_match_table = wm8804_of_match,
},
.probe = wm8804_spi_probe,