Searched refs:bt_iodev (Results 1 – 6 of 6) sorted by relevance
/external/adhd/cras/src/tests/ |
D | bt_io_unittest.cc | 139 static struct cras_iodev* bt_iodev; member in __anon0f6cc2290111::BtIoBasicSuite 153 struct cras_iodev* BtIoBasicSuite::bt_iodev; member in __anon0f6cc2290111::BtIoBasicSuite 171 bt_iodev = cras_bt_io_create(fake_device, &iodev_, in TEST_F() 173 EXPECT_NE((void*)NULL, bt_iodev); in TEST_F() 174 EXPECT_EQ(&iodev_, active_profile_dev(bt_iodev)); in TEST_F() 176 bt_iodev->open_dev(bt_iodev); in TEST_F() 177 bt_iodev->format = &fake_fmt; in TEST_F() 178 bt_iodev->update_supported_formats(bt_iodev); in TEST_F() 181 bt_iodev->state = CRAS_IODEV_STATE_OPEN; in TEST_F() 182 bt_iodev->configure_dev(bt_iodev); in TEST_F() [all …]
|
D | bt_device_unittest.cc | 555 void cras_bt_io_destroy(struct cras_iodev* bt_iodev) { in cras_bt_io_destroy() argument 559 struct cras_iodev* bt_iodev, in cras_bt_io_get_profile() argument 563 int cras_bt_io_append(struct cras_iodev* bt_iodev, in cras_bt_io_append() argument 568 cras_bt_io_append_btio_val = bt_iodev; in cras_bt_io_append() 571 int cras_bt_io_on_profile(struct cras_iodev* bt_iodev, in cras_bt_io_on_profile() argument 575 unsigned int cras_bt_io_try_remove(struct cras_iodev* bt_iodev, in cras_bt_io_try_remove() argument 579 int cras_bt_io_remove(struct cras_iodev* bt_iodev, struct cras_iodev* dev) { in cras_bt_io_remove() argument
|
/external/adhd/cras/src/server/ |
D | cras_bt_io.c | 57 static struct cras_ionode *add_profile_dev(struct cras_iodev *bt_iodev, in add_profile_dev() argument 62 struct bt_io *btio = (struct bt_io *)bt_iodev; in add_profile_dev() 68 n->base.dev = bt_iodev; in add_profile_dev() 80 cras_iodev_add_node(bt_iodev, &n->base); in add_profile_dev() 577 void cras_bt_io_free_resources(struct cras_iodev *bt_iodev) in cras_bt_io_free_resources() argument 582 free(bt_iodev->supported_rates); in cras_bt_io_free_resources() 583 free(bt_iodev->supported_channel_counts); in cras_bt_io_free_resources() 584 free(bt_iodev->supported_formats); in cras_bt_io_free_resources() 586 DL_FOREACH (bt_iodev->nodes, node) { in cras_bt_io_free_resources() 588 cras_iodev_rm_node(bt_iodev, node); in cras_bt_io_free_resources() [all …]
|
D | cras_bt_io.h | 19 void cras_bt_io_destroy(struct cras_iodev *bt_iodev); 22 struct cras_ionode *cras_bt_io_get_profile(struct cras_iodev *bt_iodev, 26 int cras_bt_io_append(struct cras_iodev *bt_iodev, struct cras_iodev *dev, 30 int cras_bt_io_on_profile(struct cras_iodev *bt_iodev, 37 cras_bt_io_profile_to_log(struct cras_iodev *bt_iodev); 45 unsigned int cras_bt_io_try_remove(struct cras_iodev *bt_iodev, 52 int cras_bt_io_remove(struct cras_iodev *bt_iodev, struct cras_iodev *dev);
|
D | cras_bt_device.c | 398 struct cras_iodev *bt_iodev; in cras_bt_device_append_iodev() local 400 bt_iodev = device->bt_iodevs[iodev->direction]; in cras_bt_device_append_iodev() 402 if (bt_iodev) { in cras_bt_device_append_iodev() 403 cras_bt_io_append(bt_iodev, iodev, profile); in cras_bt_device_append_iodev() 430 struct cras_iodev *bt_iodev, 436 struct cras_iodev *bt_iodev; in cras_bt_device_rm_iodev() local 441 bt_iodev = device->bt_iodevs[iodev->direction]; in cras_bt_device_rm_iodev() 442 if (bt_iodev) { in cras_bt_device_rm_iodev() 446 try_profile = cras_bt_io_try_remove(bt_iodev, iodev); in cras_bt_device_rm_iodev() 454 if (!cras_bt_io_on_profile(bt_iodev, try_profile)) { in cras_bt_device_rm_iodev() [all …]
|
D | cras_bt_device.h | 155 struct cras_iodev *bt_iodev); 165 struct cras_iodev *bt_iodev);
|