• Home
  • Raw
  • Download

Lines Matching refs:rstream

54   RstreamPtr rstream(  in create_rstream()  local
56 rstream->stream_id = id; in create_rstream()
57 rstream->direction = direction; in create_rstream()
58 rstream->fd = RSTREAM_FAKE_POLL_FD; in create_rstream()
59 rstream->buffer_frames = cb_threshold * 2; in create_rstream()
60 rstream->cb_threshold = cb_threshold; in create_rstream()
61 rstream->shm = shm; in create_rstream()
62 rstream->format = *format; in create_rstream()
63 cras_frames_to_time(cb_threshold, rstream->format.frame_rate, in create_rstream()
64 &rstream->sleep_interval_ts); in create_rstream()
65 return rstream; in create_rstream()
68 DevStreamPtr create_dev_stream(unsigned int dev_id, cras_rstream* rstream) { in create_dev_stream() argument
72 dstream->stream = rstream; in create_dev_stream()
73 dstream->dev_rate = rstream->format.frame_rate; in create_dev_stream()
84 RstreamPtr rstream = in create_stream() local
86 DevStreamPtr dstream = create_dev_stream(1, rstream.get()); in create_stream()
88 new Stream(std::move(shm), std::move(rstream), std::move(dstream))); in create_stream()
93 cras_shm_check_write_overrun(stream->rstream->shm); in AddFakeDataToStream()
94 cras_shm_buffer_written(stream->rstream->shm, frames); in AddFakeDataToStream()
148 dev->min_cb_level = std::min(stream->rstream->cb_threshold, in add_stream_to_dev()
150 dev->max_cb_level = std::max(stream->rstream->cb_threshold, in add_stream_to_dev()
152 dev->largest_cb_level = std::max(stream->rstream->cb_threshold, in add_stream_to_dev()
155 if (stream->rstream->main_dev.dev_id == NO_DEVICE) { in add_stream_to_dev()
156 stream->rstream->main_dev.dev_id = dev->info.idx; in add_stream_to_dev()
157 stream->rstream->main_dev.dev_ptr = dev.get(); in add_stream_to_dev()