Home | History | Annotate | Download | only in managerdefault

Lines Matching refs:sourceDesc

2923         sp<AudioSourceDescriptor> sourceDesc = mAudioSources.valueAt(i);
2924 if (sourceDesc->mUid == uid) {
2966 sp<AudioSourceDescriptor> sourceDesc =
2971 sourceDesc->mPatchDesc = patchDesc;
2973 status_t status = connectAudioSource(sourceDesc);
2975 mAudioSources.add(sourceDesc->getHandle(), sourceDesc);
2976 *handle = sourceDesc->getHandle();
2981 status_t AudioPolicyManager::connectAudioSource(const sp<AudioSourceDescriptor>& sourceDesc)
2983 ALOGV("%s handle %d", __FUNCTION__, sourceDesc->getHandle());
2986 disconnectAudioSource(sourceDesc);
2988 routing_strategy strategy = (routing_strategy) getStrategyForAttr(&sourceDesc->mAttributes);
2989 audio_stream_type_t stream = streamTypefromAttributesInt(&sourceDesc->mAttributes);
2990 sp<DeviceDescriptor> srcDeviceDesc = sourceDesc->mDevice;
2997 struct audio_patch *patch = &sourceDesc->mPatchDesc->mPatch;
3043 mpClientInterface->releaseAudioPatch(sourceDesc->mPatchDesc->mAfPatchHandle, 0);
3046 sourceDesc->mSwOutput = outputDesc;
3052 sourceDesc->mPatchDesc->mAfPatchHandle = afPatchHandle;
3053 addAudioPatch(sourceDesc->mPatchDesc->mHandle, sourceDesc->mPatchDesc);
3060 sp<AudioSourceDescriptor> sourceDesc = mAudioSources.valueFor(handle);
3062 if (sourceDesc == 0) {
3066 status_t status = disconnectAudioSource(sourceDesc);
3110 status_t AudioPolicyManager::disconnectAudioSource(const sp<AudioSourceDescriptor>& sourceDesc)
3112 ALOGV("%s handle %d", __FUNCTION__, sourceDesc->getHandle());
3114 sp<AudioPatch> patchDesc = mAudioPatches.valueFor(sourceDesc->mPatchDesc->mHandle);
3117 sourceDesc->mPatchDesc->mHandle);
3120 removeAudioPatch(sourceDesc->mPatchDesc->mHandle);
3122 audio_stream_type_t stream = streamTypefromAttributesInt(&sourceDesc->mAttributes);
3123 sp<SwAudioOutputDescriptor> swOutputDesc = sourceDesc->mSwOutput.promote();
3128 sp<HwAudioOutputDescriptor> hwOutputDesc = sourceDesc->mHwOutput.promote();
3144 sp<AudioSourceDescriptor> sourceDesc = mAudioSources.valueAt(i);
3146 (routing_strategy) getStrategyForAttr(&sourceDesc->mAttributes);
3147 sp<SwAudioOutputDescriptor> outputDesc = sourceDesc->mSwOutput.promote();
3149 source = sourceDesc;
5282 sp<AudioSourceDescriptor> sourceDesc = mAudioSources.valueAt(i);
5283 if (sourceDesc->mDevice->equals(deviceDesc)) {
5284 ALOGV("%s releasing audio source %d", __FUNCTION__, sourceDesc->getHandle());
5285 stopAudioSource(sourceDesc->getHandle());