@@ -743,13 +743,12 @@ int hda_dsp_stream_hw_params(struct snd_sof_dev *sdev,
743743 return ret ;
744744}
745745
746- int hda_dsp_stream_hw_free (struct snd_sof_dev * sdev ,
747- struct snd_pcm_substream * substream )
746+ static int _hda_dsp_stream_hw_free (struct snd_sof_dev * sdev ,
747+ struct hdac_stream * hstream )
748748{
749- struct hdac_stream * hstream = substream -> runtime -> private_data ;
750749 struct hdac_ext_stream * hext_stream = container_of (hstream ,
751- struct hdac_ext_stream ,
752- hstream );
750+ struct hdac_ext_stream ,
751+ hstream );
753752 int ret ;
754753
755754 ret = hda_dsp_stream_reset (sdev , hstream );
@@ -774,8 +773,21 @@ int hda_dsp_stream_hw_free(struct snd_sof_dev *sdev,
774773
775774 return 0 ;
776775}
776+
777+ int hda_dsp_stream_hw_free (struct snd_sof_dev * sdev ,
778+ struct snd_pcm_substream * substream )
779+ {
780+ return _hda_dsp_stream_hw_free (sdev , substream -> runtime -> private_data );
781+ }
777782EXPORT_SYMBOL_NS (hda_dsp_stream_hw_free , "SND_SOC_SOF_INTEL_HDA_COMMON" );
778783
784+ int hda_dsp_stream_compr_hw_free (struct snd_sof_dev * sdev ,
785+ struct snd_compr_stream * cstream )
786+ {
787+ return _hda_dsp_stream_hw_free (sdev , cstream -> runtime -> private_data );
788+ }
789+ EXPORT_SYMBOL_NS (hda_dsp_stream_compr_hw_free , "SND_SOC_SOF_INTEL_HDA_COMMON" );
790+
779791bool hda_dsp_check_stream_irq (struct snd_sof_dev * sdev )
780792{
781793 struct hdac_bus * bus = sof_to_bus (sdev );
0 commit comments