Skip to content

Commit 3816bbe

Browse files
ranj063broonie
authored andcommitted
ASoC: SOF: expose sof_route_setup()
This will be used in IPC3-specific code. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20220317175044.1752400-18-ranjani.sridharan@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent b243b43 commit 3816bbe

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

sound/soc/sof/sof-audio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ int sof_widget_setup(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget)
204204
}
205205
EXPORT_SYMBOL(sof_widget_setup);
206206

207-
static int sof_route_setup(struct snd_sof_dev *sdev, struct snd_soc_dapm_widget *wsource,
208-
struct snd_soc_dapm_widget *wsink)
207+
int sof_route_setup(struct snd_sof_dev *sdev, struct snd_soc_dapm_widget *wsource,
208+
struct snd_soc_dapm_widget *wsink)
209209
{
210210
const struct sof_ipc_tplg_ops *ipc_tplg_ops = sdev->ipc->ops->tplg;
211211
struct snd_sof_widget *src_widget = wsource->dobj.private;

sound/soc/sof/sof-audio.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,8 @@ void sof_machine_unregister(struct snd_sof_dev *sdev, void *pdata);
441441

442442
int sof_widget_setup(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget);
443443
int sof_widget_free(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget);
444+
int sof_route_setup(struct snd_sof_dev *sdev, struct snd_soc_dapm_widget *wsource,
445+
struct snd_soc_dapm_widget *wsink);
444446

445447
/* PCM */
446448
int sof_widget_list_setup(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, int dir);

0 commit comments

Comments
 (0)