Commit 4bd073f9 authored by Jeeja KP's avatar Jeeja KP Committed by Mark Brown

ASoC: Intel: Skylake: Fix not to ignore return value in be hw_params

Return value from skl_tplg_be_update_params() is ignored. But if the
blob is null then the hw_params needs to return error.
This patch fixes the issue by not ignoring return value from
skl_tplg_be_update_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 a28f51db
...@@ -291,9 +291,8 @@ static int skl_be_hw_params(struct snd_pcm_substream *substream, ...@@ -291,9 +291,8 @@ static int skl_be_hw_params(struct snd_pcm_substream *substream,
p_params.ch = params_channels(params); p_params.ch = params_channels(params);
p_params.s_freq = params_rate(params); p_params.s_freq = params_rate(params);
p_params.stream = substream->stream; p_params.stream = substream->stream;
skl_tplg_be_update_params(dai, &p_params);
return 0; return skl_tplg_be_update_params(dai, &p_params);
} }
static int skl_pcm_trigger(struct snd_pcm_substream *substream, int cmd, static int skl_pcm_trigger(struct snd_pcm_substream *substream, int cmd,
...@@ -352,9 +351,7 @@ static int skl_link_hw_params(struct snd_pcm_substream *substream, ...@@ -352,9 +351,7 @@ static int skl_link_hw_params(struct snd_pcm_substream *substream,
p_params.stream = substream->stream; p_params.stream = substream->stream;
p_params.link_dma_id = hdac_stream(link_dev)->stream_tag - 1; p_params.link_dma_id = hdac_stream(link_dev)->stream_tag - 1;
skl_tplg_be_update_params(dai, &p_params); return skl_tplg_be_update_params(dai, &p_params);
return 0;
} }
static int skl_link_pcm_prepare(struct snd_pcm_substream *substream, static int skl_link_pcm_prepare(struct snd_pcm_substream *substream,
......
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