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.
64 * Dynamic PCM link
65 * This links together a FE and BE DAI at runtime and stores the link
69 /* FE and BE DAIs*/
71 struct snd_soc_pcm_runtime *fe; member
73 /* link state */
76 /* list of BE and FE for this DPCM link */
107 list_for_each_entry(_dpcm, &(be)->dpcm[stream].fe_clients, list_fe)
109 #define for_each_dpcm_be(fe, stream, _dpcm) \ argument
110 list_for_each_entry(_dpcm, &(fe)->dpcm[stream].be_clients, list_be)
111 #define for_each_dpcm_be_safe(fe, stream, _dpcm, __dpcm) \ argument
112 list_for_each_entry_safe(_dpcm, __dpcm, &(fe)->dpcm[stream].be_clients, list_be)
113 #define for_each_dpcm_be_rollback(fe, stream, _dpcm) \ argument
114 list_for_each_entry_continue_reverse(_dpcm, &(fe)->dpcm[stream].be_clients, list_be)
121 /* update audio routing between PCMs and any DAI links */
132 int dpcm_path_get(struct snd_soc_pcm_runtime *fe,
135 int dpcm_process_paths(struct snd_soc_pcm_runtime *fe,
137 int dpcm_be_dai_startup(struct snd_soc_pcm_runtime *fe, int stream);
138 void dpcm_be_dai_stop(struct snd_soc_pcm_runtime *fe, int stream,
140 void dpcm_be_disconnect(struct snd_soc_pcm_runtime *fe, int stream);
141 void dpcm_clear_pending_state(struct snd_soc_pcm_runtime *fe, int stream);
142 void dpcm_be_dai_hw_free(struct snd_soc_pcm_runtime *fe, int stream);
143 int dpcm_be_dai_hw_params(struct snd_soc_pcm_runtime *fe, int tream);
144 int dpcm_be_dai_trigger(struct snd_soc_pcm_runtime *fe, int stream, int cmd);
145 int dpcm_be_dai_prepare(struct snd_soc_pcm_runtime *fe, int stream);
146 int dpcm_dapm_stream_event(struct snd_soc_pcm_runtime *fe, int dir,
152 #define dpcm_be_dai_startup_rollback(fe, stream, last) \ argument
153 dpcm_be_dai_stop(fe, stream, 0, last)
154 #define dpcm_be_dai_startup_unwind(fe, stream) dpcm_be_dai_stop(fe, stream, 0, NULL) argument
155 #define dpcm_be_dai_shutdown(fe, stream) dpcm_be_dai_stop(fe, stream, 1, NULL) argument