mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 21:24:08 +08:00
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>
This commit is contained in:
parent
b243b437f4
commit
3816bbea64
@ -204,8 +204,8 @@ use_count_dec:
|
||||
}
|
||||
EXPORT_SYMBOL(sof_widget_setup);
|
||||
|
||||
static int sof_route_setup(struct snd_sof_dev *sdev, struct snd_soc_dapm_widget *wsource,
|
||||
struct snd_soc_dapm_widget *wsink)
|
||||
int sof_route_setup(struct snd_sof_dev *sdev, struct snd_soc_dapm_widget *wsource,
|
||||
struct snd_soc_dapm_widget *wsink)
|
||||
{
|
||||
const struct sof_ipc_tplg_ops *ipc_tplg_ops = sdev->ipc->ops->tplg;
|
||||
struct snd_sof_widget *src_widget = wsource->dobj.private;
|
||||
|
@ -441,6 +441,8 @@ void sof_machine_unregister(struct snd_sof_dev *sdev, void *pdata);
|
||||
|
||||
int sof_widget_setup(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget);
|
||||
int sof_widget_free(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget);
|
||||
int sof_route_setup(struct snd_sof_dev *sdev, struct snd_soc_dapm_widget *wsource,
|
||||
struct snd_soc_dapm_widget *wsink);
|
||||
|
||||
/* PCM */
|
||||
int sof_widget_list_setup(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm, int dir);
|
||||
|
Loading…
Reference in New Issue
Block a user