Home
last modified time | relevance | path

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

12

/external/adhd/cras/src/server/
Dcras_rstream.h67 struct cras_rstream { struct
97 struct cras_rstream *prev, *next; argument
110 struct cras_rstream **stream_out);
113 void cras_rstream_destroy(struct cras_rstream *stream);
117 cras_rstream_id(const struct cras_rstream *stream) in cras_rstream_id()
124 cras_rstream_get_buffer_frames(const struct cras_rstream *stream) in cras_rstream_get_buffer_frames()
131 cras_rstream_get_cb_threshold(const struct cras_rstream *stream) in cras_rstream_get_cb_threshold()
138 cras_rstream_get_max_write_frames(const struct cras_rstream *stream) in cras_rstream_get_max_write_frames()
147 cras_rstream_get_type(const struct cras_rstream *stream) in cras_rstream_get_type()
154 cras_rstream_get_direction(const struct cras_rstream *stream) in cras_rstream_get_direction()
[all …]
Dcras_rstream.c32 static inline int setup_shm_area(struct cras_rstream *stream, in setup_shm_area()
113 struct cras_rstream *const *stream_out) in verify_rstream_parameters()
194 static void set_pending_reply(struct cras_rstream *stream) in set_pending_reply()
202 static void clear_pending_reply(struct cras_rstream *stream) in clear_pending_reply()
217 static int get_audio_request_reply(const struct cras_rstream *stream, in get_audio_request_reply()
239 static int read_and_handle_client_message(struct cras_rstream *stream) in read_and_handle_client_message()
272 struct cras_rstream **stream_out) in cras_rstream_create()
274 struct cras_rstream *stream; in cras_rstream_create()
330 void cras_rstream_destroy(struct cras_rstream *stream) in cras_rstream_destroy()
344 unsigned int cras_rstream_get_effects(const struct cras_rstream *stream) in cras_rstream_get_effects()
[all …]
Dstream_list.h12 struct cras_rstream;
17 typedef int(stream_callback)(struct cras_rstream *rstream);
20 struct cras_rstream **rstream);
21 typedef void(stream_destroy_func)(struct cras_rstream *rstream);
31 struct cras_rstream *stream_list_get(struct stream_list *list);
46 struct cras_rstream **stream);
68 struct cras_rstream *stream);
Dstream_list.c20 struct cras_rstream *streams;
21 struct cras_rstream *streams_to_delete;
32 struct cras_rstream *to_delete; in delete_streams()
81 struct cras_rstream *stream_list_get(struct stream_list *list) in stream_list_get()
88 struct cras_rstream **stream) in stream_list_add()
91 struct cras_rstream *next_stream; in stream_list_add()
115 struct cras_rstream *to_remove; in stream_list_rm()
134 struct cras_rstream *to_remove; in stream_list_rm_all_client_streams()
155 struct cras_rstream *rstream; in stream_list_has_pinned_stream()
166 struct cras_rstream *stream) in detect_rtc_stream_pair()
[all …]
Daudio_thread.h19 struct cras_rstream;
159 struct cras_rstream *stream,
172 struct cras_rstream *stream);
183 struct cras_rstream *stream,
Dinput_data.h59 struct cras_rstream *stream,
74 struct cras_rstream *stream,
93 struct cras_rstream *stream);
Ddev_stream.c63 struct dev_stream *dev_stream_create(struct cras_rstream *stream, in dev_stream_create()
181 struct cras_rstream *rstream = dev_stream->stream; in dev_stream_mix()
282 struct cras_rstream *rstream, in capture_copy_converted_to_stream()
347 struct cras_rstream *rstream = dev_stream->stream; in dev_stream_capture()
420 const struct cras_rstream *rstream = dev_stream->stream; in dev_stream_cb_threshold()
434 struct cras_rstream *rstream = dev_stream->stream; in dev_stream_capture_avail()
472 struct cras_rstream *rstream = dev_stream->stream; in check_next_wake_time()
488 struct cras_rstream *rstream = dev_stream->stream; in dev_stream_update_next_wake_time()
516 struct cras_rstream *rstream = dev_stream->stream; in late_enough_for_capture_callback()
524 struct cras_rstream *rstream = dev_stream->stream; in dev_stream_capture_update_rstream()
[all …]
Dcras_iodev_list.c344 struct cras_rstream *rstream; in remove_all_streams_from_dev()
461 static int init_device(struct cras_iodev *dev, struct cras_rstream *rstream) in init_device()
489 struct cras_rstream *rstream; in suspend_devs()
535 static int stream_added_cb(struct cras_rstream *rstream);
540 struct cras_rstream *rstream; in resume_devs()
646 static int add_stream_to_open_devs(struct cras_rstream *stream, in add_stream_to_open_devs()
666 struct cras_rstream *stream; in init_and_attach_streams()
761 struct cras_rstream *rstream) in init_pinned_device()
793 static struct cras_iodev *find_pinned_device(struct cras_rstream *rstream) in find_pinned_device()
814 static int pinned_stream_added(struct cras_rstream *rstream) in pinned_stream_added()
[all …]
Dcras_server_metrics.h71 int cras_server_metrics_missed_cb_event(struct cras_rstream *stream);
77 int cras_server_metrics_stream_destroy(const struct cras_rstream *stream);
Dinput_data.c145 struct cras_rstream *stream, in input_data_get_for_stream()
181 struct cras_rstream *stream, in input_data_put_for_stream()
197 struct cras_rstream *stream) in input_data_get_software_gain_scaler()
Ddev_io.h106 struct cras_rstream *stream,
111 struct cras_rstream *stream, struct cras_iodev *dev);
Ddev_stream.h39 struct cras_rstream *stream;
65 struct dev_stream *dev_stream_create(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, int ret_value) { in rstream_stub_pending_reply()
52 void cras_rstream_record_fetch_interval(struct cras_rstream* rstream, in cras_rstream_record_fetch_interval()
55 void cras_rstream_dev_attach(struct cras_rstream* rstream, in cras_rstream_dev_attach()
59 void cras_rstream_dev_detach(struct cras_rstream* rstream, in cras_rstream_dev_detach()
62 unsigned int cras_rstream_dev_offset(const struct cras_rstream* rstream, in cras_rstream_dev_offset()
70 void cras_rstream_dev_offset_update(struct cras_rstream* rstream, in cras_rstream_dev_offset_update()
74 unsigned int cras_rstream_playable_frames(struct cras_rstream* rstream, in cras_rstream_playable_frames()
79 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()
32 struct cras_rstream** stream) { in create_rstream_cb()
35 *stream = (struct cras_rstream*)malloc(sizeof(struct cras_rstream)); in create_rstream_cb()
49 static struct cras_rstream* destroyed_stream;
50 static void destroy_rstream_cb(struct cras_rstream* rstream) { in destroy_rstream_cb()
65 struct cras_rstream* s1; in TEST()
89 struct cras_rstream* s1; in TEST()
90 struct cras_rstream* s2; in TEST()
[all …]
Drstream_unittest.cc85 struct cras_rstream* s; in TEST_F()
94 struct cras_rstream* s; in TEST_F()
103 struct cras_rstream* s; in TEST_F()
112 struct cras_rstream* s; in TEST_F()
128 struct cras_rstream* s; in TEST_F()
165 struct cras_rstream* s; in TEST_F()
203 struct cras_rstream* s; in TEST_F()
234 struct cras_rstream* s; in TEST_F()
257 struct cras_rstream* s; in TEST_F()
290 struct cras_rstream* s; in TEST_F()
[all …]
Daudio_thread_unittest.cc24 static const struct cras_rstream*
28 static const struct cras_rstream*
111 void SetupRstream(struct cras_rstream* rstream, in SetupRstream()
132 void TearDownRstream(struct cras_rstream* rstream) { in TearDownRstream()
181 void SetupPinnedStream(struct cras_rstream* rstream, in SetupPinnedStream()
402 struct cras_rstream rstream; in TEST_F()
403 struct cras_rstream rstream2; in TEST_F()
404 struct cras_rstream rstream3; in TEST_F()
449 struct cras_rstream rstream1, rstream2; in TEST_F()
490 struct cras_rstream rstream; in TEST_F()
[all …]
Diodev_list_unittest.cc51 static struct cras_rstream* stream_list_get_ret;
67 static struct cras_rstream* audio_thread_add_stream_stream;
94 static struct cras_rstream* audio_thread_disconnect_stream_stream;
303 struct cras_rstream rstream, rstream2, rstream3; in TEST_F()
304 struct cras_rstream* stream_list = NULL; in TEST_F()
368 struct cras_rstream rstream, rstream2; in TEST_F()
369 struct cras_rstream* stream_list = NULL; in TEST_F()
432 struct cras_rstream rstream, rstream2; in TEST_F()
433 struct cras_rstream* stream_list = NULL; in TEST_F()
498 struct cras_rstream rstream; in TEST_F()
[all …]
Ddev_stream_unittest.cc82 struct cras_rstream* rstream;
247 struct cras_rstream rstream_;
633 dev_stream.stream = reinterpret_cast<cras_rstream*>(0x5446); in TEST_F()
659 dev_stream.stream = reinterpret_cast<cras_rstream*>(0x5446); in TEST_F()
1128 int cras_rstream_audio_ready(struct cras_rstream* stream, size_t count) { in cras_rstream_audio_ready()
1134 int cras_rstream_request_audio(struct cras_rstream* stream, in cras_rstream_request_audio()
1139 void cras_rstream_record_fetch_interval(struct cras_rstream* rstream, in cras_rstream_record_fetch_interval()
1142 void cras_rstream_update_input_write_pointer(struct cras_rstream* rstream) {} in cras_rstream_update_input_write_pointer()
1144 void cras_rstream_update_output_read_pointer(struct cras_rstream* rstream) {} in cras_rstream_update_output_read_pointer()
1146 void cras_rstream_dev_offset_update(struct cras_rstream* rstream, in cras_rstream_dev_offset_update()
[all …]
Drstream_stub.h13 void rstream_stub_dev_offset(const cras_rstream* rstream,
18 void rstream_stub_pending_reply(const cras_rstream* rstream, int ret_value);
Dinput_data_unittest.cc31 struct cras_rstream stream; in TEST()
85 struct cras_rstream stream; in TEST()
139 float cras_rstream_get_volume_scaler(struct cras_rstream* rstream) { in cras_rstream_get_volume_scaler()
Dcapture_rclient_unittest.cc27 static struct cras_rstream mock_rstream;
222 unsigned int cras_rstream_get_effects(const struct cras_rstream* stream) { in cras_rstream_get_effects()
252 struct cras_rstream** stream) { in stream_list_add()
274 struct cras_rstream* stream) { in detect_rtc_stream_pair()
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()
210 struct cras_rstream* rstream_;
211 struct cras_rstream* rstream2_;
547 void SetupRstream(struct cras_rstream** rstream, int fd) { in SetupRstream()
550 *rstream = (struct cras_rstream*)calloc(1, sizeof(**rstream)); in SetupRstream()
639 struct cras_rstream* rstream_;
640 struct cras_rstream* rstream2_;
1174 struct cras_rstream *new_stream, *second_stream; in add_rm_two_streams()
1184 new_stream = (struct cras_rstream*)calloc(1, sizeof(*new_stream)); in add_rm_two_streams()
[all …]
Dplayback_rclient_unittest.cc28 static struct cras_rstream mock_rstream;
252 unsigned int cras_rstream_get_effects(const struct cras_rstream* stream) { in cras_rstream_get_effects()
282 struct cras_rstream** stream) { in stream_list_add()
304 struct cras_rstream* stream) { in detect_rtc_stream_pair()
Dcontrol_rclient_unittest.cc28 static struct cras_rstream* cras_rstream_create_stream_out;
51 static struct cras_rstream mock_rstream;
69 cras_rstream_create_stream_out = (struct cras_rstream*)NULL; in ResetStubData()
145 rstream_ = (struct cras_rstream*)calloc(1, sizeof(*rstream_)); in SetUp()
182 struct cras_rstream* rstream_;
728 int audio_thread_rm_stream(audio_thread* thread, cras_rstream* stream) { in audio_thread_rm_stream()
779 struct cras_rstream** stream_out) { in cras_rstream_create()
784 unsigned int cras_rstream_get_effects(const struct cras_rstream* stream) { in cras_rstream_get_effects()
887 struct cras_rstream** stream) { in stream_list_add()
971 struct cras_rstream* stream) { in detect_rtc_stream_pair()
Ddev_io_stubs.h30 using RstreamPtr = std::unique_ptr<cras_rstream, decltype(free)*>;
63 DevStreamPtr create_dev_stream(unsigned int dev_id, cras_rstream* rstream);

12