Skip to content

Commit 5c80069

Browse files
ranj063ujfalusi
authored andcommitted
ASoC: SOF: sof-audio: Expose a couple of functions
These are common functions that will also be needed for the IPC4 compressed support. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent 477948d commit 5c80069

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

sound/soc/sof/pcm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void snd_sof_pcm_period_elapsed(struct snd_pcm_substream *substream)
6666
}
6767
EXPORT_SYMBOL(snd_sof_pcm_period_elapsed);
6868

69-
static int
69+
int
7070
sof_pcm_setup_connected_widgets(struct snd_sof_dev *sdev, struct snd_soc_pcm_runtime *rtd,
7171
struct snd_sof_pcm *spcm, struct snd_pcm_hw_params *params,
7272
struct snd_sof_platform_stream_params *platform_params, int dir)
@@ -100,8 +100,8 @@ sof_pcm_setup_connected_widgets(struct snd_sof_dev *sdev, struct snd_soc_pcm_run
100100
return 0;
101101
}
102102

103-
static struct snd_sof_widget *snd_sof_find_swidget_by_comp_id(struct snd_sof_dev *sdev,
104-
int comp_id)
103+
struct snd_sof_widget *snd_sof_find_swidget_by_comp_id(struct snd_sof_dev *sdev,
104+
int comp_id)
105105
{
106106
struct snd_sof_widget *swidget;
107107

sound/soc/sof/sof-audio.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,12 @@ struct snd_sof_pcm *snd_sof_find_spcm_comp(struct snd_soc_component *scomp,
636636
int *direction);
637637
void snd_sof_pcm_period_elapsed(struct snd_pcm_substream *substream);
638638
void snd_sof_pcm_init_elapsed_work(struct work_struct *work);
639-
639+
int sof_pcm_setup_connected_widgets(struct snd_sof_dev *sdev, struct snd_soc_pcm_runtime *rtd,
640+
struct snd_sof_pcm *spcm, struct snd_pcm_hw_params *params,
641+
struct snd_sof_platform_stream_params *platform_params,
642+
int dir);
643+
struct snd_sof_widget *snd_sof_find_swidget_by_comp_id(struct snd_sof_dev *sdev,
644+
int comp_id);
640645
/*
641646
* snd_sof_pcm specific wrappers for dev_dbg() and dev_err() to provide
642647
* consistent and useful prints.

0 commit comments

Comments
 (0)