Home
last modified time | relevance | path

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

/external/adhd/cras/src/server/
Dcras_hfp_alsa_iodev.c62 free(iodev->supported_channel_counts); in hfp_alsa_update_supported_formats()
63 iodev->supported_channel_counts = in hfp_alsa_update_supported_formats()
64 malloc(2 * sizeof(*iodev->supported_channel_counts)); in hfp_alsa_update_supported_formats()
65 if (!iodev->supported_channel_counts) in hfp_alsa_update_supported_formats()
67 iodev->supported_channel_counts[0] = 1; in hfp_alsa_update_supported_formats()
68 iodev->supported_channel_counts[1] = 0; in hfp_alsa_update_supported_formats()
330 free(iodev->supported_channel_counts); in hfp_alsa_iodev_destroy()
Dcras_hfp_iodev.c56 free(iodev->supported_channel_counts); in update_supported_formats()
57 iodev->supported_channel_counts = (size_t *)malloc(2 * sizeof(size_t)); in update_supported_formats()
58 iodev->supported_channel_counts[0] = 1; in update_supported_formats()
59 iodev->supported_channel_counts[1] = 0; in update_supported_formats()
277 free(hfpio->base.supported_channel_counts); in hfp_free_resources()
Dcras_bt_io.c188 for (length = 0; dev->supported_channel_counts[length]; length++) in update_supported_formats()
190 iodev->supported_channel_counts = (size_t *)malloc( in update_supported_formats()
191 (length + 1) * sizeof(*iodev->supported_channel_counts)); in update_supported_formats()
193 iodev->supported_channel_counts[i] = in update_supported_formats()
194 dev->supported_channel_counts[i]; in update_supported_formats()
583 free(bt_iodev->supported_channel_counts); in cras_bt_io_free_resources()
Dcras_a2dp_iodev.c95 free(iodev->supported_channel_counts); in update_supported_formats()
96 iodev->supported_channel_counts = (size_t *)malloc(2 * sizeof(channel)); in update_supported_formats()
97 iodev->supported_channel_counts[0] = channel; in update_supported_formats()
98 iodev->supported_channel_counts[1] = 0; in update_supported_formats()
603 free(a2dpio->base.supported_channel_counts); in free_resources()
Dcras_alsa_io.c874 free(aio->base.supported_channel_counts); in free_alsa_iodev_resources()
1483 for (i = 0; iodev->supported_channel_counts[i] != 0; i++) { in update_max_supported_channels()
1484 if (iodev->supported_channel_counts[i] > max_channels) in update_max_supported_channels()
1485 max_channels = iodev->supported_channel_counts[i]; in update_max_supported_channels()
1713 free(iodev->supported_channel_counts); in update_supported_formats()
1714 iodev->supported_channel_counts = NULL; in update_supported_formats()
1719 &iodev->supported_channel_counts, in update_supported_formats()
1738 free(iodev->supported_channel_counts); in update_supported_formats()
1739 iodev->supported_channel_counts = (size_t *)malloc( in update_supported_formats()
1740 2 * sizeof(iodev->supported_channel_counts[0])); in update_supported_formats()
[all …]
Dcras_iodev.c335 assert(iodev->supported_channel_counts[0] != 0); in get_best_channel_count()
337 for (i = 0; iodev->supported_channel_counts[i] != 0; i++) { in get_best_channel_count()
338 if (iodev->supported_channel_counts[i] == count) in get_best_channel_count()
345 for (i = 0; iodev->supported_channel_counts[i] != 0; i++) { in get_best_channel_count()
346 if (iodev->supported_channel_counts[i] == in get_best_channel_count()
351 return iodev->supported_channel_counts[0]; in get_best_channel_count()
Dcras_empty_iodev.c188 iodev->supported_channel_counts = empty_supported_channel_counts; in empty_iodev_create()
Dtest_iodev.c183 iodev->supported_channel_counts = test_supported_channel_counts; in test_iodev_create()
Dcras_iodev.h288 size_t *supported_channel_counts; member
Dcras_loopback_iodev.c287 iodev->supported_channel_counts = loopback_supported_channel_counts; in create_loopback_iodev()
/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 = in update_supported_formats()
100 (size_t*)calloc(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()
198 free(iodev_.supported_channel_counts); in TEST_F()
Dhfp_alsa_iodev_unittest.cc217 size_t supported_channel_counts[] = {1, 0}; in TEST_F() local
222 fake_sco_out.supported_channel_counts = supported_channel_counts; in TEST_F()
234 EXPECT_EQ(supported_channel_counts[i], iodev->supported_channel_counts[i]); in TEST_F()
Diodev_unittest.cc266 iodev_.supported_channel_counts = channel_counts_; in SetUp()
426 iodev_.supported_channel_counts[0] = 6; in TEST_F()
427 iodev_.supported_channel_counts[1] = 2; in TEST_F()
449 iodev_.supported_channel_counts[0] = 6; in TEST_F()
450 iodev_.supported_channel_counts[1] = 2; in TEST_F()
475 iodev_.supported_channel_counts[0] = 6; in TEST_F()
476 iodev_.supported_channel_counts[1] = 2; in TEST_F()
Diodev_list_unittest.cc160 d1_.supported_channel_counts = channel_counts_; in SetUp()
173 d2_.supported_channel_counts = channel_counts_; in SetUp()
186 d3_.supported_channel_counts = channel_counts_; in SetUp()
200 loopback_input.supported_channel_counts = channel_counts_; in SetUp()