mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 01:24:12 +08:00
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: Jeeja KP <jeeja.kp@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
d1730c3dd9
commit
9a03cb49c1
@ -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) &&
|
||||
p->source->priv) {
|
||||
|
||||
if (!p->source->power) {
|
||||
ret = skl_tplg_be_fill_pipe_params(
|
||||
dai, p->source->priv,
|
||||
params);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
} else {
|
||||
return -EBUSY;
|
||||
}
|
||||
ret = skl_tplg_be_fill_pipe_params(dai,
|
||||
p->source->priv, params);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
} else {
|
||||
ret = skl_tplg_be_set_src_pipe_params(
|
||||
dai, p->source, params);
|
||||
ret = skl_tplg_be_set_src_pipe_params(dai,
|
||||
p->source, params);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
}
|
||||
@ -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) &&
|
||||
p->sink->priv) {
|
||||
|
||||
if (!p->sink->power) {
|
||||
ret = skl_tplg_be_fill_pipe_params(
|
||||
dai, p->sink->priv, params);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
} else {
|
||||
return -EBUSY;
|
||||
}
|
||||
|
||||
ret = skl_tplg_be_fill_pipe_params(dai,
|
||||
p->sink->priv, params);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
} else {
|
||||
ret = skl_tplg_be_set_sink_pipe_params(
|
||||
dai, p->sink, params);
|
||||
|
Loading…
Reference in New Issue
Block a user