Lines Matching refs:sourceDesc
2891 sp<AudioSourceDescriptor> sourceDesc = mAudioSources.valueAt(i); in clearAudioSources() local
2892 if (sourceDesc->mUid == uid) { in clearAudioSources()
2934 sp<AudioSourceDescriptor> sourceDesc = in startAudioSource() local
2939 sourceDesc->mPatchDesc = patchDesc; in startAudioSource()
2941 status_t status = connectAudioSource(sourceDesc); in startAudioSource()
2943 mAudioSources.add(sourceDesc->getHandle(), sourceDesc); in startAudioSource()
2944 *handle = sourceDesc->getHandle(); in startAudioSource()
2949 status_t AudioPolicyManager::connectAudioSource(const sp<AudioSourceDescriptor>& sourceDesc) in connectAudioSource() argument
2951 ALOGV("%s handle %d", __FUNCTION__, sourceDesc->getHandle()); in connectAudioSource()
2954 disconnectAudioSource(sourceDesc); in connectAudioSource()
2956 routing_strategy strategy = (routing_strategy) getStrategyForAttr(&sourceDesc->mAttributes); in connectAudioSource()
2957 audio_stream_type_t stream = streamTypefromAttributesInt(&sourceDesc->mAttributes); in connectAudioSource()
2958 sp<DeviceDescriptor> srcDeviceDesc = sourceDesc->mDevice; in connectAudioSource()
2965 struct audio_patch *patch = &sourceDesc->mPatchDesc->mPatch; in connectAudioSource()
3011 mpClientInterface->releaseAudioPatch(sourceDesc->mPatchDesc->mAfPatchHandle, 0); in connectAudioSource()
3014 sourceDesc->mSwOutput = outputDesc; in connectAudioSource()
3020 sourceDesc->mPatchDesc->mAfPatchHandle = afPatchHandle; in connectAudioSource()
3021 addAudioPatch(sourceDesc->mPatchDesc->mHandle, sourceDesc->mPatchDesc); in connectAudioSource()
3028 sp<AudioSourceDescriptor> sourceDesc = mAudioSources.valueFor(handle); in stopAudioSource() local
3030 if (sourceDesc == 0) { in stopAudioSource()
3034 status_t status = disconnectAudioSource(sourceDesc); in stopAudioSource()
3078 status_t AudioPolicyManager::disconnectAudioSource(const sp<AudioSourceDescriptor>& sourceDesc) in disconnectAudioSource() argument
3080 ALOGV("%s handle %d", __FUNCTION__, sourceDesc->getHandle()); in disconnectAudioSource()
3082 sp<AudioPatch> patchDesc = mAudioPatches.valueFor(sourceDesc->mPatchDesc->mHandle); in disconnectAudioSource()
3085 sourceDesc->mPatchDesc->mHandle); in disconnectAudioSource()
3088 removeAudioPatch(sourceDesc->mPatchDesc->mHandle); in disconnectAudioSource()
3090 audio_stream_type_t stream = streamTypefromAttributesInt(&sourceDesc->mAttributes); in disconnectAudioSource()
3091 sp<SwAudioOutputDescriptor> swOutputDesc = sourceDesc->mSwOutput.promote(); in disconnectAudioSource()
3096 sp<HwAudioOutputDescriptor> hwOutputDesc = sourceDesc->mHwOutput.promote(); in disconnectAudioSource()
3112 sp<AudioSourceDescriptor> sourceDesc = mAudioSources.valueAt(i); in getSourceForStrategyOnOutput() local
3114 (routing_strategy) getStrategyForAttr(&sourceDesc->mAttributes); in getSourceForStrategyOnOutput()
3115 sp<SwAudioOutputDescriptor> outputDesc = sourceDesc->mSwOutput.promote(); in getSourceForStrategyOnOutput()
3117 source = sourceDesc; in getSourceForStrategyOnOutput()
5244 sp<AudioSourceDescriptor> sourceDesc = mAudioSources.valueAt(i); in AudioPolicyManager() local
5245 if (sourceDesc->mDevice->equals(deviceDesc)) { in AudioPolicyManager()
5246 ALOGV("%s releasing audio source %d", __FUNCTION__, sourceDesc->getHandle()); in AudioPolicyManager()
5247 stopAudioSource(sourceDesc->getHandle()); in AudioPolicyManager()