blob: 337ac566675789c07fb941a9cdc158060e6f6791 [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);
17void snd_soc_link_shutdown(struct snd_pcm_substream *substream);
18int snd_soc_link_prepare(struct snd_pcm_substream *substream);
19int snd_soc_link_hw_params(struct snd_pcm_substream *substream,
Kuninori Morimotoa5e6c102020-05-25 09:57:19 +090020 struct snd_pcm_hw_params *params);
Kuninori Morimoto7cf3c5b2020-05-25 09:57:31 +090021void snd_soc_link_hw_free(struct snd_pcm_substream *substream);
22int snd_soc_link_trigger(struct snd_pcm_substream *substream, int cmd);
Kuninori Morimoto02e75632020-05-25 09:57:14 +090023
Kuninori Morimoto9ab711c2020-05-25 09:57:41 +090024int snd_soc_link_compr_startup(struct snd_compr_stream *cstream);
Kuninori Morimoto0e532c92020-05-25 09:57:45 +090025void snd_soc_link_compr_shutdown(struct snd_compr_stream *cstream);
Kuninori Morimotoeab810f2020-05-25 09:57:50 +090026int snd_soc_link_compr_set_params(struct snd_compr_stream *cstream);
Kuninori Morimoto9ab711c2020-05-25 09:57:41 +090027
Kuninori Morimoto02e75632020-05-25 09:57:14 +090028#endif /* __SOC_LINK_H */