Kuninori Morimoto | 02e7563 | 2020-05-25 09:57:14 +0900 | [diff] [blame] | 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); |
Pierre-Louis Bossart | 21a00fb | 2020-06-22 10:42:37 -0500 | [diff] [blame] | 12 | void snd_soc_link_exit(struct snd_soc_pcm_runtime *rtd); |
Kuninori Morimoto | 0cbbf8a | 2020-05-25 09:57:36 +0900 | [diff] [blame] | 13 | int snd_soc_link_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, |
| 14 | struct snd_pcm_hw_params *params); |
| 15 | |
Kuninori Morimoto | 7cf3c5b | 2020-05-25 09:57:31 +0900 | [diff] [blame] | 16 | int snd_soc_link_startup(struct snd_pcm_substream *substream); |
Kuninori Morimoto | 6064ed7 | 2020-09-28 09:00:57 +0900 | [diff] [blame] | 17 | void snd_soc_link_shutdown(struct snd_pcm_substream *substream, |
| 18 | int rollback); |
Kuninori Morimoto | 7cf3c5b | 2020-05-25 09:57:31 +0900 | [diff] [blame] | 19 | int snd_soc_link_prepare(struct snd_pcm_substream *substream); |
| 20 | int snd_soc_link_hw_params(struct snd_pcm_substream *substream, |
Kuninori Morimoto | a5e6c10 | 2020-05-25 09:57:19 +0900 | [diff] [blame] | 21 | struct snd_pcm_hw_params *params); |
Kuninori Morimoto | 918ad77 | 2020-09-29 13:31:25 +0900 | [diff] [blame] | 22 | void snd_soc_link_hw_free(struct snd_pcm_substream *substream, |
| 23 | int rollback); |
Kuninori Morimoto | 02e7563 | 2020-05-25 09:57:14 +0900 | [diff] [blame] | 24 | |
Kuninori Morimoto | 6374f49 | 2020-12-01 08:51:33 +0900 | [diff] [blame] | 25 | int snd_soc_link_trigger(struct snd_pcm_substream *substream, int cmd, |
| 26 | int rollback); |
Kuninori Morimoto | 9ab711c | 2020-05-25 09:57:41 +0900 | [diff] [blame] | 27 | int snd_soc_link_compr_startup(struct snd_compr_stream *cstream); |
Kuninori Morimoto | cd7c7d1 | 2020-11-19 08:50:14 +0900 | [diff] [blame] | 28 | void snd_soc_link_compr_shutdown(struct snd_compr_stream *cstream, |
| 29 | int rollback); |
Kuninori Morimoto | eab810f | 2020-05-25 09:57:50 +0900 | [diff] [blame] | 30 | int snd_soc_link_compr_set_params(struct snd_compr_stream *cstream); |
Kuninori Morimoto | 9ab711c | 2020-05-25 09:57:41 +0900 | [diff] [blame] | 31 | |
Kuninori Morimoto | 02e7563 | 2020-05-25 09:57:14 +0900 | [diff] [blame] | 32 | #endif /* __SOC_LINK_H */ |