diff options
author | Inha Song <ideal.song@samsung.com> | 2015-04-15 16:56:40 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-12-14 13:43:22 +0900 |
commit | c0aaddb70437f9c2194db504093674a8555e98d8 (patch) | |
tree | 8ef46b2f07cb9973717afeec098e65110df9c49b /sound/soc/samsung/tm2_wm5110.c | |
parent | 90fef9aa1b33bdbe436ec94177d7ec834371b6a8 (diff) |
LOCAL / ASoC: samsung: Add codec set_pll in stop_sysclk for FLL1 stop
This patch add snd_soc_codec_set_pll function in stop_sysclk for FLL1 stop.
Arizona driver use pm runtime. So, we should call pm_runtime_suspend callback
function by Stop FLL1.
Signed-off-by: Inha Song <ideal.song@samsung.com>
Diffstat (limited to 'sound/soc/samsung/tm2_wm5110.c')
-rw-r--r-- | sound/soc/samsung/tm2_wm5110.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/samsung/tm2_wm5110.c b/sound/soc/samsung/tm2_wm5110.c index d6d96c4852c8..4c772299f254 100644 --- a/sound/soc/samsung/tm2_wm5110.c +++ b/sound/soc/samsung/tm2_wm5110.c @@ -132,6 +132,11 @@ static int tm2_start_sysclk(struct snd_soc_card *card) static void tm2_stop_sysclk(struct snd_soc_card *card) { struct tm2_machine_priv *priv = snd_soc_card_get_drvdata(card); + int ret; + + ret = snd_soc_codec_set_pll(priv->codec, WM5110_FLL1, 0, 0, 0); + if (ret < 0) + dev_err(priv->codec->dev, "Failed to stop FLL: %d\n", ret); clk_disable_unprepare(priv->codec_mclk1); } |