summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2017-11-28 17:02:22 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commite59120bdd5a6e3051cb84e2b746d10b4acdedcb7 (patch)
tree705167ba1384792d9f7f3be6ba84b8a5852c55ce /sound
parent504e934cf3c71dd4cc9d9281252d232b3db8c809 (diff)
MLK-17034-3: ASoC: imx-wm8960: remove clk operation in startup/shutdown
In imx8 when systerm enter suspend state, the power of subsystem will be off, the clock enable state will be lost after resume, the startup function isn't called after resume, so the clock will be enabled after resume, the clock operation should be moved to pm runtime resume function. For the mclk is for codec, this clock enablement and disablement will be move to code driver's runtime resume and runtime suspend Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/fsl/imx-wm8960.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sound/soc/fsl/imx-wm8960.c b/sound/soc/fsl/imx-wm8960.c
index 8dbf997d3d8c..0951e4740584 100644
--- a/sound/soc/fsl/imx-wm8960.c
+++ b/sound/soc/fsl/imx-wm8960.c
@@ -313,12 +313,6 @@ static int imx_hifi_startup(struct snd_pcm_substream *substream)
return ret;
}
- ret = clk_prepare_enable(data->codec_clk);
- if (ret) {
- dev_err(card->dev, "Failed to enable MCLK: %d\n", ret);
- return ret;
- }
-
return ret;
}
@@ -329,8 +323,6 @@ static void imx_hifi_shutdown(struct snd_pcm_substream *substream)
struct imx_wm8960_data *data = snd_soc_card_get_drvdata(card);
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
- clk_disable_unprepare(data->codec_clk);
-
data->is_stream_opened[tx] = false;
}