/external/adhd/cras/src/server/ |
D | dev_stream.h | 37 struct dev_stream { struct 45 struct dev_stream *prev, *next; argument 65 struct dev_stream *dev_stream_create(struct cras_rstream *stream, 70 void dev_stream_destroy(struct dev_stream *dev_stream); 87 void dev_stream_set_dev_rate(struct dev_stream *dev_stream, 100 int dev_stream_mix(struct dev_stream *dev_stream, 112 unsigned int dev_stream_capture(struct dev_stream *dev_stream, 118 int dev_stream_attached_devs(const struct dev_stream *dev_stream); 121 void dev_stream_update_frames(const struct dev_stream *dev_stream); 128 int dev_stream_playback_frames(const struct dev_stream *dev_stream); [all …]
|
D | dev_stream.c | 63 struct dev_stream *dev_stream_create(struct cras_rstream *stream, in dev_stream_create() 69 struct dev_stream *out; in dev_stream_create() 143 void dev_stream_destroy(struct dev_stream *dev_stream) in dev_stream_destroy() argument 146 cras_rstream_dev_ptr(dev_stream->stream, dev_stream->dev_id); in dev_stream_destroy() 148 cras_apm_list_stop_apm(dev_stream->stream->apm_list, dev_ptr); in dev_stream_destroy() 149 cras_rstream_dev_detach(dev_stream->stream, dev_stream->dev_id); in dev_stream_destroy() 150 if (dev_stream->conv) { in dev_stream_destroy() 151 cras_audio_area_destroy(dev_stream->conv_area); in dev_stream_destroy() 152 cras_fmt_conv_destroy(&dev_stream->conv); in dev_stream_destroy() 153 byte_buffer_destroy(&dev_stream->conv_buffer); in dev_stream_destroy() [all …]
|
D | dev_io.c | 58 static inline struct cras_iodev *get_main_dev(const struct dev_stream *stream) in get_main_dev() 73 struct dev_stream *dev_stream; in update_estimated_rate() local 103 DL_FOREACH (dev->streams, dev_stream) { in update_estimated_rate() 104 main_dev = get_main_dev(dev_stream); in update_estimated_rate() 120 dev_stream_set_dev_rate(dev_stream, dev->format->frame_rate, in update_estimated_rate() 156 static bool is_time_to_fetch(const struct dev_stream *dev_stream, in is_time_to_fetch() argument 160 next_cb_ts = dev_stream_next_cb_ts(dev_stream); in is_time_to_fetch() 197 struct dev_stream *dev_stream; in fetch_streams() local 206 DL_FOREACH (adev->dev->streams, dev_stream) { in fetch_streams() 207 struct cras_rstream *rstream = dev_stream->stream; in fetch_streams() [all …]
|
D | cras_iodev.h | 298 struct dev_stream *streams; 529 int cras_iodev_add_stream(struct cras_iodev *iodev, struct dev_stream *stream); 535 struct dev_stream *stream); 538 struct dev_stream *cras_iodev_rm_stream(struct cras_iodev *iodev, 543 struct dev_stream *stream); 550 struct dev_stream *stream,
|
D | cras_iodev.c | 131 struct dev_stream *curr; in dev_playback_frames() 788 int cras_iodev_add_stream(struct cras_iodev *iodev, struct dev_stream *stream) in cras_iodev_add_stream() 804 struct dev_stream *stream) in cras_iodev_start_stream() 823 struct dev_stream *cras_iodev_rm_stream(struct cras_iodev *iodev, in cras_iodev_rm_stream() 826 struct dev_stream *out; in cras_iodev_rm_stream() 827 struct dev_stream *ret = NULL; in cras_iodev_rm_stream() 880 struct dev_stream *stream) in cras_iodev_stream_offset() 887 struct dev_stream *stream, unsigned int nwritten) in cras_iodev_stream_written() 903 struct dev_stream *curr; in cras_iodev_max_stream_offset()
|
D | audio_thread.h | 20 struct dev_stream;
|
D | audio_thread.c | 367 struct dev_stream *s; in thread_find_stream() 462 struct dev_stream *stream; in thread_set_aec_dump() 525 struct dev_stream *stream, in append_stream_dump_info() 624 struct dev_stream *curr; in handle_audio_thread_message() 825 struct dev_stream *curr; in audio_io_thread()
|
/external/adhd/cras/src/tests/ |
D | dev_stream_unittest.cc | 243 struct dev_stream devstr; 330 struct dev_stream* dev_stream; in TEST_F() local 336 dev_stream = in TEST_F() 339 EXPECT_NE(static_cast<byte_buffer*>(NULL), dev_stream->conv_buffer); in TEST_F() 345 EXPECT_LE(device_frames, dev_stream->conv_buffer_size_frames); in TEST_F() 346 dev_stream_destroy(dev_stream); in TEST_F() 350 struct dev_stream* dev_stream; in TEST_F() local 357 dev_stream = dev_stream_create(&rstream_, dev_id, &fmt_s16le_48, (void*)0x55, in TEST_F() 364 dev_stream_destroy(dev_stream); in TEST_F() 368 struct dev_stream* dev_stream; in TEST_F() local [all …]
|
D | audio_thread_unittest.cc | 60 static std::map<const struct dev_stream*, struct timespec> 492 struct dev_stream* dev_stream; in TEST_F() local 502 dev_stream = iodev.streams; in TEST_F() 503 EXPECT_EQ(dev_stream->stream, &rstream); in TEST_F() 531 struct dev_stream* dev_stream; in TEST_F() local 547 dev_stream = iodev.streams; in TEST_F() 548 EXPECT_EQ(dev_stream->stream, &rstream1); in TEST_F() 568 dev_stream = iodev.streams; in TEST_F() 569 EXPECT_EQ(dev_stream->stream, &rstream1); in TEST_F() 579 dev_stream = iodev.streams->prev; in TEST_F() [all …]
|
D | dev_io_unittest.cc | 39 std::unordered_map<struct dev_stream*, set_dev_rate_data> set_dev_rate_map; 386 int dev_stream_attached_devs(const struct dev_stream* dev_stream) { in dev_stream_attached_devs() argument 389 void dev_stream_update_frames(const struct dev_stream* dev_stream) {} in dev_stream_update_frames() argument 390 int dev_stream_playback_frames(const struct dev_stream* dev_stream) { in dev_stream_playback_frames() argument 393 int dev_stream_is_pending_reply(const struct dev_stream* dev_stream) { in dev_stream_is_pending_reply() argument 396 int dev_stream_mix(struct dev_stream* dev_stream, in dev_stream_mix() argument 402 void dev_stream_set_dev_rate(struct dev_stream* dev_stream, in dev_stream_set_dev_rate() argument 413 set_dev_rate_map[dev_stream] = new_data; in dev_stream_set_dev_rate() 415 int dev_stream_capture_update_rstream(struct dev_stream* dev_stream) { in dev_stream_capture_update_rstream() argument 418 int dev_stream_wake_time(struct dev_stream* dev_stream, in dev_stream_wake_time() argument [all …]
|
D | audio_thread_unittest_obsolete.cc | 16 struct dev_stream* dev_stream; member 23 struct dev_stream* dev_stream; member 304 EXPECT_EQ(rstream_, dev_stream_capture_call.dev_stream->stream); in TEST_F() 344 EXPECT_EQ(rstream_, dev_stream_capture_call.dev_stream->stream); in TEST_F() 346 EXPECT_EQ(rstream_, cap_sleep_frames_call.dev_stream->stream); in TEST_F() 462 EXPECT_EQ(rstream_, dev_stream_capture_call.dev_stream->stream); in TEST_F() 464 EXPECT_EQ(rstream_, cap_sleep_frames_call.dev_stream->stream); in TEST_F() 471 EXPECT_EQ(rstream_, dev_stream_capture_call.dev_stream->stream); in TEST_F() 473 EXPECT_EQ(rstream_, cap_sleep_frames_call.dev_stream->stream); in TEST_F() 479 EXPECT_EQ(rstream_, dev_stream_capture_call.dev_stream->stream); in TEST_F() [all …]
|
D | iodev_stub.cc | 71 int cras_iodev_add_stream(struct cras_iodev* iodev, struct dev_stream* stream) { in cras_iodev_add_stream() 110 struct dev_stream* cras_iodev_rm_stream(struct cras_iodev* iodev, in cras_iodev_rm_stream() 160 struct dev_stream* stream, in cras_iodev_stream_written() 190 struct dev_stream* stream) { in cras_iodev_stream_offset() 210 struct dev_stream* stream) {} in cras_iodev_start_stream()
|
D | iodev_unittest.cc | 1372 struct dev_stream stream1, stream2; in TEST() 1423 struct dev_stream stream1, stream2, stream3; in TEST() 1474 struct dev_stream stream1, stream2; in TEST() 1515 struct dev_stream stream; in TEST() 1627 struct dev_stream stream1; in TEST() 2044 struct dev_stream stream; in TEST() 2256 struct dev_stream stream1; in TEST() 2680 unsigned int dev_stream_cb_threshold(const struct dev_stream* dev_stream) { in dev_stream_cb_threshold() argument 2681 if (dev_stream->stream) in dev_stream_cb_threshold() 2682 return dev_stream->stream->cb_threshold; in dev_stream_cb_threshold() [all …]
|
D | dev_io_stubs.cc | 70 reinterpret_cast<dev_stream*>(calloc(1, sizeof(dev_stream))), free); in create_dev_stream()
|
D | dev_io_stubs.h | 26 using DevStreamPtr = std::unique_ptr<dev_stream, decltype(free)*>;
|
D | loopback_iodev_unittest.cc | 194 struct dev_stream stream; in TEST_F()
|
/external/adhd/cras/src/ |
D | Makefile.am | 771 server/dev_stream.c common/cras_shm.c 1038 server/dev_stream.c \
|