ASoC: Intel: avs: Use helper to setup HOST stream

snd_hdac_ext_host_stream_setup() abstracts the procedure details away.
Simplify the code by using it.

Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20230926080623.43927-4-cezary.rojewski@intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Cezary Rojewski 2023-09-26 10:06:22 +02:00 committed by Takashi Iwai
parent 88320b74ef
commit 25f85afdd3

View File

@ -625,7 +625,7 @@ static int avs_dai_fe_prepare(struct snd_pcm_substream *substream, struct snd_so
if (ret < 0)
return ret;
ret = snd_hdac_stream_setup(hdac_stream(host_stream));
ret = snd_hdac_ext_host_stream_setup(host_stream);
if (ret < 0)
return ret;