/external/adhd/cras/src/tests/ |
D | audio_format_unittest.cc | 21 in_fmt->channel_layout[i] = -1; in SetUp() 22 out_fmt->channel_layout[i] = -1; in SetUp() 39 in_fmt->channel_layout[0] = 5; in TEST_F() 40 in_fmt->channel_layout[1] = 4; in TEST_F() 41 in_fmt->channel_layout[2] = 3; in TEST_F() 42 in_fmt->channel_layout[3] = 2; in TEST_F() 43 in_fmt->channel_layout[4] = 1; in TEST_F() 44 in_fmt->channel_layout[5] = 0; in TEST_F() 46 out_fmt->channel_layout[0] = 0; in TEST_F() 47 out_fmt->channel_layout[1] = 1; in TEST_F() [all …]
|
D | audio_area_unittest.cc | 37 fmt.channel_layout[i] = stereo[i]; in TEST() 68 fmt.channel_layout[i] = stereo[i]; in TEST() 104 fmt.channel_layout[i] = stereo[i]; in TEST() 137 fmt.channel_layout[i] = stereo[i]; in TEST() 175 dst_fmt.channel_layout[i] = stereo[i]; in TEST() 184 src_fmt.channel_layout[i] = mono[i]; in TEST() 210 fmt.channel_layout[i] = mono[i]; in TEST() 218 fmt.channel_layout[i] = stereo[i]; in TEST() 242 fmt.channel_layout[i] = kb_mic[i]; in TEST() 250 fmt.channel_layout[i] = stereo[i]; in TEST() [all …]
|
D | fmt_conv_unittest.cc | 294 in_fmt.channel_layout[i] = surround_channel_layout[i]; in TEST() 332 swap_channel_layout(in_fmt.channel_layout, CRAS_CH_FL, CRAS_CH_FR); in TEST() 333 swap_channel_layout(in_fmt.channel_layout, CRAS_CH_RL, CRAS_CH_RR); in TEST() 348 swap_channel_layout(in_fmt.channel_layout, CRAS_CH_FR, CRAS_CH_FC); in TEST() 349 swap_channel_layout(in_fmt.channel_layout, CRAS_CH_RR, CRAS_CH_LFE); in TEST() 365 swap_channel_layout(in_fmt.channel_layout, CRAS_CH_LFE, CRAS_CH_FR); in TEST() 366 swap_channel_layout(in_fmt.channel_layout, CRAS_CH_FC, CRAS_CH_FL); in TEST() 405 in_fmt.channel_layout[i] = quad_channel_layout[i]; in TEST() 445 swap_channel_layout(in_fmt.channel_layout, CRAS_CH_FL, CRAS_CH_FR); in TEST() 446 swap_channel_layout(in_fmt.channel_layout, CRAS_CH_RL, CRAS_CH_RR); in TEST() [all …]
|
D | alsa_helpers_unittest.cc | 50 int8_t channel_layout[CRAS_CH_MAX] = in TEST() local 54 cras_audio_format_set_channel_layout(fmt, channel_layout); in TEST() 103 int8_t channel_layout[CRAS_CH_MAX] = in TEST() local 107 cras_audio_format_set_channel_layout(fmt, channel_layout); in TEST()
|
D | dev_io_stubs.cc | 140 format->channel_layout[0] = 0; in fill_audio_format() 141 format->channel_layout[1] = 1; in fill_audio_format() 143 format->channel_layout[i] = -1; in fill_audio_format()
|
D | alsa_ucm_unittest.cc | 433 int8_t channel_layout[CRAS_CH_MAX]; in TEST() local 442 rc = ucm_get_capture_chmap_for_dev(mgr, "Dev1", channel_layout); in TEST() 448 EXPECT_EQ(channel_layout[0], -1); in TEST() 449 EXPECT_EQ(channel_layout[1], -1); in TEST() 450 EXPECT_EQ(channel_layout[2], 0); in TEST() 451 EXPECT_EQ(channel_layout[3], 1); in TEST() 452 EXPECT_EQ(channel_layout[4], -1); in TEST() 453 EXPECT_EQ(channel_layout[5], -1); in TEST() 454 EXPECT_EQ(channel_layout[6], -1); in TEST() 455 EXPECT_EQ(channel_layout[7], -1); in TEST() [all …]
|
D | cras_test_client.c | 53 static char *channel_layout = NULL; variable 611 printf("%d ", info->streams[i].channel_layout[channel]); in print_audio_debug_info() 718 int8_t channel_layout[CRAS_CH_MAX]) in parse_channel_layout() 725 channel_layout[i++] = atoi(chp); in parse_channel_layout() 810 if (channel_layout) { in run_file_io_stream() 812 parse_channel_layout(channel_layout, layout); in run_file_io_stream() 1464 channel_layout = optarg; in main()
|
D | iodev_unittest.cc | 499 EXPECT_EQ(iodev_.format->channel_layout[i], stereo_layout[i]); in TEST_F() 500 EXPECT_EQ(iodev_.ext_format->channel_layout[i], stereo_layout[i]); in TEST_F() 527 EXPECT_EQ(iodev_.format->channel_layout[i], default_6ch_layout[i]); in TEST_F() 528 EXPECT_EQ(iodev_.ext_format->channel_layout[i], default_6ch_layout[i]); in TEST_F() 2404 format->channel_layout[i] = layout[i]; in cras_audio_format_set_channel_layout()
|
/external/adhd/cras/src/common/ |
D | cras_audio_format.c | 53 fmt->channel_layout[i] = (i < num_channels) ? i : -1; in cras_audio_format_create() 71 format->channel_layout[i] = layout[i]; in cras_audio_format_set_channel_layout() 117 if (in->channel_layout[i] >= (int)in->num_channels || in cras_channel_conv_matrix_create() 118 out->channel_layout[i] >= (int)out->num_channels) { in cras_channel_conv_matrix_create() 132 if (in->channel_layout[i] == -1 && in cras_channel_conv_matrix_create() 133 out->channel_layout[i] == -1) in cras_channel_conv_matrix_create() 135 if (in->channel_layout[i] != -1 && in cras_channel_conv_matrix_create() 136 out->channel_layout[i] != -1) in cras_channel_conv_matrix_create() 137 mtx[out->channel_layout[i]][in->channel_layout[i]] = 1; in cras_channel_conv_matrix_create() 138 else if (in->channel_layout[i] != -1) { in cras_channel_conv_matrix_create() [all …]
|
D | cras_audio_format.h | 84 int8_t channel_layout[CRAS_CH_MAX]; member 95 int8_t channel_layout[CRAS_CH_MAX]; member 104 memcpy(dest->channel_layout, src->channel_layout, in pack_cras_audio_format() 105 sizeof(src->channel_layout)); in pack_cras_audio_format() 114 memcpy(dest->channel_layout, src->channel_layout, in unpack_cras_audio_format() 115 sizeof(src->channel_layout)); in unpack_cras_audio_format() 134 format->channel_layout[i] = i < format->num_channels ? i : -1; in cras_audio_format_set_default_channel_layout()
|
D | cras_types.h | 273 int8_t channel_layout[CRAS_CH_MAX]; member
|
/external/adhd/cras/src/server/ |
D | cras_fmt_conv.c | 206 left = conv->out_fmt.channel_layout[CRAS_CH_FL]; in s16_mono_to_51() 207 right = conv->out_fmt.channel_layout[CRAS_CH_FR]; in s16_mono_to_51() 208 center = conv->out_fmt.channel_layout[CRAS_CH_FC]; in s16_mono_to_51() 240 left = conv->out_fmt.channel_layout[CRAS_CH_FL]; in s16_stereo_to_51() 241 right = conv->out_fmt.channel_layout[CRAS_CH_FR]; in s16_stereo_to_51() 242 center = conv->out_fmt.channel_layout[CRAS_CH_FC]; in s16_stereo_to_51() 302 front_left = conv->out_fmt.channel_layout[CRAS_CH_FL]; in s16_stereo_to_quad() 303 front_right = conv->out_fmt.channel_layout[CRAS_CH_FR]; in s16_stereo_to_quad() 304 rear_left = conv->out_fmt.channel_layout[CRAS_CH_RL]; in s16_stereo_to_quad() 305 rear_right = conv->out_fmt.channel_layout[CRAS_CH_RR]; in s16_stereo_to_quad() [all …]
|
D | cras_alsa_helpers.c | 86 idx = fmt->channel_layout[ch]; in cras_chmap_caps_match() 108 idx = fmt->channel_layout[ch]; in cras_chmap_caps_match() 131 if (fmt->channel_layout[ch] & 0x01) { in cras_chmap_caps_match() 136 if (fmt->channel_layout[ch] + 1 != in cras_chmap_caps_match() 137 fmt->channel_layout[CH_TO_CRAS( in cras_chmap_caps_match() 170 conv_fmt->channel_layout[i] = -1; in cras_chmap_caps_conv_matrix() 174 conv_fmt->channel_layout[CH_TO_CRAS( in cras_chmap_caps_conv_matrix() 333 if (fmt->channel_layout[ch] == (int)i) in cras_alsa_set_channel_map() 370 fmt->channel_layout[i] = -1; in cras_alsa_get_channel_map() 374 fmt->channel_layout[CH_TO_CRAS(match->map.pos[i])] = i; in cras_alsa_get_channel_map() [all …]
|
D | cras_audio_area.c | 78 ((fmt->channel_layout[CRAS_CH_FC] == 0) || in cras_audio_area_config_channels() 79 (fmt->channel_layout[CRAS_CH_FL] == 0))) { in cras_audio_area_config_channels() 88 if (fmt->channel_layout[ch] == i) in cras_audio_area_config_channels()
|
D | cras_apm_list.c | 228 if (apm_fmt->channel_layout[CRAS_CH_FL] != -1) in get_best_channels() 230 if (apm_fmt->channel_layout[CRAS_CH_FR] != -1) in get_best_channels() 232 if (apm_fmt->channel_layout[CRAS_CH_FC] != -1) in get_best_channels() 236 apm_fmt->channel_layout[ch] = layout[ch]; in get_best_channels() 546 if (apm->fmt.channel_layout[ch] == i) in cras_apm_list_process() 551 j = apm->dev_fmt.channel_layout[ch]; in cras_apm_list_process()
|
D | cras_alsa_io.c | 87 int8_t *channel_layout; member 593 if (input->channel_layout) { in update_channel_layout() 594 memcpy(iodev->format->channel_layout, in update_channel_layout() 595 input->channel_layout, in update_channel_layout() 596 CRAS_CH_MAX * sizeof(*input->channel_layout)); in update_channel_layout() 1295 input->channel_layout = (int8_t *)malloc( in new_input() 1296 CRAS_CH_MAX * sizeof(*input->channel_layout)); in new_input() 1298 input->channel_layout); in new_input() 1300 free(input->channel_layout); in new_input() 1301 input->channel_layout = 0; in new_input()
|
D | cras_alsa_ucm.h | 291 int8_t *channel_layout);
|
D | cras_iodev.c | 421 iodev->format->channel_layout); in update_channel_layout() 433 if (fmt->channel_layout[i] >= fmt->num_channels) in trim_channel_layout() 434 fmt->channel_layout[i] = -1; in trim_channel_layout()
|
D | audio_thread.c | 596 memcpy(si->channel_layout, stream->stream->format.channel_layout, in append_stream_dump_info() 597 sizeof(si->channel_layout)); in append_stream_dump_info()
|
/external/libxaac/decoder/drc_src/ |
D | impd_drc_static_payload.c | 351 drc_config->channel_layout.base_channel_count; in impd_parametric_drc_parse_gain_set_params() 720 ia_channel_layout_struct* channel_layout) { in impd_parse_ch_layout() argument 724 channel_layout->base_channel_count = impd_read_bits_buf(it_bit_buff, 7); in impd_parse_ch_layout() 727 channel_layout->base_channel_count != in impd_parse_ch_layout() 731 channel_layout->layout_signaling_present = impd_read_bits_buf(it_bit_buff, 1); in impd_parse_ch_layout() 734 if (channel_layout->layout_signaling_present) { in impd_parse_ch_layout() 735 channel_layout->defined_layout = impd_read_bits_buf(it_bit_buff, 8); in impd_parse_ch_layout() 738 if (channel_layout->defined_layout == 0) { in impd_parse_ch_layout() 739 for (i = 0; i < channel_layout->base_channel_count; i++) { in impd_parse_ch_layout() 740 channel_layout->speaker_position[i] = in impd_parse_ch_layout() [all …]
|
D | impd_drc_uni_parser.h | 50 ia_channel_layout_struct* channel_layout, 69 ia_channel_layout_struct* channel_layout,
|
D | impd_drc_selection_process.c | 88 pstr_drc_uni_sel_proc->drc_config.channel_layout.base_channel_count) { in impd_drc_uni_sel_proc_process() 90 pstr_drc_uni_sel_proc->drc_config.channel_layout.base_channel_count; in impd_drc_uni_sel_proc_process() 92 if (pstr_drc_uni_sel_proc->drc_config.channel_layout in impd_drc_uni_sel_proc_process() 95 pstr_drc_uni_sel_proc->drc_config.channel_layout.defined_layout) { in impd_drc_uni_sel_proc_process() 97 pstr_drc_uni_sel_proc->drc_config.channel_layout.defined_layout; in impd_drc_uni_sel_proc_process() 368 pstr_drc_config->channel_layout.base_channel_count; in impd_sel_downmix_matrix() 370 pstr_drc_config->channel_layout.base_channel_count; in impd_sel_downmix_matrix()
|
D | impd_drc_parser.h | 67 ia_channel_layout_struct* channel_layout,
|
D | impd_drc_init.c | 271 pstr_drc_config->channel_layout.base_channel_count = 2; in impd_drc_set_default_bitstream_config() 463 p_obj_drc->str_payload.pstr_drc_config->channel_layout in impd_drc_init()
|
D | impd_drc_dec.c | 171 channel_count = drc_config->channel_layout.base_channel_count; in impd_init_selected_drc_set()
|