Lines Matching refs:inputDesc
1575 sp<AudioInputDescriptor> inputDesc = new AudioInputDescriptor(profile); in getInputForDevice() local
1576 inputDesc->mSamplingRate = profileSamplingRate; in getInputForDevice()
1577 inputDesc->mFormat = profileFormat; in getInputForDevice()
1578 inputDesc->mChannelMask = profileChannelMask; in getInputForDevice()
1579 inputDesc->mDevice = device; in getInputForDevice()
1580 inputDesc->mPolicyMix = policyMix; in getInputForDevice()
1581 inputDesc->addAudioSession(session, audioSession); in getInputForDevice()
1583 addInput(input, inputDesc); in getInputForDevice()
1598 sp<AudioInputDescriptor> inputDesc = mInputs.valueAt(index); in startInput() local
1600 sp<AudioSession> audioSession = inputDesc->getAudioSession(session); in startInput()
1607 if (!is_virtual_input_device(inputDesc->mDevice)) { in startInput()
1625 inputDesc->setPreemptedSessions(sessions); in startInput()
1639 inputDesc->getModuleHandle() == mCallTxPatch->mPatch.sources[0].ext.device.hw_module) { in startInput()
1647 if (!inputDesc->isActive() || mInputRoutes.hasRouteChanged(session)) { in startInput()
1649 if ((inputDesc->mPolicyMix != NULL) in startInput()
1650 && ((inputDesc->mPolicyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) { in startInput()
1651 mpClientInterface->onDynamicPolicyMixStateUpdate(inputDesc->mPolicyMix->mDeviceAddress, in startInput()
1663 if (audio_is_remote_submix_device(inputDesc->mDevice)) { in startInput()
1665 if (inputDesc->mPolicyMix == NULL) { in startInput()
1667 } else if (inputDesc->mPolicyMix->mMixType == MIX_TYPE_PLAYERS) { in startInput()
1668 address = inputDesc->mPolicyMix->mDeviceAddress; in startInput()
1693 sp<AudioInputDescriptor> inputDesc = mInputs.valueAt(index); in stopInput() local
1695 sp<AudioSession> audioSession = inputDesc->getAudioSession(session); in stopInput()
1711 if (!inputDesc->isActive()) { in stopInput()
1713 if ((inputDesc->mPolicyMix != NULL) in stopInput()
1714 && ((inputDesc->mPolicyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) { in stopInput()
1715 mpClientInterface->onDynamicPolicyMixStateUpdate(inputDesc->mPolicyMix->mDeviceAddress, in stopInput()
1721 if (audio_is_remote_submix_device(inputDesc->mDevice)) { in stopInput()
1723 if (inputDesc->mPolicyMix == NULL) { in stopInput()
1725 } else if (inputDesc->mPolicyMix->mMixType == MIX_TYPE_PLAYERS) { in stopInput()
1726 address = inputDesc->mPolicyMix->mDeviceAddress; in stopInput()
1740 inputDesc->clearPreemptedSessions(); in stopInput()
1759 sp<AudioInputDescriptor> inputDesc = mInputs.valueAt(index); in releaseInput() local
1760 ALOG_ASSERT(inputDesc != 0); in releaseInput()
1762 sp<AudioSession> audioSession = inputDesc->getAudioSession(session); in releaseInput()
1775 inputDesc->removeAudioSession(session); in releaseInput()
1778 if (inputDesc->getOpenRefCount() > 0) { in releaseInput()
1792 sp<AudioInputDescriptor> inputDesc = mInputs.valueAt(input_index); in closeAllInputs() local
1793 ssize_t patch_index = mAudioPatches.indexOfKey(inputDesc->getPatchHandle()); in closeAllInputs()
2526 sp<AudioInputDescriptor> inputDesc = mInputs.getInputFromId(patch->sinks[0].id); in createAudioPatch() local
2527 if (inputDesc == NULL) { in createAudioPatch()
2541 if (!inputDesc->mProfile->isCompatibleProfile(devDesc->type(), in createAudioPatch()
2557 devDesc->type(), inputDesc->mIoHandle); in createAudioPatch()
2558 setInputDevice(inputDesc->mIoHandle, devDesc->type(), true, handle); in createAudioPatch()
2699 sp<AudioInputDescriptor> inputDesc = mInputs.getInputFromId(patch->sinks[0].id); in releaseAudioPatch() local
2700 if (inputDesc == NULL) { in releaseAudioPatch()
2704 setInputDevice(inputDesc->mIoHandle, in releaseAudioPatch()
2705 getNewInputDevice(inputDesc->mIoHandle), in releaseAudioPatch()
2761 sp<AudioInputDescriptor> inputDesc = mInputs.getInputFromId(config->id); in setAudioPortConfig() local
2762 if (inputDesc == NULL) { in setAudioPortConfig()
2765 audioPortConfig = inputDesc; in setAudioPortConfig()
2878 sp<AudioInputDescriptor> inputDesc = mInputs.valueAt(i); in clearSessionRoutes() local
2879 if (affectedSources.indexOf(inputDesc->inputSource()) >= 0) { in clearSessionRoutes()
2880 inputsToClose.add(inputDesc->mIoHandle); in clearSessionRoutes()
3297 sp<AudioInputDescriptor> inputDesc = in AudioPolicyManager() local
3300 inputDesc->mDevice = profileType; in AudioPolicyManager()
3311 config.sample_rate = inputDesc->mSamplingRate; in AudioPolicyManager()
3312 config.channel_mask = inputDesc->mChannelMask; in AudioPolicyManager()
3313 config.format = inputDesc->mFormat; in AudioPolicyManager()
3318 &inputDesc->mDevice, in AudioPolicyManager()
3339 inputDesc->mDevice, in AudioPolicyManager()
3597 void AudioPolicyManager::addInput(audio_io_handle_t input, sp<AudioInputDescriptor> inputDesc) in AudioPolicyManager() argument
3599 inputDesc->setIoHandle(input); in AudioPolicyManager()
3600 mInputs.add(input, inputDesc); in AudioPolicyManager()
4085 sp<AudioInputDescriptor> inputDesc = mInputs.valueFor(input); in AudioPolicyManager() local
4086 if (inputDesc == NULL) { in AudioPolicyManager()
4093 ssize_t index = mAudioPatches.indexOfKey(inputDesc->getPatchHandle()); in AudioPolicyManager()
4334 sp<AudioInputDescriptor> inputDesc = mInputs.valueFor(input); in AudioPolicyManager() local
4336 ssize_t index = mAudioPatches.indexOfKey(inputDesc->getPatchHandle()); in AudioPolicyManager()
4341 inputDesc->mDevice, inputDesc->getPatchHandle()); in AudioPolicyManager()
4342 return inputDesc->mDevice; in AudioPolicyManager()
4346 audio_devices_t device = getDeviceAndMixForInputSource(inputDesc->inputSource()); in AudioPolicyManager()
4755 sp<AudioInputDescriptor> inputDesc = mInputs.valueFor(input); in AudioPolicyManager() local
4756 if ((device != AUDIO_DEVICE_NONE) && ((device != inputDesc->mDevice) || force)) { in AudioPolicyManager()
4757 inputDesc->mDevice = device; in AudioPolicyManager()
4762 inputDesc->toAudioPortConfig(&patch.sinks[0]); in AudioPolicyManager()
4766 !inputDesc->isSoundTrigger()) { in AudioPolicyManager()
4777 index = mAudioPatches.indexOfKey(inputDesc->getPatchHandle()); in AudioPolicyManager()
4802 inputDesc->setPatchHandle(patchDesc->mHandle); in AudioPolicyManager()
4814 sp<AudioInputDescriptor> inputDesc = mInputs.valueFor(input); in AudioPolicyManager() local
4819 index = mAudioPatches.indexOfKey(inputDesc->getPatchHandle()); in AudioPolicyManager()
4827 inputDesc->setPatchHandle(AUDIO_PATCH_HANDLE_NONE); in AudioPolicyManager()