Home
last modified time | relevance | path

Searched defs:iodev (Results 1 – 25 of 43) sorted by relevance

12

/external/adhd/cras/src/tests/
Diodev_stub.cc38 void iodev_stub_est_rate_ratio(cras_iodev* iodev, double ratio) { in iodev_stub_est_rate_ratio()
42 void iodev_stub_update_rate(cras_iodev* iodev, int data) { in iodev_stub_update_rate()
50 void iodev_stub_frames_queued(cras_iodev* iodev, int ret, timespec ts) { in iodev_stub_frames_queued()
55 void iodev_stub_valid_frames(cras_iodev* iodev, int ret, timespec ts) { in iodev_stub_valid_frames()
60 bool iodev_stub_get_drop_time(cras_iodev* iodev, timespec* ts) { in iodev_stub_get_drop_time()
71 int cras_iodev_add_stream(struct cras_iodev* iodev, struct dev_stream* stream) { in cras_iodev_add_stream()
76 int cras_iodev_get_valid_frames(struct cras_iodev* iodev, in cras_iodev_get_valid_frames()
87 double cras_iodev_get_est_rate_ratio(const struct cras_iodev* iodev) { in cras_iodev_get_est_rate_ratio()
95 int cras_iodev_get_dsp_delay(const struct cras_iodev* iodev) { in cras_iodev_get_dsp_delay()
99 int cras_iodev_frames_queued(struct cras_iodev* iodev, in cras_iodev_frames_queued()
[all …]
Dhfp_alsa_iodev_unittest.cc156 struct cras_iodev* iodev; in TEST_F() local
178 struct cras_iodev* iodev; in TEST_F() local
202 struct cras_iodev* iodev; in TEST_F() local
215 struct cras_iodev* iodev; in TEST_F() local
242 struct cras_iodev* iodev; in TEST_F() local
269 struct cras_iodev* iodev; in TEST_F() local
284 struct cras_iodev* iodev; in TEST_F() local
297 struct cras_iodev* iodev; in TEST_F() local
310 struct cras_iodev* iodev; in TEST_F() local
323 struct cras_iodev* iodev; in TEST_F() local
[all …]
Daudio_thread_unittest.cc151 virtual void SetupDevice(cras_iodev* iodev, in SetupDevice()
189 static int configure_dev(cras_iodev* iodev) { in configure_dev()
194 static int close_dev(cras_iodev* iodev) { in close_dev()
199 static int frames_queued(const cras_iodev* iodev, struct timespec* tstamp) { in frames_queued()
204 static int delay_frames(const cras_iodev* iodev) { return delay_frames_; } in delay_frames()
206 static int get_buffer(cras_iodev* iodev, in get_buffer()
228 static int put_buffer(cras_iodev* iodev, unsigned int num) { in put_buffer()
233 static int flush_buffer(cras_iodev* iodev) { return 0; } in flush_buffer()
258 struct cras_iodev iodev; in TEST_F() local
274 struct cras_iodev iodev; in TEST_F() local
[all …]
Dempty_iodev_unittest.cc21 struct cras_iodev* iodev; in TEST() local
53 void cras_iodev_free_format(struct cras_iodev* iodev) {} in cras_iodev_free_format()
59 void cras_iodev_init_audio_area(struct cras_iodev* iodev, int num_channels) { in cras_iodev_init_audio_area()
63 void cras_iodev_free_audio_area(struct cras_iodev* iodev) {} in cras_iodev_free_audio_area()
77 void cras_iodev_free_resources(struct cras_iodev* iodev) {} in cras_iodev_free_resources()
79 void cras_iodev_add_node(struct cras_iodev* iodev, struct cras_ionode* node) { in cras_iodev_add_node()
83 void cras_iodev_set_active_node(struct cras_iodev* iodev, in cras_iodev_set_active_node()
Da2dp_iodev_unittest.cc90 int iodev_set_format(struct cras_iodev* iodev, struct cras_audio_format* fmt) { in iodev_set_format()
118 struct cras_iodev* iodev; in TEST_F() local
151 struct cras_iodev* iodev; in TEST_F() local
166 struct cras_iodev* iodev; in TEST_F() local
186 struct cras_iodev* iodev; in TEST_F() local
262 struct cras_iodev* iodev; in TEST_F() local
325 struct cras_iodev* iodev; in TEST_F() local
428 struct cras_iodev* iodev; in TEST_F() local
480 struct cras_iodev* iodev; in TEST_F() local
520 struct cras_iodev* iodev; in TEST_F() local
[all …]
Diodev_unittest.cc121 int update_channel_layout(struct cras_iodev* iodev) { in update_channel_layout()
490 static int get_buffer(cras_iodev* iodev, in get_buffer()
509 static int put_buffer(struct cras_iodev* iodev, unsigned int nframes) { in put_buffer()
555 struct cras_iodev iodev; in TEST() local
578 struct cras_iodev iodev; in TEST() local
612 struct cras_iodev iodev; in TEST() local
642 struct cras_iodev iodev; in TEST() local
686 struct cras_iodev iodev; in TEST() local
734 struct cras_iodev iodev; in TEST() local
764 struct cras_iodev iodev; in TEST() local
[all …]
Dbt_io_unittest.cc91 static int update_supported_formats(struct cras_iodev* iodev) { in update_supported_formats()
110 static int frames_queued(const cras_iodev* iodev, struct timespec* tstamp) { in frames_queued()
114 static int delay_frames(const cras_iodev* iodev) { in delay_frames()
118 static int get_buffer(cras_iodev* iodev, in get_buffer()
124 static int put_buffer(cras_iodev* iodev, unsigned int num) { in put_buffer()
128 static int configure_dev(cras_iodev* iodev) { in configure_dev()
132 static int close_dev(cras_iodev* iodev) { in close_dev()
374 void cras_iodev_add_node(struct cras_iodev* iodev, struct cras_ionode* node) { in cras_iodev_add_node()
379 void cras_iodev_rm_node(struct cras_iodev* iodev, struct cras_ionode* node) { in cras_iodev_rm_node()
384 void cras_iodev_free_format(struct cras_iodev* iodev) { in cras_iodev_free_format()
[all …]
Dloopback_iodev_unittest.cc91 struct cras_iodev iodev; in TEST_F() local
193 struct cras_iodev iodev; in TEST_F() local
230 void cras_iodev_free_audio_area(struct cras_iodev* iodev) {} in cras_iodev_free_audio_area()
232 void cras_iodev_free_format(struct cras_iodev* iodev) {} in cras_iodev_free_format()
234 void cras_iodev_init_audio_area(struct cras_iodev* iodev, int num_channels) { in cras_iodev_init_audio_area()
238 void cras_iodev_add_node(struct cras_iodev* iodev, struct cras_ionode* node) { in cras_iodev_add_node()
242 void cras_iodev_set_active_node(struct cras_iodev* iodev, in cras_iodev_set_active_node()
Dhfp_iodev_unittest.cc16 static struct cras_iodev* iodev; variable
226 void cras_iodev_free_format(struct cras_iodev* iodev) { in cras_iodev_free_format()
230 void cras_iodev_add_node(struct cras_iodev* iodev, struct cras_ionode* node) { in cras_iodev_add_node()
235 void cras_iodev_rm_node(struct cras_iodev* iodev, struct cras_ionode* node) { in cras_iodev_rm_node()
240 void cras_iodev_set_active_node(struct cras_iodev* iodev, in cras_iodev_set_active_node()
269 struct cras_iodev* iodev, in cras_bt_device_append_iodev()
275 struct cras_iodev* iodev) { in cras_bt_device_rm_iodev()
360 void cras_iodev_init_audio_area(struct cras_iodev* iodev, int num_channels) { in cras_iodev_init_audio_area()
364 void cras_iodev_free_audio_area(struct cras_iodev* iodev) {} in cras_iodev_free_audio_area()
366 void cras_iodev_free_resources(struct cras_iodev* iodev) { in cras_iodev_free_resources()
Daudio_thread_unittest_obsolete.cc154 static int frames_queued(const cras_iodev* iodev) { return frames_queued_; } in frames_queued()
156 static int delay_frames(const cras_iodev* iodev) { return delay_frames_; } in delay_frames()
158 static int get_buffer(cras_iodev* iodev, in get_buffer()
180 static int put_buffer(cras_iodev* iodev, unsigned int num) { in put_buffer()
185 static int is_open(const cras_iodev* iodev) { return is_open_; } in is_open()
187 static int open_dev(cras_iodev* iodev) { return 0; } in open_dev()
189 static int close_dev(cras_iodev* iodev) { in close_dev()
194 static int dev_running(const cras_iodev* iodev) { in dev_running()
571 static int frames_queued(const cras_iodev* iodev) { in frames_queued()
575 static int delay_frames(const cras_iodev* iodev) { return delay_frames_; } in delay_frames()
[all …]
Dalsa_io_unittest.cc374 struct cras_iodev* iodev; in TEST() local
412 struct cras_iodev* iodev; in TEST() local
445 struct cras_iodev* iodev; in TEST() local
475 struct cras_iodev* iodev; in TEST() local
575 struct cras_iodev* iodev; in TEST() local
608 struct cras_iodev* iodev; in TEST() local
651 struct cras_iodev* iodev; in TEST() local
689 struct cras_iodev* iodev; in TEST() local
719 struct cras_iodev* iodev; in TEST() local
735 struct cras_iodev* iodev; in TEST() local
[all …]
Ddev_io_stubs.cc97 int delay_frames_stub(const struct cras_iodev* iodev) { in delay_frames_stub()
108 int fake_flush_buffer(struct cras_iodev* iodev) { in fake_flush_buffer()
116 IodevPtr iodev(reinterpret_cast<cras_iodev*>(calloc(1, sizeof(cras_iodev))), in create_open_iodev() local
Diodev_list_unittest.cc249 static void set_volume_1(struct cras_iodev* iodev) { set_volume_1_called_++; } in set_volume_1()
251 static void set_capture_gain_1(struct cras_iodev* iodev) { in set_capture_gain_1()
255 static void set_capture_mute_1(struct cras_iodev* iodev) { in set_capture_mute_1()
259 static void update_active_node(struct cras_iodev* iodev, in update_active_node()
268 static int set_swap_mode_for_node(struct cras_iodev* iodev, in set_swap_mode_for_node()
1289 struct cras_iodev iodev; in TEST_F() local
1300 struct cras_iodev iodev; in TEST_F() local
2125 struct cras_iodev* iodev) { in audio_thread_disconnect_stream()
2155 void empty_iodev_destroy(struct cras_iodev* iodev) { in empty_iodev_destroy()
2167 void test_iodev_command(struct cras_iodev* iodev, in test_iodev_command()
[all …]
/external/adhd/cras/src/server/
Dcras_iodev.c108 static int cras_iodev_start(struct cras_iodev *iodev) in cras_iodev_start()
303 static size_t get_best_rate(struct cras_iodev *iodev, size_t rrate) in get_best_rate()
330 static size_t get_best_channel_count(struct cras_iodev *iodev, size_t count) in get_best_channel_count()
356 static snd_pcm_format_t get_best_pcm_format(struct cras_iodev *iodev, in get_best_pcm_format()
370 static int apply_dsp(struct cras_iodev *iodev, uint8_t *buf, size_t frames) in apply_dsp()
391 static void cras_iodev_free_dsp(struct cras_iodev *iodev) in cras_iodev_free_dsp()
401 static inline void adjust_dev_channel_for_dsp(const struct cras_iodev *iodev) in adjust_dev_channel_for_dsp()
420 static void update_channel_layout(struct cras_iodev *iodev) in update_channel_layout()
445 int cras_iodev_set_format(struct cras_iodev *iodev, in cras_iodev_set_format()
520 static void add_ext_dsp_module_to_pipeline(struct cras_iodev *iodev) in add_ext_dsp_module_to_pipeline()
[all …]
Dcras_hfp_alsa_iodev.c35 static int hfp_alsa_get_valid_frames(struct cras_iodev *iodev, in hfp_alsa_get_valid_frames()
44 static int hfp_alsa_open_dev(struct cras_iodev *iodev) in hfp_alsa_open_dev()
52 static int hfp_alsa_update_supported_formats(struct cras_iodev *iodev) in hfp_alsa_update_supported_formats()
81 static int hfp_alsa_configure_dev(struct cras_iodev *iodev) in hfp_alsa_configure_dev()
116 static int hfp_alsa_close_dev(struct cras_iodev *iodev) in hfp_alsa_close_dev()
127 static int hfp_alsa_frames_queued(const struct cras_iodev *iodev, in hfp_alsa_frames_queued()
136 static int hfp_alsa_delay_frames(const struct cras_iodev *iodev) in hfp_alsa_delay_frames()
144 static int hfp_alsa_get_buffer(struct cras_iodev *iodev, in hfp_alsa_get_buffer()
153 static int hfp_alsa_put_buffer(struct cras_iodev *iodev, unsigned nwritten) in hfp_alsa_put_buffer()
161 static int hfp_alsa_flush_buffer(struct cras_iodev *iodev) in hfp_alsa_flush_buffer()
[all …]
Dcras_hfp_iodev.c42 static int update_supported_formats(struct cras_iodev *iodev) in update_supported_formats()
70 static int no_stream(struct cras_iodev *iodev, int enable) in no_stream()
111 static int frames_queued(const struct cras_iodev *iodev, in frames_queued()
125 static int output_underrun(struct cras_iodev *iodev) in output_underrun()
131 static int configure_dev(struct cras_iodev *iodev) in configure_dev()
179 static int close_dev(struct cras_iodev *iodev) in close_dev()
194 static void set_hfp_volume(struct cras_iodev *iodev) in set_hfp_volume()
207 static int delay_frames(const struct cras_iodev *iodev) in delay_frames()
214 static int get_buffer(struct cras_iodev *iodev, struct cras_audio_area **area, in get_buffer()
235 static int put_buffer(struct cras_iodev *iodev, unsigned nwritten) in put_buffer()
[all …]
Dcras_empty_iodev.c43 static unsigned int current_level(const struct cras_iodev *iodev) in current_level()
69 static int frames_queued(const struct cras_iodev *iodev, in frames_queued()
76 static int delay_frames(const struct cras_iodev *iodev) in delay_frames()
81 static int close_dev(struct cras_iodev *iodev) in close_dev()
91 static int configure_dev(struct cras_iodev *iodev) in configure_dev()
108 static int get_buffer(struct cras_iodev *iodev, struct cras_audio_area **area, in get_buffer()
133 static int put_buffer(struct cras_iodev *iodev, unsigned frames) in put_buffer()
149 static int flush_buffer(struct cras_iodev *iodev) in flush_buffer()
162 static void update_active_node(struct cras_iodev *iodev, unsigned node_idx, in update_active_node()
175 struct cras_iodev *iodev; in empty_iodev_create() local
[all …]
Dcras_a2dp_iodev.c70 static int update_supported_formats(struct cras_iodev *iodev) in update_supported_formats()
109 static unsigned int bt_local_queued_frames(const struct cras_iodev *iodev) in bt_local_queued_frames()
117 static int frames_queued(const struct cras_iodev *iodev, in frames_queued()
130 static int fill_zeros_to_target_level(struct cras_iodev *iodev, in fill_zeros_to_target_level()
148 static int output_underrun(struct cras_iodev *iodev) in output_underrun()
254 struct cras_iodev *iodev = (struct cras_iodev *)arg; in a2dp_socket_write_cb() local
258 static int configure_dev(struct cras_iodev *iodev) in configure_dev()
330 static int start(const struct cras_iodev *iodev) in start()
344 static int close_dev(struct cras_iodev *iodev) in close_dev()
372 static unsigned int frames_to_play_in_sleep(struct cras_iodev *iodev, in frames_to_play_in_sleep()
[all …]
Dtest_iodev.c41 static int frames_queued(const struct cras_iodev *iodev, in frames_queued()
54 static int delay_frames(const struct cras_iodev *iodev) in delay_frames()
59 static int close_dev(struct cras_iodev *iodev) in close_dev()
69 static int configure_dev(struct cras_iodev *iodev) in configure_dev()
84 static int get_buffer(struct cras_iodev *iodev, struct cras_audio_area **area, in get_buffer()
100 static int put_buffer(struct cras_iodev *iodev, unsigned frames) in put_buffer()
111 static int get_buffer_fd_read(struct cras_iodev *iodev, in get_buffer_fd_read()
143 static void update_active_node(struct cras_iodev *iodev, unsigned node_idx, in update_active_node()
169 struct cras_iodev *iodev; in test_iodev_create() local
227 void test_iodev_destroy(struct cras_iodev *iodev) in test_iodev_destroy()
[all …]
Dcras_bt_io.c49 static struct cras_iodev *active_profile_dev(const struct cras_iodev *iodev) in active_profile_dev()
135 static int open_dev(struct cras_iodev *iodev) in open_dev()
165 static int update_supported_formats(struct cras_iodev *iodev) in update_supported_formats()
209 static int configure_dev(struct cras_iodev *iodev) in configure_dev()
239 static int close_dev(struct cras_iodev *iodev) in close_dev()
265 static void set_bt_volume(struct cras_iodev *iodev) in set_bt_volume()
282 static int frames_queued(const struct cras_iodev *iodev, in frames_queued()
291 static int delay_frames(const struct cras_iodev *iodev) in delay_frames()
299 static int get_buffer(struct cras_iodev *iodev, struct cras_audio_area **area, in get_buffer()
308 static int put_buffer(struct cras_iodev *iodev, unsigned nwritten) in put_buffer()
[all …]
Dcras_loopback_iodev.c110 static void device_enabled_hook(struct cras_iodev *iodev, void *cb_data) in device_enabled_hook()
120 static void device_disabled_hook(struct cras_iodev *iodev, void *cb_data) in device_disabled_hook()
138 static int frames_queued(const struct cras_iodev *iodev, in frames_queued()
166 static int delay_frames(const struct cras_iodev *iodev) in delay_frames()
173 static int close_record_dev(struct cras_iodev *iodev) in close_record_dev()
191 static int configure_record_dev(struct cras_iodev *iodev) in configure_record_dev()
214 static int get_record_buffer(struct cras_iodev *iodev, in get_record_buffer()
233 static int put_record_buffer(struct cras_iodev *iodev, unsigned nframes) in put_record_buffer()
245 static int flush_record_buffer(struct cras_iodev *iodev) in flush_record_buffer()
255 static void update_active_node(struct cras_iodev *iodev, unsigned node_idx, in update_active_node()
[all …]
Dcras_alsa_io.c288 static int set_hwparams(struct cras_iodev *iodev) in set_hwparams()
317 static int frames_queued(const struct cras_iodev *iodev, in frames_queued()
340 static int delay_frames(const struct cras_iodev *iodev) in delay_frames()
354 static int close_dev(struct cras_iodev *iodev) in close_dev()
388 static int open_dev(struct cras_iodev *iodev) in open_dev()
432 static int configure_dev(struct cras_iodev *iodev) in configure_dev()
528 static int start(const struct cras_iodev *iodev) in start()
555 static int get_buffer(struct cras_iodev *iodev, struct cras_audio_area **area, in get_buffer()
579 static int put_buffer(struct cras_iodev *iodev, unsigned nwritten) in put_buffer()
586 static int flush_buffer(struct cras_iodev *iodev) in flush_buffer()
[all …]
Dcras_iodev.h483 cras_iodev_adjust_active_node_volume(struct cras_iodev *iodev, in cras_iodev_adjust_active_node_volume()
494 cras_iodev_software_volume_needed(const struct cras_iodev *iodev) in cras_iodev_software_volume_needed()
509 cras_iodev_get_ui_gain_scaler(const struct cras_iodev *iodev) in cras_iodev_get_ui_gain_scaler()
627 static inline int cras_iodev_delay_frames(const struct cras_iodev *iodev) in cras_iodev_delay_frames()
633 static inline int cras_iodev_input_streaming(const struct cras_iodev *iodev) in cras_iodev_input_streaming()
639 static inline int cras_iodev_is_open(const struct cras_iodev *iodev) in cras_iodev_is_open()
647 static inline void cras_iodev_exit_idle(struct cras_iodev *iodev) in cras_iodev_exit_idle()
Dcras_iodev_list.c115 static struct cras_ionode *find_node(struct cras_iodev *iodev, in find_node()
1621 static int set_node_plugged(struct cras_iodev *iodev, unsigned int node_idx, in set_node_plugged()
1633 static int set_node_volume(struct cras_iodev *iodev, unsigned int node_idx, in set_node_volume()
1655 static int set_node_capture_gain(struct cras_iodev *iodev, in set_node_capture_gain()
1685 static int set_node_left_right_swapped(struct cras_iodev *iodev, in set_node_left_right_swapped()
1712 struct cras_iodev *iodev; in cras_iodev_list_set_node_attr() local
1825 struct cras_iodev *iodev = find_dev(output_dev_idx); in cras_iodev_list_register_loopback() local
1864 struct cras_iodev *iodev = find_dev(output_dev_idx); in cras_iodev_list_unregister_loopback() local
Dcras_alsa_card.c33 struct cras_iodev *iodev; member
262 struct cras_iodev *iodev = create_iodev_for_device( in add_controls_and_iodevs_by_matching() local
277 struct cras_iodev *iodev = create_iodev_for_device( in add_controls_and_iodevs_by_matching() local

12