Message ID | 20230925115844.18795-4-cezary.rojewski@intel.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | ALSA: hda: Abstract and update HOST-stream setup procedure | expand |
On Mon, Sep 25, 2023 at 01:58:43PM +0200, Cezary Rojewski wrote: > snd_hdac_ext_host_stream_setup() abstracts the procedure details away. > Simplify the code by using it. Acked-by: Mark Brown <broonie@kernel.org>
diff --git a/sound/soc/intel/avs/pcm.c b/sound/soc/intel/avs/pcm.c index 8565a530706d..e628fdfdc018 100644 --- a/sound/soc/intel/avs/pcm.c +++ b/sound/soc/intel/avs/pcm.c @@ -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;
snd_hdac_ext_host_stream_setup() abstracts the procedure details away. Simplify the code by using it. Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> --- sound/soc/intel/avs/pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)