提交 1a6db0bd 编写于 作者: S Subhransu S. Prusty 提交者: Mark Brown

ASoC: Intel: mrfld: Fix runtime pm calls in sst_open_pcm_stream

It's already done in open/close.
Signed-off-by: NSubhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: NVinod Koul <vinod.koul@intel.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 0d2135ec
......@@ -163,16 +163,11 @@ static int sst_open_pcm_stream(struct device *dev,
if (!str_param)
return -EINVAL;
retval = pm_runtime_get_sync(ctx->dev);
if (retval < 0)
return retval;
retval = sst_get_stream(ctx, str_param);
if (retval > 0) {
if (retval > 0)
ctx->stream_cnt++;
} else {
else
dev_err(ctx->dev, "sst_get_stream returned err %d\n", retval);
sst_pm_runtime_put(ctx);
}
return retval;
}
......@@ -212,7 +207,8 @@ static int sst_close_pcm_stream(struct device *dev, unsigned int str_id)
stream->period_elapsed = NULL;
ctx->stream_cnt--;
sst_pm_runtime_put(ctx);
if (retval)
dev_err(ctx->dev, "free stream returned err %d\n", retval);
dev_dbg(ctx->dev, "Exit\n");
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册