Lines Matching refs:sourceDesc

3335         sp<AudioSourceDescriptor> sourceDesc = mAudioSources.valueAt(i);  in clearAudioSources()  local
3336 if (sourceDesc->mUid == uid) { in clearAudioSources()
3378 sp<AudioSourceDescriptor> sourceDesc = in startAudioSource() local
3383 sourceDesc->mPatchDesc = patchDesc; in startAudioSource()
3385 status_t status = connectAudioSource(sourceDesc); in startAudioSource()
3387 mAudioSources.add(sourceDesc->getHandle(), sourceDesc); in startAudioSource()
3388 *handle = sourceDesc->getHandle(); in startAudioSource()
3393 status_t AudioPolicyManager::connectAudioSource(const sp<AudioSourceDescriptor>& sourceDesc) in connectAudioSource() argument
3395 ALOGV("%s handle %d", __FUNCTION__, sourceDesc->getHandle()); in connectAudioSource()
3398 disconnectAudioSource(sourceDesc); in connectAudioSource()
3400 routing_strategy strategy = (routing_strategy) getStrategyForAttr(&sourceDesc->mAttributes); in connectAudioSource()
3401 audio_stream_type_t stream = streamTypefromAttributesInt(&sourceDesc->mAttributes); in connectAudioSource()
3402 sp<DeviceDescriptor> srcDeviceDesc = sourceDesc->mDevice; in connectAudioSource()
3409 struct audio_patch *patch = &sourceDesc->mPatchDesc->mPatch; in connectAudioSource()
3460 mpClientInterface->releaseAudioPatch(sourceDesc->mPatchDesc->mAfPatchHandle, 0); in connectAudioSource()
3463 sourceDesc->mSwOutput = outputDesc; in connectAudioSource()
3469 sourceDesc->mPatchDesc->mAfPatchHandle = afPatchHandle; in connectAudioSource()
3470 addAudioPatch(sourceDesc->mPatchDesc->mHandle, sourceDesc->mPatchDesc); in connectAudioSource()
3477 sp<AudioSourceDescriptor> sourceDesc = mAudioSources.valueFor(handle); in stopAudioSource() local
3479 if (sourceDesc == 0) { in stopAudioSource()
3483 status_t status = disconnectAudioSource(sourceDesc); in stopAudioSource()
3819 status_t AudioPolicyManager::disconnectAudioSource(const sp<AudioSourceDescriptor>& sourceDesc) in disconnectAudioSource() argument
3821 ALOGV("%s handle %d", __FUNCTION__, sourceDesc->getHandle()); in disconnectAudioSource()
3823 sp<AudioPatch> patchDesc = mAudioPatches.valueFor(sourceDesc->mPatchDesc->mHandle); in disconnectAudioSource()
3826 sourceDesc->mPatchDesc->mHandle); in disconnectAudioSource()
3829 removeAudioPatch(sourceDesc->mPatchDesc->mHandle); in disconnectAudioSource()
3831 audio_stream_type_t stream = streamTypefromAttributesInt(&sourceDesc->mAttributes); in disconnectAudioSource()
3832 sp<SwAudioOutputDescriptor> swOutputDesc = sourceDesc->mSwOutput.promote(); in disconnectAudioSource()
3840 sp<HwAudioOutputDescriptor> hwOutputDesc = sourceDesc->mHwOutput.promote(); in disconnectAudioSource()
3856 sp<AudioSourceDescriptor> sourceDesc = mAudioSources.valueAt(i); in getSourceForStrategyOnOutput() local
3858 (routing_strategy) getStrategyForAttr(&sourceDesc->mAttributes); in getSourceForStrategyOnOutput()
3859 sp<SwAudioOutputDescriptor> outputDesc = sourceDesc->mSwOutput.promote(); in getSourceForStrategyOnOutput()
3861 source = sourceDesc; in getSourceForStrategyOnOutput()
5905 sp<AudioSourceDescriptor> sourceDesc = mAudioSources.valueAt(i); in loadConfig() local
5906 if (sourceDesc->mDevice->equals(deviceDesc)) { in loadConfig()
5907 ALOGV("%s releasing audio source %d", __FUNCTION__, sourceDesc->getHandle()); in loadConfig()
5908 stopAudioSource(sourceDesc->getHandle()); in loadConfig()