Home
last modified time | relevance | path

Searched refs:cras_rstream (Results 1 – 25 of 34) sorted by relevance

12

/external/adhd/cras/src/server/
Dcras_rstream.h70 struct cras_rstream { struct
96 struct cras_rstream *prev, *next; argument
134 struct cras_rstream **stream_out);
137 void cras_rstream_destroy(struct cras_rstream *stream);
141 const struct cras_rstream *stream) in cras_rstream_id()
148 const struct cras_rstream *stream) in cras_rstream_get_buffer_frames()
155 const struct cras_rstream *stream) in cras_rstream_get_cb_threshold()
162 const struct cras_rstream *stream) in cras_rstream_get_max_write_frames()
171 const struct cras_rstream *stream) in cras_rstream_get_type()
178 const struct cras_rstream *stream) in cras_rstream_get_direction()
[all …]
Dcras_rstream.c23 static int setup_shm(struct cras_rstream *stream, in setup_shm()
65 static inline int setup_shm_area(struct cras_rstream *stream) in setup_shm_area()
92 struct cras_rstream **stream_out) in verify_rstream_parameters()
134 static void set_pending_reply(struct cras_rstream *stream) in set_pending_reply()
142 static void clear_pending_reply(struct cras_rstream *stream) in clear_pending_reply()
158 const struct cras_rstream *stream, struct audio_message *msg) in get_audio_request_reply()
179 static int read_and_handle_client_message(struct cras_rstream *stream) { in read_and_handle_client_message()
213 struct cras_rstream **stream_out) in cras_rstream_create()
215 struct cras_rstream *stream; in cras_rstream_create()
266 void cras_rstream_destroy(struct cras_rstream *stream) in cras_rstream_destroy()
[all …]
Dstream_list.h10 struct cras_rstream;
15 typedef int (stream_callback)(struct cras_rstream *rstream);
17 struct cras_rstream **rstream);
18 typedef void (stream_destroy_func)(struct cras_rstream *rstream);
28 struct cras_rstream *stream_list_get(struct stream_list *list);
32 struct cras_rstream **stream);
Dstream_list.c13 struct cras_rstream *streams;
14 struct cras_rstream *streams_to_delete;
25 struct cras_rstream *to_delete; in delete_streams()
72 struct cras_rstream *stream_list_get(struct stream_list *list) in stream_list_get()
79 struct cras_rstream **stream) in stream_list_add()
99 struct cras_rstream *to_remove; in stream_list_rm()
118 struct cras_rstream *to_remove; in stream_list_rm_all_client_streams()
Ddev_stream.c67 struct dev_stream *dev_stream_create(struct cras_rstream *stream, in dev_stream_create()
193 struct cras_rstream *rstream = dev_stream->stream; in dev_stream_mix()
299 struct cras_rstream *rstream, in capture_copy_converted_to_stream()
374 struct cras_rstream *rstream = dev_stream->stream; in dev_stream_capture()
452 const struct cras_rstream *rstream = dev_stream->stream; in dev_stream_cb_threshold()
466 struct cras_rstream *rstream = dev_stream->stream; in dev_stream_capture_avail()
505 struct cras_rstream *rstream = dev_stream->stream; in check_next_wake_time()
525 struct cras_rstream *rstream = dev_stream->stream; in late_enough_for_capture_callback()
533 struct cras_rstream *rstream = dev_stream->stream; in dev_stream_capture_update_rstream()
624 struct cras_rstream *rstream = dev_stream->stream; in dev_stream_set_delay()
[all …]
Daudio_thread.h19 struct cras_rstream;
146 struct cras_rstream *stream,
160 struct cras_rstream *stream);
171 struct cras_rstream *stream,
Dcras_iodev_list.c378 struct cras_rstream *rstream; in remove_all_streams_from_dev()
511 struct cras_rstream *rstream) in init_device()
537 struct cras_rstream *rstream; in suspend_devs()
568 static int stream_added_cb(struct cras_rstream *rstream);
572 struct cras_rstream *rstream; in resume_devs()
641 static int add_stream_to_open_devs(struct cras_rstream *stream, in add_stream_to_open_devs()
660 struct cras_rstream *stream; in init_and_attach_streams()
736 struct cras_rstream *rstream) in init_pinned_device()
761 static struct cras_iodev *find_pinned_device(struct cras_rstream *rstream) in find_pinned_device()
782 static int pinned_stream_added(struct cras_rstream *rstream) in pinned_stream_added()
[all …]
Dinput_data.h60 struct cras_rstream *stream,
75 struct cras_rstream *stream,
Daudio_thread.c75 struct cras_rstream *stream;
256 struct cras_rstream *stream, in append_stream()
430 struct cras_rstream *rstream) in thread_find_stream()
446 struct cras_rstream* stream, in thread_disconnect_stream()
466 struct cras_rstream *rstream) in thread_drain_stream_ms_remaining()
489 struct cras_rstream *rstream) in thread_drain_stream()
506 struct cras_rstream *stream, in thread_add_stream()
1038 struct cras_rstream *stream, in init_add_rm_stream_msg()
1084 struct cras_rstream *stream, in audio_thread_add_stream()
1101 struct cras_rstream *stream, in audio_thread_disconnect_stream()
[all …]
Ddev_stream.h35 struct cras_rstream *stream;
44 struct dev_stream *dev_stream_create(struct cras_rstream *stream,
Dinput_data.c91 struct cras_rstream *stream, in input_data_get_for_stream()
126 struct cras_rstream *stream, in input_data_put_for_stream()
Ddev_io.h88 struct cras_rstream *stream,
/external/adhd/cras/src/tests/
Drstream_stub.cc18 std::unordered_map<const cras_rstream*, cb_data> data_map;
26 void rstream_stub_dev_offset(const cras_rstream* rstream, in rstream_stub_dev_offset()
39 void rstream_stub_pending_reply(const cras_rstream* rstream, in rstream_stub_pending_reply()
53 void cras_rstream_record_fetch_interval(struct cras_rstream *rstream, in cras_rstream_record_fetch_interval()
57 void cras_rstream_dev_attach(struct cras_rstream *rstream, in cras_rstream_dev_attach()
62 void cras_rstream_dev_detach(struct cras_rstream *rstream, unsigned int dev_id) { in cras_rstream_dev_detach()
65 unsigned int cras_rstream_dev_offset(const struct cras_rstream *rstream, in cras_rstream_dev_offset()
73 void cras_rstream_dev_offset_update(struct cras_rstream *rstream, in cras_rstream_dev_offset_update()
78 unsigned int cras_rstream_playable_frames(struct cras_rstream *rstream, in cras_rstream_playable_frames()
83 float cras_rstream_get_volume_scaler(struct cras_rstream *rstream) { in cras_rstream_get_volume_scaler()
[all …]
Dstream_list_unittest.cc16 static int added_cb(struct cras_rstream *rstream) { in added_cb()
22 static struct cras_rstream *rmed_stream;
23 static int removed_cb(struct cras_rstream *rstream) { in removed_cb()
31 static struct cras_rstream dummy_rstream;
33 struct cras_rstream **stream) { in create_rstream_cb()
42 static struct cras_rstream *destroyed_stream;
43 static void destroy_rstream_cb(struct cras_rstream *rstream) { in destroy_rstream_cb()
57 struct cras_rstream *s1; in TEST()
Daudio_thread_unittest.cc20 static const struct cras_rstream *cras_rstream_dev_offset_rstream_val[MAX_CALLS];
23 static const struct cras_rstream *cras_rstream_dev_offset_update_rstream_val[MAX_CALLS];
121 void SetupRstream(struct cras_rstream *rstream, in SetupRstream()
130 void TearDownRstream(struct cras_rstream *rstream) { in TearDownRstream()
134 void SetupPinnedStream(struct cras_rstream *rstream, in SetupPinnedStream()
339 struct cras_rstream rstream; in TEST_F()
340 struct cras_rstream rstream2; in TEST_F()
341 struct cras_rstream rstream3; in TEST_F()
386 struct cras_rstream rstream1, rstream2; in TEST_F()
428 struct cras_rstream rstream; in TEST_F()
[all …]
Drstream_unittest.cc80 struct cras_rstream *s; in TEST_F()
89 struct cras_rstream *s; in TEST_F()
98 struct cras_rstream *s; in TEST_F()
107 struct cras_rstream *s; in TEST_F()
123 struct cras_rstream *s; in TEST_F()
159 struct cras_rstream *s; in TEST_F()
196 struct cras_rstream *s; in TEST_F()
227 struct cras_rstream *s; in TEST_F()
250 struct cras_rstream *s; in TEST_F()
283 struct cras_rstream *s; in TEST_F()
[all …]
Diodev_list_unittest.cc48 static struct cras_rstream *stream_list_get_ret;
64 static struct cras_rstream *audio_thread_add_stream_stream;
88 static struct cras_rstream *audio_thread_disconnect_stream_stream;
273 struct cras_rstream rstream, rstream2, rstream3; in TEST_F()
274 struct cras_rstream *stream_list = NULL; in TEST_F()
334 struct cras_rstream rstream; in TEST_F()
335 struct cras_rstream *stream_list = NULL; in TEST_F()
361 struct cras_rstream rstream; in TEST_F()
362 struct cras_rstream *stream_list = NULL; in TEST_F()
407 struct cras_rstream rstream; in TEST_F()
[all …]
Ddev_stream_unittest.cc80 struct cras_rstream *rstream;
222 struct cras_rstream rstream_;
601 dev_stream.stream = reinterpret_cast<cras_rstream*>(0x5446); in TEST_F()
627 dev_stream.stream = reinterpret_cast<cras_rstream*>(0x5446); in TEST_F()
1085 int cras_rstream_audio_ready(struct cras_rstream *stream, size_t count) { in cras_rstream_audio_ready()
1091 int cras_rstream_request_audio(struct cras_rstream *stream, in cras_rstream_request_audio()
1096 void cras_rstream_record_fetch_interval(struct cras_rstream *rstream, in cras_rstream_record_fetch_interval()
1100 void cras_rstream_update_input_write_pointer(struct cras_rstream *rstream) { in cras_rstream_update_input_write_pointer()
1103 void cras_rstream_update_output_read_pointer(struct cras_rstream *rstream) { in cras_rstream_update_output_read_pointer()
1106 void cras_rstream_dev_offset_update(struct cras_rstream *rstream, in cras_rstream_dev_offset_update()
[all …]
Ddev_io_unittest.cc91 struct cras_rstream *stream, in input_data_get_for_stream()
100 struct cras_rstream *stream, in input_data_put_for_stream()
107 const struct cras_rstream *stream, void *dev_ptr) in cras_rstream_post_processing_format()
Drstream_stub.h13 void rstream_stub_dev_offset(const cras_rstream* rstream,
18 void rstream_stub_pending_reply(const cras_rstream* rstream,
Daudio_thread_unittest_obsolete.cc130 void SetupRstream(struct cras_rstream **rstream, int fd) { in SetupRstream()
133 *rstream = (struct cras_rstream *)calloc(1, sizeof(**rstream)); in SetupRstream()
221 struct cras_rstream *rstream_;
222 struct cras_rstream *rstream2_;
558 void SetupRstream(struct cras_rstream **rstream, int fd) { in SetupRstream()
561 *rstream = (struct cras_rstream *)calloc(1, sizeof(**rstream)); in SetupRstream()
656 struct cras_rstream* rstream_;
657 struct cras_rstream* rstream2_;
1195 struct cras_rstream *new_stream, *second_stream; in add_rm_two_streams()
1205 new_stream = (struct cras_rstream *)calloc(1, sizeof(*new_stream)); in add_rm_two_streams()
[all …]
Drclient_unittest.cc22 static struct cras_rstream *cras_rstream_create_stream_out;
47 static struct cras_rstream dummy_rstream;
62 cras_rstream_create_stream_out = (struct cras_rstream *)NULL; in ResetStubData()
141 rstream_ = (struct cras_rstream *)calloc(1, sizeof(*rstream_)); in SetUp()
173 struct cras_rstream *rstream_;
689 cras_rstream* stream) { in audio_thread_rm_stream()
741 struct cras_rstream **stream_out) in cras_rstream_create()
747 unsigned int cras_rstream_get_effects(const struct cras_rstream *stream) in cras_rstream_get_effects()
881 struct cras_rstream **stream) in stream_list_add()
Ddev_io_stubs.cc40 reinterpret_cast<cras_rstream*>(calloc(1, sizeof(cras_rstream))), free); in create_rstream()
55 DevStreamPtr create_dev_stream(unsigned int dev_id, cras_rstream* rstream) { in create_dev_stream()
Ddev_io_stubs.h29 using RstreamPtr = std::unique_ptr<cras_rstream, decltype(free)*>;
64 DevStreamPtr create_dev_stream(unsigned int dev_id, cras_rstream* rstream);
Dtiming_unittest.cc432 struct cras_rstream *stream, in input_data_get_for_stream()
441 struct cras_rstream *stream, in input_data_put_for_stream()
448 const struct cras_rstream *stream, void *dev_ptr) in cras_rstream_post_processing_format()

12