/external/adhd/cras/src/server/ |
D | cras_iodev.h | 285 struct cras_ionode *active_node; member 486 if (!iodev->active_node) in cras_iodev_adjust_active_node_volume() 489 return cras_iodev_adjust_node_volume(iodev->active_node, system_volume); in cras_iodev_adjust_active_node_volume() 499 if (!iodev->active_node) in cras_iodev_software_volume_needed() 502 if (iodev->active_node->intrinsic_sensitivity) in cras_iodev_software_volume_needed() 505 return iodev->active_node->software_volume_needed; in cras_iodev_software_volume_needed() 511 if (!iodev->active_node) in cras_iodev_get_ui_gain_scaler() 513 return iodev->active_node->ui_gain_scaler; in cras_iodev_get_ui_gain_scaler()
|
D | cras_bt_io.c | 51 struct bt_node *active = (struct bt_node *)iodev->active_node; in active_profile_dev() 271 if (dev->active_node) in set_bt_volume() 272 dev->active_node->volume = iodev->active_node->volume; in set_bt_volume() 332 struct bt_node *active = (struct bt_node *)iodev->active_node; in update_active_node() 528 active->base.type = dev->active_node->type; in cras_bt_io_create() 649 struct bt_node *btnode = (struct bt_node *)bt_iodev->active_node; in cras_bt_io_on_profile() 656 struct bt_node *btnode = (struct bt_node *)bt_iodev->active_node; in cras_bt_io_profile_to_log() 674 active = (struct bt_node *)bt_iodev->active_node; in cras_bt_io_try_remove() 704 if (node == bt_iodev->active_node) { in cras_bt_io_remove() 716 btnode = (struct bt_node *)bt_iodev->active_node; in cras_bt_io_remove()
|
D | cras_iodev_list.c | 263 dev->is_enabled && (dev->active_node == node); in fill_node_list() 634 fallback_devs[dir]->active_node->type = in possibly_enable_fallback() 656 iodevs[i]->active_node)); in add_stream_to_open_devs() 772 dev->update_active_node(dev, dev->active_node->idx, 1); in init_pinned_device() 789 dev->update_active_node(dev, dev->active_node->idx, 0); in close_pinned_device() 805 if (dev && dev->active_node->type != CRAS_NODE_TYPE_HOTWORD) { in find_pinned_device() 1049 dev->update_active_node(dev, dev->active_node->idx, 0); in disable_device() 1136 dev->update_active_node(dev, dev->active_node->idx, 1); in cras_iodev_list_enable_dev() 1156 if (node_index_of(node_id) == new_dev->active_node->idx) in cras_iodev_list_add_active_node() 1216 dev->update_active_node(dev, dev->active_node->idx, 0); in cras_iodev_list_suspend_dev() [all …]
|
D | cras_iodev.c | 223 if (odev->active_node) { in cras_iodev_is_zero_volume() 225 odev->active_node, system_volume); in cras_iodev_is_zero_volume() 594 if (iodev->active_node && iodev->active_node->left_right_swapped) in cras_iodev_update_dsp() 616 if (iodev->active_node == node) in cras_iodev_dsp_set_swap_mode_for_node() 693 } else if (node == node->dev->active_node) { in cras_iodev_set_node_plugged() 718 iodev->active_node = node; in cras_iodev_set_active_node() 753 if (iodev->active_node && iodev->active_node->softvol_scalers) in cras_iodev_get_software_volume_scaler() 754 return iodev->active_node->softvol_scalers[volume]; in cras_iodev_get_software_volume_scaler() 762 iodev->active_node->capture_gain); in cras_iodev_get_software_gain_scaler() 1022 if (iodev->active_node) { in cras_iodev_close() [all …]
|
D | cras_alsa_io.c | 299 period_wakeup = (iodev->active_node->type == CRAS_NODE_TYPE_HOTWORD); in set_hwparams() 398 (struct alsa_output_node *)aio->base.active_node; in open_dev() 402 (struct alsa_input_node *)aio->base.active_node; in open_dev() 419 iodev->active_node->name)) { in open_dev() 423 aio->ucm, iodev->active_node->name, in open_dev() 471 if (iodev->active_node->type == CRAS_NODE_TYPE_HOTWORD) { in configure_dev() 643 (struct alsa_input_node *)iodev->active_node; in update_channel_layout() 684 return (struct alsa_output_node *)aio->base.active_node; in get_active_output() 689 return (struct alsa_input_node *)aio->base.active_node; in get_active_input() 821 gain = MAX(iodev->active_node->capture_gain, min_capture_gain); in set_alsa_capture_gain() [all …]
|
D | dev_io.c | 82 cras_iodev_is_on_internal_card(dev->active_node)) { in update_estimated_rate() 86 odev->dev->active_node)) in update_estimated_rate() 406 if (!iodev->active_node || in input_devices_can_drop_samples() 407 iodev->active_node->type == CRAS_NODE_TYPE_HOTWORD || in input_devices_can_drop_samples() 408 iodev->active_node->type == CRAS_NODE_TYPE_POST_MIX_PRE_DSP || in input_devices_can_drop_samples() 409 iodev->active_node->type == CRAS_NODE_TYPE_POST_DSP) in input_devices_can_drop_samples() 490 if (adev->dev->active_node && in set_input_dev_wake_ts() 491 adev->dev->active_node->type != CRAS_NODE_TYPE_HOTWORD && in set_input_dev_wake_ts() 1196 if (!adev->dev->active_node) in input_adev_ignore_wake() 1199 if (adev->dev->active_node->type == CRAS_NODE_TYPE_HOTWORD && in input_adev_ignore_wake()
|
D | cras_hfp_alsa_iodev.c | 192 if (iodev->active_node) in hfp_alsa_set_volume() 193 volume = cras_iodev_adjust_node_volume(iodev->active_node, in hfp_alsa_set_volume() 324 node = iodev->active_node; in hfp_alsa_iodev_destroy()
|
D | cras_hfp_iodev.c | 200 if (iodev->active_node) in set_hfp_volume() 201 volume = cras_iodev_adjust_node_volume(iodev->active_node, in set_hfp_volume() 272 node = hfpio->base.active_node; in hfp_free_resources()
|
D | cras_observer.c | 25 struct cras_alert *active_node; member 367 CRAS_OBSERVER_SET_ALERT(active_node, nodes_prepare, in cras_observer_server_init() 401 cras_alert_destroy(g_observer->alerts.active_node); in cras_observer_server_free() 528 cras_alert_pending_data(g_observer->alerts.active_node, &data, in cras_observer_notify_active_node()
|
D | cras_empty_iodev.c | 48 if (iodev->active_node->type == CRAS_NODE_TYPE_HOTWORD) in current_level() 251 free(iodev->active_node); in empty_iodev_destroy()
|
D | cras_server_metrics.c | 352 if (iodev->active_node->type == in get_metrics_device_type() 362 switch (iodev->active_node->type) { in get_metrics_device_type() 374 switch (iodev->active_node->position) { in get_metrics_device_type() 642 (unsigned)100 * iodev->active_node->ui_gain_scaler; in cras_server_metrics_device_gain() 666 data.device_data.value = iodev->active_node->volume; in cras_server_metrics_device_volume()
|
D | cras_bt_device.c | 422 cras_iodev_set_node_plugged(iodev->active_node, plugged); in bt_device_set_nodes_plugged() 426 cras_iodev_set_node_plugged(iodev->active_node, plugged); in bt_device_set_nodes_plugged() 1386 iodev->active_node->volume = volume; in cras_bt_device_update_hardware_volume() 1387 cras_iodev_list_notify_node_volume(iodev->active_node); in cras_bt_device_update_hardware_volume()
|
D | cras_a2dp_iodev.c | 583 volume = iodev->active_node->volume * 127 / 100; in set_volume() 598 node = a2dpio->base.active_node; in free_resources()
|
D | test_iodev.c | 232 free(iodev->active_node); in test_iodev_destroy()
|
/external/adhd/cras/src/tests/ |
D | alsa_io_unittest.cc | 301 ASSERT_STREQ(DEFAULT, aio->base.active_node->name); in TEST() 302 ASSERT_EQ(1, aio->base.active_node->plugged); in TEST() 312 ASSERT_STREQ(INTERNAL_SPEAKER, aio->base.active_node->name); in TEST() 313 ASSERT_EQ(1, aio->base.active_node->plugged); in TEST() 324 ASSERT_STREQ(DEFAULT, aio->base.active_node->name); in TEST() 325 ASSERT_EQ(1, aio->base.active_node->plugged); in TEST() 335 ASSERT_STREQ(INTERNAL_MICROPHONE, aio->base.active_node->name); in TEST() 336 ASSERT_EQ(1, aio->base.active_node->plugged); in TEST() 352 ASSERT_STREQ(DEFAULT, aio->base.active_node->name); in TEST() 353 ASSERT_EQ(1, aio->base.active_node->plugged); in TEST() [all …]
|
D | server_metrics_unittest.cc | 38 struct cras_ionode active_node; in TEST() local 46 iodev.active_node = &active_node; in TEST() 47 active_node.type = CRAS_NODE_TYPE_USB; in TEST() 67 iodev.active_node = &active_node; in TEST() 68 active_node.type = CRAS_NODE_TYPE_HEADPHONE; in TEST()
|
D | dev_io_unittest.cc | 93 dev->dev->active_node->ui_gain_scaler = 1.0f; in TEST_F() 102 dev->dev->active_node->ui_gain_scaler = 0.6f; in TEST_F() 127 iodev_stub_on_internal_card(out_dev->dev->active_node, 1); in TEST_F() 128 iodev_stub_on_internal_card(in_dev->dev->active_node, 1); in TEST_F() 156 iodev_stub_on_internal_card(out_dev->dev->active_node, 1); in TEST_F() 157 iodev_stub_on_internal_card(in_dev->dev->active_node, 0); in TEST_F()
|
D | iodev_unittest.cc | 586 iodev.active_node = &ionode; in TEST() 587 iodev.active_node->dev = &iodev; in TEST() 591 iodev.active_node->volume = 0; in TEST() 596 iodev.active_node->volume = 50; in TEST() 601 iodev.active_node->volume = 50; in TEST() 606 iodev.active_node->volume = 50; in TEST() 622 iodev.active_node = &ionode; in TEST() 623 iodev.active_node->dev = &iodev; in TEST() 624 iodev.active_node->volume = 0; in TEST() 696 iodev.active_node = &ionode; in TEST() [all …]
|
D | dev_io_stubs.cc | 115 cras_ionode* active_node) { in create_open_iodev() argument 123 iodev->active_node = active_node; in create_open_iodev()
|
D | bt_io_unittest.cc | 62 iodev_.active_node = &node_; in SetUp() 63 iodev2_.active_node = &node2_; in SetUp() 360 ASSERT_STREQ("BLUETOOTH", bt_iodev->active_node->name); in TEST_F() 391 iodev->active_node = node; in cras_iodev_set_active_node()
|
D | iodev_list_unittest.cc | 157 d1_.active_node = &node1; in SetUp() 170 d2_.active_node = &node2; in SetUp() 183 d3_.active_node = &node3; in SetUp() 197 loopback_input.active_node = &node3; in SetUp() 539 snprintf(d2_.active_node->name, CRAS_NODE_NAME_BUFFER_SIZE, "echo ref"); in TEST_F() 937 d2_.active_node->idx = 2; in TEST_F() 2147 if (dev->active_node == NULL) { in empty_iodev_create() 2150 dev->active_node = node; in empty_iodev_create() 2156 if (iodev->active_node) { in empty_iodev_destroy() 2157 free(iodev->active_node); in empty_iodev_destroy() [all …]
|
D | empty_iodev_unittest.cc | 85 iodev->active_node = node; in cras_iodev_set_active_node()
|
D | dev_io_stubs.h | 75 cras_ionode* active_node);
|
D | apm_list_unittest.cc | 147 fake_iodev.active_node = &fake_node; in TEST() 194 fake_iodev.active_node = &fake_node; in TEST()
|
D | observer_unittest.cc | 231 cras_alert_add_callback_map[g_observer->alerts.active_node]); in SetUp() 233 cras_alert_create_flags_map[g_observer->alerts.active_node]); in SetUp() 450 EXPECT_EQ(cras_alert_pending_alert_value, g_observer->alerts.active_node); in TEST_F()
|