Home
last modified time | relevance | path

Searched refs:cras_ionode (Results 1 – 25 of 32) sorted by relevance

12

/external/adhd/cras/src/server/
Dcras_iodev.h119 struct cras_ionode { struct
138 struct cras_ionode *prev, *next; argument
251 struct cras_ionode *node, int enable);
284 struct cras_ionode *nodes;
285 struct cras_ionode *active_node;
437 struct cras_ionode *node, int enable);
444 void cras_ionode_plug_event(struct cras_ionode *node, int plugged);
447 int cras_ionode_better(struct cras_ionode *a, struct cras_ionode *b);
450 void cras_iodev_set_node_plugged(struct cras_ionode *node, int plugged);
453 void cras_iodev_add_node(struct cras_iodev *iodev, struct cras_ionode *node);
[all …]
Dcras_iodev_list.h213 int cras_iodev_list_node_selected(struct cras_ionode *node);
216 void cras_iodev_list_notify_node_volume(struct cras_ionode *node);
219 void cras_iodev_list_notify_node_capture_gain(struct cras_ionode *node);
222 void cras_iodev_list_notify_node_left_right_swapped(struct cras_ionode *node);
Dcras_bt_io.c29 struct cras_ionode base;
57 static struct cras_ionode *add_profile_dev(struct cras_iodev *bt_iodev, in add_profile_dev()
331 struct cras_ionode *node; in update_active_node()
477 struct cras_ionode *node; in cras_bt_io_create()
579 struct cras_ionode *node; in cras_bt_io_free_resources()
611 struct cras_ionode *cras_bt_io_get_profile(struct cras_iodev *bt_iodev, in cras_bt_io_get_profile()
614 struct cras_ionode *node; in cras_bt_io_get_profile()
626 struct cras_ionode *node; in cras_bt_io_append()
670 struct cras_ionode *node; in cras_bt_io_try_remove()
694 struct cras_ionode *node; in cras_bt_io_remove()
Dcras_alsa_io.c88 struct cras_ionode base;
96 struct cras_ionode base;
171 struct cras_ionode *ionode,
603 static struct cras_ionode *first_plugged_node(struct cras_iodev *iodev) in first_plugged_node()
605 struct cras_ionode *n; in first_plugged_node()
620 struct cras_ionode *n; in update_active_node()
833 struct cras_ionode *node, int enable) in set_alsa_node_swapped()
869 struct cras_ionode *node; in free_alsa_iodev_resources()
913 struct cras_ionode *node; in has_node()
936 static void drop_node_name(struct cras_ionode *node) in drop_node_name()
[all …]
Dcras_iodev_list.c115 static struct cras_ionode *find_node(struct cras_iodev *iodev, in find_node()
118 struct cras_ionode *node; in find_node()
193 static const char *node_type_to_str(struct cras_ionode *node) in node_type_to_str()
252 struct cras_ionode *node; in fill_node_list()
1346 struct cras_ionode *node; in cras_iodev_list_get_sco_pcm_iodev()
1624 struct cras_ionode *node; in set_node_plugged()
1636 struct cras_ionode *node; in set_node_volume()
1658 struct cras_ionode *node; in set_node_capture_gain()
1689 struct cras_ionode *node; in set_node_left_right_swapped()
1741 void cras_iodev_list_notify_node_volume(struct cras_ionode *node) in cras_iodev_list_notify_node_volume()
[all …]
Dcras_hfp_iodev.c271 struct cras_ionode *node; in hfp_free_resources()
291 struct cras_ionode *node; in hfp_iodev_create()
326 node = (struct cras_ionode *)calloc(1, sizeof(*node)); in hfp_iodev_create()
Dcras_bt_io.h22 struct cras_ionode *cras_bt_io_get_profile(struct cras_iodev *bt_iodev,
Dcras_alsa_io.h15 struct cras_ionode;
Dcras_empty_iodev.c176 struct cras_ionode *node; in empty_iodev_create()
203 node = (struct cras_ionode *)calloc(1, sizeof(*node)); in empty_iodev_create()
Dtest_iodev.c170 struct cras_ionode *node; in test_iodev_create()
205 node = (struct cras_ionode *)calloc(1, sizeof(*node)); in test_iodev_create()
Dcras_iodev.c604 struct cras_ionode *node, int enable) in cras_iodev_dsp_set_swap_mode_for_node()
684 void cras_iodev_set_node_plugged(struct cras_ionode *node, int plugged) in cras_iodev_set_node_plugged()
703 void cras_iodev_add_node(struct cras_iodev *iodev, struct cras_ionode *node) in cras_iodev_add_node()
709 void cras_iodev_rm_node(struct cras_iodev *iodev, struct cras_ionode *node) in cras_iodev_rm_node()
716 struct cras_ionode *node) in cras_iodev_set_active_node()
722 bool cras_iodev_is_aec_use_case(const struct cras_ionode *node) in cras_iodev_is_aec_use_case()
735 bool cras_iodev_is_on_internal_card(const struct cras_ionode *node) in cras_iodev_is_on_internal_card()
Dcras_hfp_alsa_iodev.c243 struct cras_ionode *node; in hfp_alsa_iodev_create()
320 struct cras_ionode *node; in hfp_alsa_iodev_destroy()
Dcras_loopback_iodev.c316 struct cras_ionode *node; in loopback_iodev_create()
335 node = (struct cras_ionode *)calloc(1, sizeof(*node)); in loopback_iodev_create()
Dcras_a2dp_iodev.c596 struct cras_ionode *node; in free_resources()
614 struct cras_ionode *node; in a2dp_iodev_create()
664 node = (struct cras_ionode *)calloc(1, sizeof(*node)); in a2dp_iodev_create()
/external/adhd/cras/src/tests/
Dbt_io_unittest.cc142 static struct cras_ionode node_;
143 static struct cras_ionode node2_;
156 struct cras_ionode BtIoBasicSuite::node_;
157 struct cras_ionode BtIoBasicSuite::node2_;
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()
389 struct cras_ionode* node) { in cras_iodev_set_active_node()
394 int cras_iodev_set_node_attr(struct cras_ionode* ionode, in cras_iodev_set_node_attr()
Diodev_stub.cc26 std::unordered_map<const cras_ionode*, int> on_internal_card_map;
46 void iodev_stub_on_internal_card(cras_ionode* node, int data) { in iodev_stub_on_internal_card()
218 bool cras_iodev_is_on_internal_card(const struct cras_ionode* node) { in cras_iodev_is_on_internal_card()
Dempty_iodev_unittest.cc79 void cras_iodev_add_node(struct cras_iodev* iodev, struct cras_ionode* node) { in cras_iodev_add_node()
84 struct cras_ionode* node) { in cras_iodev_set_active_node()
Ddev_io_stubs.h28 using IonodePtr = std::unique_ptr<cras_ionode, decltype(free)*>;
75 cras_ionode* active_node);
Ddev_io_stubs.cc103 reinterpret_cast<cras_ionode*>(calloc(1, sizeof(cras_ionode))), free); in create_ionode()
115 cras_ionode* active_node) { in create_open_iodev()
Dhfp_iodev_unittest.cc230 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()
241 struct cras_ionode* node) { in cras_iodev_set_active_node()
Dbt_device_unittest.cc22 static struct cras_ionode* cras_bt_io_get_profile_ret;
156 bt_iodev1.nodes = reinterpret_cast<struct cras_ionode*>(0x123); in TEST_F()
558 struct cras_ionode* cras_bt_io_get_profile( in cras_bt_io_get_profile()
650 void cras_iodev_set_node_plugged(struct cras_ionode* ionode, int plugged) { in cras_iodev_set_node_plugged()
663 void cras_iodev_list_notify_node_volume(struct cras_ionode* node) {} in cras_iodev_list_notify_node_volume()
Diodev_stub.h17 void iodev_stub_on_internal_card(cras_ionode* node, int data);
Diodev_unittest.cc38 static struct cras_ionode* node_selected;
579 struct cras_ionode ionode; in TEST()
613 struct cras_ionode ionode; in TEST()
687 struct cras_ionode ionode; in TEST()
735 struct cras_ionode ionode; in TEST()
1063 struct cras_ionode ionode, ionode2; in TEST()
1093 struct cras_ionode ionode; in TEST()
1107 struct cras_ionode ionode; in TEST()
1139 struct cras_ionode ionode; in TEST()
1169 struct cras_ionode ionode; in TEST()
[all …]
Dloopback_iodev_unittest.cc238 void cras_iodev_add_node(struct cras_iodev* iodev, struct cras_ionode* node) { in cras_iodev_add_node()
243 struct cras_ionode* node) {} in cras_iodev_set_active_node()
Dhfp_alsa_iodev_unittest.cc464 void cras_iodev_add_node(struct cras_iodev* iodev, struct cras_ionode* node) { in cras_iodev_add_node()
469 void cras_iodev_rm_node(struct cras_iodev* iodev, struct cras_ionode* node) { in cras_iodev_rm_node()
475 struct cras_ionode* node) { in cras_iodev_set_active_node()

12