Lines Matching refs:stream

75 	int stream;  in soc_compr_open_fe()  local
79 stream = SNDRV_PCM_STREAM_PLAYBACK; in soc_compr_open_fe()
81 stream = SNDRV_PCM_STREAM_CAPTURE; in soc_compr_open_fe()
102 fe->dpcm[stream].runtime = fe_substream->runtime; in soc_compr_open_fe()
104 ret = dpcm_path_get(fe, stream, &list); in soc_compr_open_fe()
109 fe->dai_link->name, stream ? "capture" : "playback"); in soc_compr_open_fe()
112 dpcm_process_paths(fe, stream, &list, 1); in soc_compr_open_fe()
114 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in soc_compr_open_fe()
116 ret = dpcm_be_dai_startup(fe, stream); in soc_compr_open_fe()
119 list_for_each_entry(dpcm, &fe->dpcm[stream].be_clients, list_be) in soc_compr_open_fe()
122 dpcm_be_disconnect(fe, stream); in soc_compr_open_fe()
123 fe->dpcm[stream].runtime = NULL; in soc_compr_open_fe()
127 dpcm_clear_pending_state(fe, stream); in soc_compr_open_fe()
130 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in soc_compr_open_fe()
131 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_open_fe()
133 snd_soc_runtime_activate(fe, stream); in soc_compr_open_fe()
146 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_open_fe()
185 int stream; in soc_compr_free() local
190 stream = SNDRV_PCM_STREAM_PLAYBACK; in soc_compr_free()
192 stream = SNDRV_PCM_STREAM_CAPTURE; in soc_compr_free()
194 snd_soc_runtime_deactivate(rtd, stream); in soc_compr_free()
238 int stream, ret; in soc_compr_free_fe() local
243 stream = SNDRV_PCM_STREAM_PLAYBACK; in soc_compr_free_fe()
245 stream = SNDRV_PCM_STREAM_CAPTURE; in soc_compr_free_fe()
247 snd_soc_runtime_deactivate(fe, stream); in soc_compr_free_fe()
249 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in soc_compr_free_fe()
251 ret = dpcm_be_dai_hw_free(fe, stream); in soc_compr_free_fe()
255 ret = dpcm_be_dai_shutdown(fe, stream); in soc_compr_free_fe()
258 list_for_each_entry(dpcm, &fe->dpcm[stream].be_clients, list_be) in soc_compr_free_fe()
261 dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_STOP); in soc_compr_free_fe()
263 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in soc_compr_free_fe()
264 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_free_fe()
266 dpcm_be_disconnect(fe, stream); in soc_compr_free_fe()
268 fe->dpcm[stream].runtime = NULL; in soc_compr_free_fe()
314 int ret = 0, stream; in soc_compr_trigger_fe() local
326 stream = SNDRV_PCM_STREAM_PLAYBACK; in soc_compr_trigger_fe()
328 stream = SNDRV_PCM_STREAM_CAPTURE; in soc_compr_trigger_fe()
339 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in soc_compr_trigger_fe()
341 ret = dpcm_be_dai_trigger(fe, stream, cmd); in soc_compr_trigger_fe()
347 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_START; in soc_compr_trigger_fe()
351 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP; in soc_compr_trigger_fe()
354 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED; in soc_compr_trigger_fe()
359 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_trigger_fe()
417 int ret = 0, stream; in soc_compr_set_params_fe() local
420 stream = SNDRV_PCM_STREAM_PLAYBACK; in soc_compr_set_params_fe()
422 stream = SNDRV_PCM_STREAM_CAPTURE; in soc_compr_set_params_fe()
443 memset(&fe->dpcm[fe_substream->stream].hw_params, 0, in soc_compr_set_params_fe()
446 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in soc_compr_set_params_fe()
448 ret = dpcm_be_dai_hw_params(fe, stream); in soc_compr_set_params_fe()
452 ret = dpcm_be_dai_prepare(fe, stream); in soc_compr_set_params_fe()
456 dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_START); in soc_compr_set_params_fe()
457 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PREPARE; in soc_compr_set_params_fe()
460 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_set_params_fe()