Home
last modified time | relevance | path

Searched refs:supported_channel_counts (Results 1 – 12 of 12) sorted by relevance

/external/adhd/cras/src/tests/
Dbt_io_unittest.cc86 d->supported_channel_counts = NULL; in SetUpIodev()
93 free(iodev->supported_channel_counts); in update_supported_formats()
99 iodev->supported_channel_counts = (size_t *)calloc( in update_supported_formats()
100 2, sizeof(*iodev->supported_channel_counts)); in update_supported_formats()
101 iodev->supported_channel_counts[0] = 2; in update_supported_formats()
102 iodev->supported_channel_counts[1] = 0; in update_supported_formats()
197 free(iodev_.supported_channel_counts); in TEST_F()
Diodev_unittest.cc265 iodev_.supported_channel_counts = channel_counts_; in SetUp()
423 iodev_.supported_channel_counts[0] = 1; in TEST_F()
424 iodev_.supported_channel_counts[1] = 0; in TEST_F()
445 iodev_.supported_channel_counts[0] = 10; in TEST_F()
446 iodev_.supported_channel_counts[1] = 0; in TEST_F()
466 iodev_.supported_channel_counts[0] = 6; in TEST_F()
467 iodev_.supported_channel_counts[1] = 2; in TEST_F()
489 iodev_.supported_channel_counts[0] = 6; in TEST_F()
490 iodev_.supported_channel_counts[1] = 2; in TEST_F()
517 iodev_.supported_channel_counts[0] = 6; in TEST_F()
[all …]
Diodev_list_unittest.cc148 d1_.supported_channel_counts = channel_counts_; in SetUp()
161 d2_.supported_channel_counts = channel_counts_; in SetUp()
174 d3_.supported_channel_counts = channel_counts_; in SetUp()
188 loopback_input.supported_channel_counts = channel_counts_; in SetUp()
/external/adhd/cras/src/server/
Dcras_hfp_iodev.c38 free(iodev->supported_channel_counts); in update_supported_formats()
39 iodev->supported_channel_counts = (size_t *)malloc(2 * sizeof(size_t)); in update_supported_formats()
40 iodev->supported_channel_counts[0] = 1; in update_supported_formats()
41 iodev->supported_channel_counts[1] = 0; in update_supported_formats()
207 free(hfpio->base.supported_channel_counts); in hfp_free_resources()
Dcras_bt_io.c166 for (length = 0; dev->supported_channel_counts[length]; length++); in update_supported_formats()
167 iodev->supported_channel_counts = (size_t *)malloc( in update_supported_formats()
168 (length + 1) * sizeof(*iodev->supported_channel_counts)); in update_supported_formats()
170 iodev->supported_channel_counts[i] = in update_supported_formats()
171 dev->supported_channel_counts[i]; in update_supported_formats()
419 free(bt_iodev->supported_channel_counts); in cras_bt_io_free_resources()
Dcras_a2dp_iodev.c88 free(iodev->supported_channel_counts); in update_supported_formats()
89 iodev->supported_channel_counts = (size_t *)malloc(2 * sizeof(channel)); in update_supported_formats()
90 iodev->supported_channel_counts[0] = channel; in update_supported_formats()
91 iodev->supported_channel_counts[1] = 0; in update_supported_formats()
439 free(a2dpio->base.supported_channel_counts); in free_resources()
Dcras_iodev.c312 assert(iodev->supported_channel_counts[0] != 0); in get_best_channel_count()
314 for (i = 0; iodev->supported_channel_counts[i] != 0; i++) { in get_best_channel_count()
315 if (iodev->supported_channel_counts[i] == count) in get_best_channel_count()
322 for (i = 0; iodev->supported_channel_counts[i] != 0; i++) { in get_best_channel_count()
323 if (iodev->supported_channel_counts[i] == in get_best_channel_count()
328 return iodev->supported_channel_counts[0]; in get_best_channel_count()
Dcras_empty_iodev.c199 iodev->supported_channel_counts = empty_supported_channel_counts; in empty_iodev_create()
Dtest_iodev.c192 iodev->supported_channel_counts = test_supported_channel_counts; in test_iodev_create()
Dcras_iodev.h235 size_t *supported_channel_counts; member
Dcras_loopback_iodev.c267 iodev->supported_channel_counts = loopback_supported_channel_counts; in create_loopback_iodev()
Dcras_alsa_io.c845 free(aio->base.supported_channel_counts); in free_alsa_iodev_resources()
1646 free(iodev->supported_channel_counts); in update_supported_formats()
1647 iodev->supported_channel_counts = NULL; in update_supported_formats()
1653 &iodev->supported_channel_counts, in update_supported_formats()