Lines Matching refs:pDst
185 audio_microphone_characteristic_t *pDst) { in microphoneInfoToHal() argument
186 if (pDst != NULL) { in microphoneInfoToHal()
187 snprintf(pDst->device_id, sizeof(pDst->device_id), in microphoneInfoToHal()
189 pDst->device = static_cast<audio_devices_t>(src.deviceAddress.device); in microphoneInfoToHal()
190 snprintf(pDst->address, sizeof(pDst->address), in microphoneInfoToHal()
198 pDst->channel_mapping[ch] = channelMappingToHal(src.channelMapping[ch]); in microphoneInfoToHal()
201 pDst->channel_mapping[ch] = AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED; in microphoneInfoToHal()
203 pDst->location = locationToHal(src.location); in microphoneInfoToHal()
204 pDst->group = (audio_microphone_group_t)src.group; in microphoneInfoToHal()
205 pDst->index_in_the_group = (unsigned int)src.indexInTheGroup; in microphoneInfoToHal()
206 pDst->sensitivity = src.sensitivity; in microphoneInfoToHal()
207 pDst->max_spl = src.maxSpl; in microphoneInfoToHal()
208 pDst->min_spl = src.minSpl; in microphoneInfoToHal()
209 pDst->directionality = directionalityToHal(src.directionality); in microphoneInfoToHal()
210 pDst->num_frequency_responses = (unsigned int)src.frequencyResponse.size(); in microphoneInfoToHal()
211 if (pDst->num_frequency_responses > AUDIO_MICROPHONE_MAX_FREQUENCY_RESPONSES) { in microphoneInfoToHal()
213 pDst->num_frequency_responses, AUDIO_MICROPHONE_MAX_FREQUENCY_RESPONSES); in microphoneInfoToHal()
214 pDst->num_frequency_responses = AUDIO_MICROPHONE_MAX_FREQUENCY_RESPONSES; in microphoneInfoToHal()
216 for (size_t k = 0; k < pDst->num_frequency_responses; k++) { in microphoneInfoToHal()
217 pDst->frequency_responses[0][k] = src.frequencyResponse[k].frequency; in microphoneInfoToHal()
218 pDst->frequency_responses[1][k] = src.frequencyResponse[k].level; in microphoneInfoToHal()
220 pDst->geometric_location.x = src.position.x; in microphoneInfoToHal()
221 pDst->geometric_location.y = src.position.y; in microphoneInfoToHal()
222 pDst->geometric_location.z = src.position.z; in microphoneInfoToHal()
223 pDst->orientation.x = src.orientation.x; in microphoneInfoToHal()
224 pDst->orientation.y = src.orientation.y; in microphoneInfoToHal()
225 pDst->orientation.z = src.orientation.z; in microphoneInfoToHal()