xref: /linux/include/sound/soc-link.h (revision a5e6c109)
1 /* SPDX-License-Identifier: GPL-2.0
2  *
3  * soc-link.h
4  *
5  * Copyright (C) 2019 Renesas Electronics Corp.
6  * Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
7  */
8 #ifndef __SOC_LINK_H
9 #define __SOC_LINK_H
10 
11 int snd_soc_link_init(struct snd_soc_pcm_runtime *rtd);
12 int snd_soc_link_startup(struct snd_soc_pcm_runtime *rtd,
13 			 struct snd_pcm_substream *substream);
14 void snd_soc_link_shutdown(struct snd_soc_pcm_runtime *rtd,
15 			   struct snd_pcm_substream *substream);
16 int snd_soc_link_prepare(struct snd_soc_pcm_runtime *rtd,
17 			 struct snd_pcm_substream *substream);
18 int snd_soc_link_hw_params(struct snd_soc_pcm_runtime *rtd,
19 			   struct snd_pcm_substream *substream,
20 			   struct snd_pcm_hw_params *params);
21 void snd_soc_link_hw_free(struct snd_soc_pcm_runtime *rtd,
22 			  struct snd_pcm_substream *substream);
23 int snd_soc_link_trigger(struct snd_soc_pcm_runtime *rtd,
24 			 struct snd_pcm_substream *substream, int cmd);
25 
26 #endif /* __SOC_LINK_H */
27