Lines Matching refs:stream_config
36 static struct cras_rstream_config *stream_config; variable
44 if (!stream_config) in server_stream_add_cb()
47 stream_list_add(stream_list, stream_config, &stream); in server_stream_add_cb()
52 if (stream_config) { in server_stream_create()
54 stream_config->dev_idx); in server_stream_create()
58 stream_config = (struct cras_rstream_config *) in server_stream_create()
59 calloc(1, sizeof(*stream_config)); in server_stream_create()
60 stream_config->format = &format; in server_stream_create()
61 stream_config->stream_id = in server_stream_create()
63 stream_config->stream_type = CRAS_STREAM_TYPE_DEFAULT; in server_stream_create()
64 stream_config->direction = CRAS_STREAM_INPUT; in server_stream_create()
65 stream_config->flags = SERVER_ONLY; in server_stream_create()
66 stream_config->buffer_frames = server_stream_block_size; in server_stream_create()
67 stream_config->cb_threshold = server_stream_block_size; in server_stream_create()
68 stream_config->dev_idx = dev_idx; in server_stream_create()
69 stream_config->audio_fd = -1; in server_stream_create()
79 if (stream_config == NULL) in server_stream_rm_cb()
82 if (stream_list_rm(stream_list, stream_config->stream_id)) in server_stream_rm_cb()
84 stream_config->stream_id); in server_stream_rm_cb()
86 free(stream_config); in server_stream_rm_cb()
87 stream_config = NULL; in server_stream_rm_cb()
93 if (!stream_config || stream_config->dev_idx != dev_idx) { in server_stream_destroy()