• Home
  • Raw
  • Download

Lines Matching refs:rstream

121     void SetupRstream(struct cras_rstream *rstream,  in SetupRstream()  argument
123 memset(rstream, 0, sizeof(*rstream)); in SetupRstream()
124 rstream->direction = direction; in SetupRstream()
125 rstream->cb_threshold = 480; in SetupRstream()
126 rstream->shm.area = static_cast<cras_audio_shm_area*>( in SetupRstream()
127 calloc(1, sizeof(*rstream->shm.area))); in SetupRstream()
130 void TearDownRstream(struct cras_rstream *rstream) { in TearDownRstream() argument
131 free(rstream->shm.area); in TearDownRstream()
134 void SetupPinnedStream(struct cras_rstream *rstream, in SetupPinnedStream() argument
137 SetupRstream(rstream, direction); in SetupPinnedStream()
138 rstream->is_pinned = 1; in SetupPinnedStream()
139 rstream->pinned_dev_idx = pin_to_dev->info.idx; in SetupPinnedStream()
339 struct cras_rstream rstream; in TEST_F() local
345 SetupRstream(&rstream, CRAS_STREAM_INPUT); in TEST_F()
352 thread_add_stream(thread_, &rstream, iodevs, 2); in TEST_F()
365 EXPECT_EQ(&rstream, cras_rstream_dev_offset_rstream_val[0]); in TEST_F()
367 EXPECT_EQ(&rstream, cras_rstream_dev_offset_rstream_val[1]); in TEST_F()
378 TearDownRstream(&rstream); in TEST_F()
428 struct cras_rstream rstream; in TEST_F() local
435 SetupRstream(&rstream, CRAS_STREAM_OUTPUT); in TEST_F()
441 thread_add_stream(thread_, &rstream, &piodev, 1); in TEST_F()
443 EXPECT_EQ(dev_stream->stream, &rstream); in TEST_F()
453 EXPECT_EQ(dev_stream->stream, &rstream); in TEST_F()
459 EXPECT_EQ(dev_stream->stream, &rstream); in TEST_F()
474 dev_io_remove_stream(&thread_->open_devs[rstream.direction], in TEST_F()
475 &rstream, &iodev); in TEST_F()
490 TearDownRstream(&rstream); in TEST_F()
632 struct cras_rstream rstream; in TEST_F() local
637 SetupRstream(&rstream, CRAS_STREAM_OUTPUT); in TEST_F()
644 thread_add_stream(thread_, &rstream, &piodev, 1); in TEST_F()
663 TearDownRstream(&rstream); in TEST_F()
668 struct cras_rstream rstream; in TEST_F() local
673 SetupRstream(&rstream, CRAS_STREAM_OUTPUT); in TEST_F()
680 thread_add_stream(thread_, &rstream, &piodev, 1); in TEST_F()
697 TearDownRstream(&rstream); in TEST_F()
701 struct cras_rstream rstream; in TEST() local
705 memset(&rstream, 0, sizeof(rstream)); in TEST()
707 rstream.shm.config.frame_bytes = 4; in TEST()
710 rstream.shm.config.used_size = 4096 * 4; in TEST()
711 rstream.shm.area = &shm_area; in TEST()
712 rstream.format.frame_rate = 48000; in TEST()
713 rstream.direction = CRAS_STREAM_OUTPUT; in TEST()
716 EXPECT_EQ(1, thread_drain_stream_ms_remaining(&thread, &rstream)); in TEST()
719 EXPECT_EQ(10, thread_drain_stream_ms_remaining(&thread, &rstream)); in TEST()
722 EXPECT_EQ(0, thread_drain_stream_ms_remaining(&thread, &rstream)); in TEST()
724 rstream.direction = CRAS_STREAM_INPUT; in TEST()
726 EXPECT_EQ(0, thread_drain_stream_ms_remaining(&thread, &rstream)); in TEST()
882 void cras_rstream_dev_attach(struct cras_rstream *rstream, in cras_rstream_dev_attach() argument
888 void cras_rstream_dev_detach(struct cras_rstream *rstream, unsigned int dev_id) in cras_rstream_dev_detach() argument
896 void cras_rstream_dev_offset_update(struct cras_rstream *rstream, in cras_rstream_dev_offset_update() argument
902 cras_rstream_dev_offset_update_rstream_val[i] = rstream; in cras_rstream_dev_offset_update()
909 unsigned int cras_rstream_dev_offset(const struct cras_rstream *rstream, in cras_rstream_dev_offset() argument
914 cras_rstream_dev_offset_rstream_val[i] = rstream; in cras_rstream_dev_offset()
922 void cras_rstream_record_fetch_interval(struct cras_rstream *rstream, in cras_rstream_record_fetch_interval() argument