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>
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;
}
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;
}