Home
last modified time | relevance | path

Searched refs:dev_stream (Results 1 – 16 of 16) sorted by relevance

/external/adhd/cras/src/server/
Ddev_stream.h33 struct dev_stream { struct
41 struct dev_stream *prev, *next; argument
44 struct dev_stream *dev_stream_create(struct cras_rstream *stream,
48 void dev_stream_destroy(struct dev_stream *dev_stream);
65 void dev_stream_set_dev_rate(struct dev_stream *dev_stream,
80 int dev_stream_mix(struct dev_stream *dev_stream,
93 unsigned int dev_stream_capture(struct dev_stream *dev_stream,
99 int dev_stream_attached_devs(const struct dev_stream *dev_stream);
102 void dev_stream_update_frames(const struct dev_stream *dev_stream);
109 int dev_stream_playback_frames(const struct dev_stream *dev_stream);
[all …]
Ddev_stream.c67 struct dev_stream *dev_stream_create(struct cras_rstream *stream, in dev_stream_create()
73 struct dev_stream *out; in dev_stream_create()
150 void dev_stream_destroy(struct dev_stream *dev_stream) in dev_stream_destroy() argument
152 cras_rstream_dev_detach(dev_stream->stream, dev_stream->dev_id); in dev_stream_destroy()
153 if (dev_stream->conv) { in dev_stream_destroy()
154 cras_audio_area_destroy(dev_stream->conv_area); in dev_stream_destroy()
155 cras_fmt_conv_destroy(&dev_stream->conv); in dev_stream_destroy()
156 byte_buffer_destroy(&dev_stream->conv_buffer); in dev_stream_destroy()
158 free(dev_stream); in dev_stream_destroy()
161 void dev_stream_set_dev_rate(struct dev_stream *dev_stream, in dev_stream_set_dev_rate() argument
[all …]
Ddev_io.c40 struct cras_iodev *get_master_dev(const struct dev_stream *stream) in get_master_dev()
52 struct dev_stream *dev_stream; in update_estimated_rate() local
54 DL_FOREACH(dev->streams, dev_stream) { in update_estimated_rate()
55 master_dev = get_master_dev(dev_stream); in update_estimated_rate()
61 dev_stream_set_dev_rate(dev_stream, in update_estimated_rate()
104 struct dev_stream *dev_stream; in fetch_streams() local
113 DL_FOREACH(adev->dev->streams, dev_stream) { in fetch_streams()
114 struct cras_rstream *rstream = dev_stream->stream; in fetch_streams()
122 if (dev_stream_is_pending_reply(dev_stream)) { in fetch_streams()
123 dev_stream_flush_old_audio_messages(dev_stream); in fetch_streams()
[all …]
Daudio_thread.c262 struct dev_stream *out; in append_stream()
433 struct dev_stream *s; in thread_find_stream()
529 struct dev_stream *stream; in thread_set_aec_dump()
580 struct dev_stream *stream, in append_stream_dump_info()
669 struct dev_stream *curr; in handle_playback_thread_message()
766 static int get_next_stream_wake_from_list(struct dev_stream *streams, in get_next_stream_wake_from_list()
769 struct dev_stream *dev_stream; in get_next_stream_wake_from_list() local
772 DL_FOREACH(streams, dev_stream) { in get_next_stream_wake_from_list()
775 if (cras_rstream_get_is_draining(dev_stream->stream) && in get_next_stream_wake_from_list()
776 dev_stream_playback_frames(dev_stream) <= 0) in get_next_stream_wake_from_list()
[all …]
Dcras_iodev.h244 struct dev_stream *streams;
496 struct dev_stream *stream);
499 struct dev_stream *cras_iodev_rm_stream(struct cras_iodev *iodev,
504 struct dev_stream *stream);
511 struct dev_stream *stream,
Dcras_iodev.c110 struct dev_stream *curr; in dev_playback_frames()
793 struct dev_stream *stream) in cras_iodev_add_stream()
813 struct dev_stream *cras_iodev_rm_stream(struct cras_iodev *iodev, in cras_iodev_rm_stream()
816 struct dev_stream *out; in cras_iodev_rm_stream()
817 struct dev_stream *ret = NULL; in cras_iodev_rm_stream()
850 struct dev_stream *stream) in cras_iodev_stream_offset()
857 struct dev_stream *stream, in cras_iodev_stream_written()
874 struct dev_stream *curr; in cras_iodev_max_stream_offset()
1470 const struct dev_stream *out; in cras_iodev_has_pinned_stream()
Daudio_thread.h20 struct dev_stream;
/external/adhd/cras/src/tests/
Ddev_stream_unittest.cc218 struct dev_stream devstr;
310 struct dev_stream *dev_stream; in TEST_F() local
316 dev_stream = dev_stream_create(&rstream_, 0, &fmt_s16le_48, (void *)0x55, in TEST_F()
319 EXPECT_NE(static_cast<byte_buffer*>(NULL), dev_stream->conv_buffer); in TEST_F()
326 EXPECT_LE(device_frames, dev_stream->conv_buffer_size_frames); in TEST_F()
327 dev_stream_destroy(dev_stream); in TEST_F()
331 struct dev_stream *dev_stream; in TEST_F() local
341 dev_stream = dev_stream_create(&rstream_, 0, &fmt_s16le_48, (void *)0x55, in TEST_F()
344 EXPECT_NE(static_cast<byte_buffer*>(NULL), dev_stream->conv_buffer); in TEST_F()
352 EXPECT_LE(device_frames, dev_stream->conv_buffer_size_frames); in TEST_F()
[all …]
Daudio_thread_unittest.cc44 static std::map<const struct dev_stream*, struct timespec> dev_stream_wake_time_val;
431 struct dev_stream *dev_stream; in TEST_F() local
442 dev_stream = iodev.streams; in TEST_F()
443 EXPECT_EQ(dev_stream->stream, &rstream); in TEST_F()
445 EXPECT_EQ(dev_stream->next->stream, &rstream2); in TEST_F()
449 dev_stream = iodev2.streams; in TEST_F()
450 EXPECT_EQ(NULL, dev_stream); in TEST_F()
452 dev_stream = iodev.streams; in TEST_F()
453 EXPECT_EQ(dev_stream->stream, &rstream); in TEST_F()
454 EXPECT_EQ(dev_stream->next->stream, &rstream2); in TEST_F()
[all …]
Daudio_thread_unittest_obsolete.cc16 struct dev_stream *dev_stream; member
23 struct dev_stream *dev_stream; member
315 EXPECT_EQ(rstream_, dev_stream_capture_call.dev_stream->stream); in TEST_F()
355 EXPECT_EQ(rstream_, dev_stream_capture_call.dev_stream->stream); in TEST_F()
357 EXPECT_EQ(rstream_, cap_sleep_frames_call.dev_stream->stream); in TEST_F()
473 EXPECT_EQ(rstream_, dev_stream_capture_call.dev_stream->stream); in TEST_F()
475 EXPECT_EQ(rstream_, cap_sleep_frames_call.dev_stream->stream); in TEST_F()
482 EXPECT_EQ(rstream_, dev_stream_capture_call.dev_stream->stream); in TEST_F()
484 EXPECT_EQ(rstream_, cap_sleep_frames_call.dev_stream->stream); in TEST_F()
490 EXPECT_EQ(rstream_, dev_stream_capture_call.dev_stream->stream); in TEST_F()
[all …]
Diodev_stub.cc51 struct dev_stream *cras_iodev_rm_stream(struct cras_iodev *iodev, in cras_iodev_rm_stream()
95 struct dev_stream *stream, in cras_iodev_stream_written()
125 struct dev_stream *stream) { in cras_iodev_stream_offset()
Diodev_unittest.cc1437 struct dev_stream stream1, stream2; in TEST()
1482 struct dev_stream stream; in TEST()
1594 struct dev_stream stream1; in TEST()
1933 iodev.streams = reinterpret_cast<struct dev_stream *>(0x1); in TEST()
2133 struct dev_stream stream1; in TEST()
2481 unsigned int dev_stream_cb_threshold(const struct dev_stream *dev_stream) { in dev_stream_cb_threshold() argument
2482 if (dev_stream->stream) in dev_stream_cb_threshold()
2483 return dev_stream->stream->cb_threshold; in dev_stream_cb_threshold()
2487 int dev_stream_attached_devs(const struct dev_stream *dev_stream) { in dev_stream_attached_devs() argument
2491 void dev_stream_update_frames(const struct dev_stream *dev_stream) { in dev_stream_update_frames() argument
[all …]
Ddev_io_stubs.cc57 reinterpret_cast<dev_stream*>(calloc(1, sizeof(dev_stream))), in create_dev_stream()
Ddev_io_stubs.h25 using DevStreamPtr = std::unique_ptr<dev_stream, decltype(free)*>;
Dloopback_iodev_unittest.cc140 struct dev_stream stream; in TEST_F()
/external/adhd/cras/src/
DMakefile.am631 server/dev_stream.c \
656 server/dev_stream.c
862 server/dev_stream.c \