Commit 9a03cb49 authored by Jeeja KP's avatar Jeeja KP Committed by Mark Brown

ASoC: Intel: Skylake: Fix to remove be copier widget power check

ASoC core already checks if BE is active. If BE is active,
hw_params callback is ignored.
This patch removes the redundant check in driver for copier
widget power check in update be hw_params.
Signed-off-by: default avatarJeeja KP <jeeja.kp@intel.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d1730c3d
...@@ -950,18 +950,13 @@ static int skl_tplg_be_set_src_pipe_params(struct snd_soc_dai *dai, ...@@ -950,18 +950,13 @@ static int skl_tplg_be_set_src_pipe_params(struct snd_soc_dai *dai,
if (p->connect && is_skl_dsp_widget_type(p->source) && if (p->connect && is_skl_dsp_widget_type(p->source) &&
p->source->priv) { p->source->priv) {
if (!p->source->power) { ret = skl_tplg_be_fill_pipe_params(dai,
ret = skl_tplg_be_fill_pipe_params( p->source->priv, params);
dai, p->source->priv,
params);
if (ret < 0) if (ret < 0)
return ret; return ret;
} else { } else {
return -EBUSY; ret = skl_tplg_be_set_src_pipe_params(dai,
} p->source, params);
} else {
ret = skl_tplg_be_set_src_pipe_params(
dai, p->source, params);
if (ret < 0) if (ret < 0)
return ret; return ret;
} }
...@@ -980,15 +975,10 @@ static int skl_tplg_be_set_sink_pipe_params(struct snd_soc_dai *dai, ...@@ -980,15 +975,10 @@ static int skl_tplg_be_set_sink_pipe_params(struct snd_soc_dai *dai,
if (p->connect && is_skl_dsp_widget_type(p->sink) && if (p->connect && is_skl_dsp_widget_type(p->sink) &&
p->sink->priv) { p->sink->priv) {
if (!p->sink->power) { ret = skl_tplg_be_fill_pipe_params(dai,
ret = skl_tplg_be_fill_pipe_params( p->sink->priv, params);
dai, p->sink->priv, params);
if (ret < 0) if (ret < 0)
return ret; return ret;
} else {
return -EBUSY;
}
} else { } else {
ret = skl_tplg_be_set_sink_pipe_params( ret = skl_tplg_be_set_sink_pipe_params(
dai, p->sink, params); dai, p->sink, params);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment