Lines Matching refs:str_info
31 struct stream_info *str_info; in sst_alloc_stream_mrfld() local
38 str_info = get_stream_info(sst_drv_ctx, str_id); in sst_alloc_stream_mrfld()
39 if (!str_info) in sst_alloc_stream_mrfld()
42 memset(&str_info->alloc_param, 0, sizeof(str_info->alloc_param)); in sst_alloc_stream_mrfld()
43 str_info->alloc_param.operation = str_params->ops; in sst_alloc_stream_mrfld()
44 str_info->alloc_param.codec_type = str_params->codec; in sst_alloc_stream_mrfld()
45 str_info->alloc_param.sg_count = str_params->aparams.sg_count; in sst_alloc_stream_mrfld()
46 str_info->alloc_param.ring_buf_info[0].addr = in sst_alloc_stream_mrfld()
48 str_info->alloc_param.ring_buf_info[0].size = in sst_alloc_stream_mrfld()
50 str_info->alloc_param.frag_size = str_params->aparams.frag_size; in sst_alloc_stream_mrfld()
52 memcpy(&str_info->alloc_param.codec_params, &str_params->sparams, in sst_alloc_stream_mrfld()
62 pcm_params = &str_info->alloc_param.codec_params.uc.pcm_params; in sst_alloc_stream_mrfld()
77 str_info->alloc_param.ts = sst_drv_ctx->info.mailbox_start + in sst_alloc_stream_mrfld()
80 str_info->alloc_param.ts = sst_drv_ctx->mailbox_add + in sst_alloc_stream_mrfld()
84 str_info->alloc_param.ts); in sst_alloc_stream_mrfld()
86 str_info->pipe_id, str_info->task_id); in sst_alloc_stream_mrfld()
103 struct stream_info *str_info; in sst_realloc_stream() local
107 str_info = get_stream_info(sst_drv_ctx, str_id); in sst_realloc_stream()
108 if (!str_info) in sst_realloc_stream()
112 str_id, str_info->pipe_id); in sst_realloc_stream()
114 ret = sst_prepare_and_post_msg(sst_drv_ctx, str_info->task_id, IPC_CMD, in sst_realloc_stream()
115 IPC_IA_ALLOC_STREAM_MRFLD, str_info->pipe_id, in sst_realloc_stream()
116 sizeof(str_info->alloc_param), &str_info->alloc_param, in sst_realloc_stream()
122 str_info->status = STREAM_UN_INIT; in sst_realloc_stream()
153 struct stream_info *str_info; in sst_start_stream() local
157 str_info = get_stream_info(sst_drv_ctx, str_id); in sst_start_stream()
158 if (!str_info) in sst_start_stream()
160 if (str_info->status != STREAM_RUNNING) in sst_start_stream()
163 retval = sst_prepare_and_post_msg(sst_drv_ctx, str_info->task_id, in sst_start_stream()
164 IPC_CMD, IPC_IA_START_STREAM_MRFLD, str_info->pipe_id, in sst_start_stream()
246 struct stream_info *str_info; in sst_pause_stream() local
249 str_info = get_stream_info(sst_drv_ctx, str_id); in sst_pause_stream()
250 if (!str_info) in sst_pause_stream()
252 if (str_info->status == STREAM_PAUSED) in sst_pause_stream()
254 if (str_info->status == STREAM_RUNNING || in sst_pause_stream()
255 str_info->status == STREAM_INIT) { in sst_pause_stream()
256 if (str_info->prev == STREAM_UN_INIT) in sst_pause_stream()
259 retval = sst_prepare_and_post_msg(sst_drv_ctx, str_info->task_id, IPC_CMD, in sst_pause_stream()
260 IPC_IA_PAUSE_STREAM_MRFLD, str_info->pipe_id, in sst_pause_stream()
264 str_info->prev = str_info->status; in sst_pause_stream()
265 str_info->status = STREAM_PAUSED; in sst_pause_stream()
269 sst_clean_stream(str_info); in sst_pause_stream()
291 struct stream_info *str_info; in sst_resume_stream() local
294 str_info = get_stream_info(sst_drv_ctx, str_id); in sst_resume_stream()
295 if (!str_info) in sst_resume_stream()
297 if (str_info->status == STREAM_RUNNING) in sst_resume_stream()
300 if (str_info->resume_status == STREAM_PAUSED && in sst_resume_stream()
301 str_info->resume_prev == STREAM_RUNNING) { in sst_resume_stream()
307 str_info->status = STREAM_RUNNING; in sst_resume_stream()
308 str_info->prev = STREAM_PAUSED; in sst_resume_stream()
310 str_info->resume_status = STREAM_UN_INIT; in sst_resume_stream()
311 } else if (str_info->resume_status == STREAM_PAUSED && in sst_resume_stream()
312 str_info->resume_prev == STREAM_INIT) { in sst_resume_stream()
318 str_info->status = STREAM_INIT; in sst_resume_stream()
319 str_info->prev = STREAM_PAUSED; in sst_resume_stream()
320 str_info->resume_status = STREAM_UN_INIT; in sst_resume_stream()
321 } else if (str_info->status == STREAM_PAUSED) { in sst_resume_stream()
322 retval = sst_prepare_and_post_msg(sst_drv_ctx, str_info->task_id, in sst_resume_stream()
324 str_info->pipe_id, 0, NULL, NULL, in sst_resume_stream()
328 if (str_info->prev == STREAM_RUNNING) in sst_resume_stream()
329 str_info->status = STREAM_RUNNING; in sst_resume_stream()
331 str_info->status = STREAM_INIT; in sst_resume_stream()
332 str_info->prev = STREAM_PAUSED; in sst_resume_stream()
336 sst_clean_stream(str_info); in sst_resume_stream()
359 struct stream_info *str_info; in sst_drop_stream() local
362 str_info = get_stream_info(sst_drv_ctx, str_id); in sst_drop_stream()
363 if (!str_info) in sst_drop_stream()
366 if (str_info->status != STREAM_UN_INIT) { in sst_drop_stream()
367 str_info->prev = STREAM_UN_INIT; in sst_drop_stream()
368 str_info->status = STREAM_INIT; in sst_drop_stream()
369 str_info->cumm_bytes = 0; in sst_drop_stream()
370 retval = sst_prepare_and_post_msg(sst_drv_ctx, str_info->task_id, in sst_drop_stream()
372 str_info->pipe_id, 0, NULL, NULL, in sst_drop_stream()
377 str_info->status); in sst_drop_stream()
395 struct stream_info *str_info; in sst_drain_stream() local
398 str_info = get_stream_info(sst_drv_ctx, str_id); in sst_drain_stream()
399 if (!str_info) in sst_drain_stream()
401 if (str_info->status != STREAM_RUNNING && in sst_drain_stream()
402 str_info->status != STREAM_INIT && in sst_drain_stream()
403 str_info->status != STREAM_PAUSED) { in sst_drain_stream()
405 str_info->status); in sst_drain_stream()
409 retval = sst_prepare_and_post_msg(sst_drv_ctx, str_info->task_id, IPC_CMD, in sst_drain_stream()
410 IPC_IA_DRAIN_STREAM_MRFLD, str_info->pipe_id, in sst_drain_stream()
432 struct stream_info *str_info; in sst_free_stream() local
442 str_info = get_stream_info(sst_drv_ctx, str_id); in sst_free_stream()
443 if (!str_info) in sst_free_stream()
446 mutex_lock(&str_info->lock); in sst_free_stream()
447 if (str_info->status != STREAM_UN_INIT) { in sst_free_stream()
448 str_info->prev = str_info->status; in sst_free_stream()
449 str_info->status = STREAM_UN_INIT; in sst_free_stream()
450 mutex_unlock(&str_info->lock); in sst_free_stream()
453 str_id, str_info->pipe_id); in sst_free_stream()
454 retval = sst_prepare_and_post_msg(sst_drv_ctx, str_info->task_id, IPC_CMD, in sst_free_stream()
455 IPC_IA_FREE_STREAM_MRFLD, str_info->pipe_id, 0, in sst_free_stream()
461 sst_clean_stream(str_info); in sst_free_stream()
465 mutex_unlock(&str_info->lock); in sst_free_stream()