Home | History | Annotate | Download | only in hal

Lines Matching full:microphone

460     struct audio_microphone_characteristic_t microphone;
477 strcpy(microphone.device_id, attr[curIdx++]);
484 ARRAY_SIZE(device_in_types), &microphone.device)) {
498 strcpy(microphone.address, attr[curIdx++]);
499 if (strlen(microphone.address) == 0) {
501 if (microphone.device == AUDIO_DEVICE_IN_BUILTIN_MIC) {
502 strcpy(microphone.address, AUDIO_BOTTOM_MICROPHONE_ADDRESS);
503 } else if (microphone.device == AUDIO_DEVICE_IN_BACK_MIC) {
504 strcpy(microphone.address, AUDIO_BACK_MICROPHONE_ADDRESS);
513 AUDIO_MICROPHONE_LOCATION_CNT, &microphone.location)) {
523 microphone.group = atoi(attr[curIdx++]);
529 microphone.index_in_the_group = atoi(attr[curIdx++]);
536 AUDIO_MICROPHONE_DIRECTIONALITY_CNT, &microphone.directionality)) {
546 microphone.num_frequency_responses = atoi(attr[curIdx++]);
547 if (microphone.num_frequency_responses > AUDIO_MICROPHONE_MAX_FREQUENCY_RESPONSES) {
551 if (microphone.num_frequency_responses > 0) {
559 microphone.frequency_responses[0][num_frequencies++] = atof(token);
574 microphone.frequency_responses[1][num_responses++] = atof(token);
583 || num_frequencies != microphone.num_frequency_responses) {
585 __func__, num_frequencies, num_responses, microphone.num_frequency_responses);
595 microphone.sensitivity = atof(attr[curIdx++]);
597 microphone.sensitivity = AUDIO_MICROPHONE_SENSITIVITY_UNKNOWN;
605 microphone.max_spl = atof(attr[curIdx++]);
607 microphone.max_spl = AUDIO_MICROPHONE_SPL_UNKNOWN;
615 microphone.min_spl = atof(attr[curIdx++]);
617 microphone.min_spl = AUDIO_MICROPHONE_SPL_UNKNOWN;
640 microphone.orientation.x = orientation[0];
641 microphone.orientation.y = orientation[1];
642 microphone.orientation.z = orientation[2];
644 microphone.orientation.x = 0.0f;
645 microphone.orientation.y = 0.0f;
646 microphone.orientation.z = 0.0f;
669 microphone.geometric_location.x = geometric_location[0];
670 microphone.geometric_location.y = geometric_location[1];
671 microphone.geometric_location.z = geometric_location[2];
673 microphone.geometric_location.x = AUDIO_MICROPHONE_COORDINATE_UNKNOWN;
674 microphone.geometric_location.y = AUDIO_MICROPHONE_COORDINATE_UNKNOWN;
675 microphone.geometric_location.z = AUDIO_MICROPHONE_COORDINATE_UNKNOWN;
678 platform_set_microphone_characteristic(my_data.platform, microphone);
705 struct mic_info microphone;
707 memset(&microphone.channel_mapping, AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED,
708 sizeof(microphone.channel_mapping));
714 strlcpy(microphone.device_id,
726 &microphone.channel_mapping[idx++])) {
733 microphone.channel_count = idx;
736 &microphone);
835 } else if (strcmp(tag_name, "microphone") == 0) {
837 ALOGE("microphone tag only supported with MICROPHONE_CHARACTERISTIC section");