Home | History | Annotate | Download | only in managerdefault

Lines Matching defs:source

2  * Copyright (C) 2009 The Android Open Source Project
493 // terminate active capture if on the same HW module as the call TX source device
1481 ALOGV("getInputForAttr() source %d, samplingRate %d, format %d, channelMask %x,"
1483 source, config->sample_rate, config->format, config->channel_mask, session, flags);
1491 audio_source_t inputSource = attr->source;
1527 ALOGW("getInputForAttr() could not find device for source %d", inputSource);
1671 // - the new capture source is background OR
1673 // - the new source priority is less than the highest source priority on this input
1751 bool AudioPolicyManager::isConcurrentSource(audio_source_t source)
1753 return (source == AUDIO_SOURCE_HOTWORD) ||
1754 (source == AUDIO_SOURCE_VOICE_RECOGNITION) ||
1755 (source == AUDIO_SOURCE_FM_TUNER);
1762 // the call TX source device is on the same HW module.
1772 // 2) capturing for HOTWORD source
1773 // 3) capturing for FM TUNER source
1937 ALOGV("AudioPolicyManager::startInput() input source = %d", audioSession->inputSource());
2299 bool AudioPolicyManager::isSourceActive(audio_source_t source) const
2303 if (inputDescriptor->isSourceActive(source)) {
2322 // - 2.1 look for a mix matching the attributes source
2706 // only one source per audio patch supported for now
2723 ALOGV("createAudioPatch source id %d role %d type %d", patch->sources[0].id,
2751 ALOG_ASSERT(!outputDesc->isDuplicated(),"duplicated output %d in source in ports",
2755 ALOGV("createAudioPatch() source id differs for patch current id %d new id %d",
2765 ALOGV("createAudioPatch() source mix but sink is not a device");
2875 //update source and sink with our own data as the data passed in the patch may
2882 ALOGV("createAudioPatch() source device but one sink is not a device");
2894 // - source and sink devices are on differnt HW modules OR
2905 // this output stream by adding a second source to the patch description
3199 status_t AudioPolicyManager::startAudioSource(const struct audio_port_config *source,
3204 ALOGV("%s source %p attributes %p handle %p", __FUNCTION__, source, attributes, handle);
3205 if (source == NULL || attributes == NULL || handle == NULL) {
3211 if (source->role != AUDIO_PORT_ROLE_SOURCE ||
3212 source->type != AUDIO_PORT_TYPE_DEVICE) {
3213 ALOGV("%s INVALID_OPERATION source->role %d source->type %d", __FUNCTION__, source->role, source->type);
3218 mAvailableInputDevices.getDevice(source->ext.device.type,
3219 String8(source->ext.device.address));
3221 ALOGV("%s source->ext.device.type %08x not found", __FUNCTION__, source->ext.device.type);
3243 // make sure we only have one patch per source.
3278 // - the second source indicates to PatchPanel through which output mix this patch should
3321 ALOGW("%s unknown source for handle %d", __FUNCTION__, handle);
3374 ALOGW("%s source has no patch with handle %d", __FUNCTION__,
3391 ALOGW("%s source has neither SW nor HW output", __FUNCTION__);
3400 sp<AudioSourceDescriptor> source;
3407 source = sourceDesc;
3411 return source;
4493 sp<AudioSourceDescriptor> source =
4495 if (source != 0){
4496 connectAudioSource(source);
4654 audio_source_t source = inputDesc->getHighestPrioritySource(true /*activeOnly*/);
4657 } else if (source != AUDIO_SOURCE_DEFAULT) {
4658 device = getDeviceAndMixForInputSource(source);
5081 if (patch.sinks[0].ext.mix.usecase.source == AUDIO_SOURCE_HOTWORD &&
5083 patch.sinks[0].ext.mix.usecase.source = AUDIO_SOURCE_VOICE_RECOGNITION;
5577 ALOGV("%s releasing audio source %d", __FUNCTION__, sourceDesc->getHandle());
5586 const struct audio_port_config *source = &patchDesc->mPatch.sources[j];
5587 if (source->type == AUDIO_PORT_TYPE_DEVICE &&
5588 source->ext.device.type == deviceDesc->type()) {