Lines Matching full:fe

135 	struct snd_soc_pcm_runtime *fe = cstream->private_data;  in soc_compr_open_fe()  local
136 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(fe, 0); in soc_compr_open_fe()
142 snd_soc_card_mutex_lock(fe->card); in soc_compr_open_fe()
144 ret = dpcm_path_get(fe, stream, &list); in soc_compr_open_fe()
148 snd_soc_dpcm_mutex_lock(fe); in soc_compr_open_fe()
150 /* calculate valid and active FE <-> BE dpcms */ in soc_compr_open_fe()
151 dpcm_process_paths(fe, stream, &list, 1); in soc_compr_open_fe()
153 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in soc_compr_open_fe()
155 ret = dpcm_be_dai_startup(fe, stream); in soc_compr_open_fe()
158 for_each_dpcm_be(fe, stream, dpcm) in soc_compr_open_fe()
161 dpcm_be_disconnect(fe, stream); in soc_compr_open_fe()
177 dpcm_clear_pending_state(fe, stream); in soc_compr_open_fe()
180 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in soc_compr_open_fe()
181 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_open_fe()
183 snd_soc_runtime_activate(fe, stream); in soc_compr_open_fe()
184 snd_soc_dpcm_mutex_unlock(fe); in soc_compr_open_fe()
186 snd_soc_card_mutex_unlock(fe->card); in soc_compr_open_fe()
196 snd_soc_dpcm_mutex_unlock(fe); in soc_compr_open_fe()
198 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_open_fe()
199 snd_soc_card_mutex_unlock(fe->card); in soc_compr_open_fe()
205 struct snd_soc_pcm_runtime *fe = cstream->private_data; in soc_compr_free_fe() local
206 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(fe, 0); in soc_compr_free_fe()
210 snd_soc_card_mutex_lock(fe->card); in soc_compr_free_fe()
212 snd_soc_dpcm_mutex_lock(fe); in soc_compr_free_fe()
213 snd_soc_runtime_deactivate(fe, stream); in soc_compr_free_fe()
215 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in soc_compr_free_fe()
217 dpcm_be_dai_hw_free(fe, stream); in soc_compr_free_fe()
219 dpcm_be_dai_shutdown(fe, stream); in soc_compr_free_fe()
221 /* mark FE's links ready to prune */ in soc_compr_free_fe()
222 for_each_dpcm_be(fe, stream, dpcm) in soc_compr_free_fe()
225 dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_STOP); in soc_compr_free_fe()
227 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in soc_compr_free_fe()
228 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_free_fe()
230 dpcm_be_disconnect(fe, stream); in soc_compr_free_fe()
232 snd_soc_dpcm_mutex_unlock(fe); in soc_compr_free_fe()
240 snd_soc_card_mutex_unlock(fe->card); in soc_compr_free_fe()
278 struct snd_soc_pcm_runtime *fe = cstream->private_data; in soc_compr_trigger_fe() local
279 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(fe, 0); in soc_compr_trigger_fe()
287 snd_soc_card_mutex_lock(fe->card); in soc_compr_trigger_fe()
297 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in soc_compr_trigger_fe()
299 ret = dpcm_be_dai_trigger(fe, stream, cmd); in soc_compr_trigger_fe()
305 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in soc_compr_trigger_fe()
309 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP; in soc_compr_trigger_fe()
312 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; in soc_compr_trigger_fe()
317 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_trigger_fe()
318 snd_soc_card_mutex_unlock(fe->card); in soc_compr_trigger_fe()
369 struct snd_soc_pcm_runtime *fe = cstream->private_data; in soc_compr_set_params_fe() local
371 fe->pcm->streams[cstream->direction].substream; in soc_compr_set_params_fe()
372 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(fe, 0); in soc_compr_set_params_fe()
376 snd_soc_card_mutex_lock(fe->card); in soc_compr_set_params_fe()
383 memset(&fe->dpcm[fe_substream->stream].hw_params, 0, in soc_compr_set_params_fe()
386 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in soc_compr_set_params_fe()
388 snd_soc_dpcm_mutex_lock(fe); in soc_compr_set_params_fe()
389 ret = dpcm_be_dai_hw_params(fe, stream); in soc_compr_set_params_fe()
390 snd_soc_dpcm_mutex_unlock(fe); in soc_compr_set_params_fe()
394 snd_soc_dpcm_mutex_lock(fe); in soc_compr_set_params_fe()
395 ret = dpcm_be_dai_prepare(fe, stream); in soc_compr_set_params_fe()
396 snd_soc_dpcm_mutex_unlock(fe); in soc_compr_set_params_fe()
411 snd_soc_dpcm_mutex_lock(fe); in soc_compr_set_params_fe()
412 dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_START); in soc_compr_set_params_fe()
413 snd_soc_dpcm_mutex_unlock(fe); in soc_compr_set_params_fe()
414 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PREPARE; in soc_compr_set_params_fe()
417 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_set_params_fe()
418 snd_soc_card_mutex_unlock(fe->card); in soc_compr_set_params_fe()