Skip to content

Commit 94f8d70

Browse files
committed
ASoC: SOF: Intel: export hda_dsp_stream_ functions
The hda_dsp_stream_ functions will be used by the SoundWire BRA functions. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent 79e1e79 commit 94f8d70

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

sound/soc/sof/intel/hda-stream.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ int hda_dsp_stream_spib_config(struct snd_sof_dev *sdev,
208208

209209
return 0;
210210
}
211+
EXPORT_SYMBOL_NS(hda_dsp_stream_spib_config, "SND_SOC_SOF_INTEL_HDA_COMMON");
211212

212213
/* get next unused stream */
213214
static struct hdac_ext_stream *
@@ -744,6 +745,7 @@ int hda_dsp_stream_hw_params(struct snd_sof_dev *sdev,
744745

745746
return ret;
746747
}
748+
EXPORT_SYMBOL_NS(hda_dsp_stream_hw_params, "SND_SOC_SOF_INTEL_HDA_COMMON");
747749

748750
int hda_dsp_stream_hw_free(struct snd_sof_dev *sdev,
749751
struct snd_pcm_substream *substream)

sound/soc/sof/intel/hda.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,14 @@ hda_dsp_stream_pair_get(struct snd_sof_dev *sdev, int direction, u32 flags);
907907

908908
int hda_dsp_stream_pair_put(struct snd_sof_dev *sdev, int direction, int stream_tag);
909909

910+
int hda_dsp_stream_hw_params(struct snd_sof_dev *sdev,
911+
struct hdac_ext_stream *hext_stream,
912+
struct snd_dma_buffer *dmab,
913+
struct snd_pcm_hw_params *params);
914+
915+
int hda_dsp_stream_spib_config(struct snd_sof_dev *sdev,
916+
struct hdac_ext_stream *hext_stream,
917+
int enable, u32 size);
910918
/* common dai driver */
911919
extern struct snd_soc_dai_driver skl_dai[];
912920
int hda_dsp_dais_suspend(struct snd_sof_dev *sdev);

0 commit comments

Comments
 (0)