blob: 9314cde1756b93718bdec4899a03bfc846961030 [file] [log] [blame]
Kuninori Morimoto02e75632020-05-25 09:57:14 +09001/* 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
11int snd_soc_link_init(struct snd_soc_pcm_runtime *rtd);
Pierre-Louis Bossart21a00fb2020-06-22 10:42:37 -050012void snd_soc_link_exit(struct snd_soc_pcm_runtime *rtd);
Kuninori Morimoto0cbbf8a2020-05-25 09:57:36 +090013int snd_soc_link_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
14 struct snd_pcm_hw_params *params);
15
Kuninori Morimoto7cf3c5b2020-05-25 09:57:31 +090016int snd_soc_link_startup(struct snd_pcm_substream *substream);
Kuninori Morimoto6064ed72020-09-28 09:00:57 +090017void snd_soc_link_shutdown(struct snd_pcm_substream *substream,
18 int rollback);
Kuninori Morimoto7cf3c5b2020-05-25 09:57:31 +090019int snd_soc_link_prepare(struct snd_pcm_substream *substream);
20int snd_soc_link_hw_params(struct snd_pcm_substream *substream,
Kuninori Morimotoa5e6c102020-05-25 09:57:19 +090021 struct snd_pcm_hw_params *params);
Kuninori Morimoto918ad772020-09-29 13:31:25 +090022void snd_soc_link_hw_free(struct snd_pcm_substream *substream,
23 int rollback);
Kuninori Morimoto02e75632020-05-25 09:57:14 +090024
Kuninori Morimoto6374f492020-12-01 08:51:33 +090025int snd_soc_link_trigger(struct snd_pcm_substream *substream, int cmd,
26 int rollback);
Kuninori Morimoto9ab711c2020-05-25 09:57:41 +090027int snd_soc_link_compr_startup(struct snd_compr_stream *cstream);
Kuninori Morimotocd7c7d12020-11-19 08:50:14 +090028void snd_soc_link_compr_shutdown(struct snd_compr_stream *cstream,
29 int rollback);
Kuninori Morimotoeab810f2020-05-25 09:57:50 +090030int snd_soc_link_compr_set_params(struct snd_compr_stream *cstream);
Kuninori Morimoto9ab711c2020-05-25 09:57:41 +090031
Kuninori Morimoto02e75632020-05-25 09:57:14 +090032#endif /* __SOC_LINK_H */