• Home
  • Raw
  • Download

Lines Matching +full:fe +full:- +full:dai +full:- +full:link

1 /* SPDX-License-Identifier: GPL-2.0
3 * linux/sound/soc-dpcm.h -- ALSA SoC Dynamic PCM Support
18 * Types of runtime_update to perform. e.g. originated from FE PCM ops
28 * Dynamic PCM Frontend -> Backend link management states.
31 SND_SOC_DPCM_LINK_STATE_NEW = 0, /* newly created link */
32 SND_SOC_DPCM_LINK_STATE_FREE, /* link to be dismantled */
36 * Dynamic PCM Frontend -> Backend link PCM states.
65 * Dynamic PCM link
66 * This links together a FE and BE DAI at runtime and stores the link
70 /* FE and BE DAIs*/
72 struct snd_soc_pcm_runtime *fe; member
74 /* link state */
77 /* list of BE and FE for this DPCM link */
108 list_for_each_entry(_dpcm, &(be)->dpcm[stream].fe_clients, list_fe)
110 #define for_each_dpcm_be(fe, stream, _dpcm) \ argument
111 list_for_each_entry(_dpcm, &(fe)->dpcm[stream].be_clients, list_be)
112 #define for_each_dpcm_be_safe(fe, stream, _dpcm, __dpcm) \ argument
113 list_for_each_entry_safe(_dpcm, __dpcm, &(fe)->dpcm[stream].be_clients, list_be)
114 #define for_each_dpcm_be_rollback(fe, stream, _dpcm) \ argument
115 list_for_each_entry_continue_reverse(_dpcm, &(fe)->dpcm[stream].be_clients, list_be)
118 int snd_soc_dpcm_can_be_free_stop(struct snd_soc_pcm_runtime *fe,
122 int snd_soc_dpcm_can_be_params(struct snd_soc_pcm_runtime *fe,
126 int snd_soc_dpcm_can_be_prepared(struct snd_soc_pcm_runtime *fe,
129 /* is the current PCM operation for this FE ? */
130 int snd_soc_dpcm_fe_can_update(struct snd_soc_pcm_runtime *fe, int stream);
133 int snd_soc_dpcm_be_can_update(struct snd_soc_pcm_runtime *fe,
140 /* update audio routing between PCMs and any DAI links */
151 int dpcm_path_get(struct snd_soc_pcm_runtime *fe,
154 int dpcm_process_paths(struct snd_soc_pcm_runtime *fe,
156 int dpcm_be_dai_startup(struct snd_soc_pcm_runtime *fe, int stream);
157 void dpcm_be_dai_stop(struct snd_soc_pcm_runtime *fe, int stream,
159 void dpcm_be_disconnect(struct snd_soc_pcm_runtime *fe, int stream);
160 void dpcm_clear_pending_state(struct snd_soc_pcm_runtime *fe, int stream);
161 void dpcm_be_dai_hw_free(struct snd_soc_pcm_runtime *fe, int stream);
162 int dpcm_be_dai_hw_params(struct snd_soc_pcm_runtime *fe, int tream);
163 int dpcm_be_dai_trigger(struct snd_soc_pcm_runtime *fe, int stream, int cmd);
164 int dpcm_be_dai_prepare(struct snd_soc_pcm_runtime *fe, int stream);
165 int dpcm_dapm_stream_event(struct snd_soc_pcm_runtime *fe, int dir,
171 #define dpcm_be_dai_startup_rollback(fe, stream, last) \ argument
172 dpcm_be_dai_stop(fe, stream, 0, last)
173 #define dpcm_be_dai_startup_unwind(fe, stream) dpcm_be_dai_stop(fe, stream, 0, NULL) argument
174 #define dpcm_be_dai_shutdown(fe, stream) dpcm_be_dai_stop(fe, stream, 1, NULL) argument