ASoC: Intel: avs: Use helper to setup HOST stream
authorCezary Rojewski <cezary.rojewski@intel.com>
Tue, 26 Sep 2023 08:06:22 +0000 (10:06 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 6 Oct 2023 09:11:39 +0000 (11:11 +0200)
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>
sound/soc/intel/avs/pcm.c

index 8565a530706d004159b002d46c1a2a13dd4154a2..e628fdfdc0185cde74eae4b0c7dc990b2a9f910a 100644 (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;