Home | History | Annotate | Download | only in managerdefault

Lines Matching defs:inputDesc

1604     sp<AudioInputDescriptor> inputDesc = new AudioInputDescriptor(profile);
1605 inputDesc->mSamplingRate = profileSamplingRate;
1606 inputDesc->mFormat = profileFormat;
1607 inputDesc->mChannelMask = profileChannelMask;
1608 inputDesc->mDevice = device;
1609 inputDesc->mPolicyMix = policyMix;
1610 inputDesc->addAudioSession(session, audioSession);
1612 addInput(input, inputDesc);
1627 sp<AudioInputDescriptor> inputDesc = mInputs.valueAt(index);
1629 sp<AudioSession> audioSession = inputDesc->getAudioSession(session);
1636 if (!is_virtual_input_device(inputDesc->mDevice)) {
1654 inputDesc->setPreemptedSessions(sessions);
1668 inputDesc->getModuleHandle() == mCallTxPatch->mPatch.sources[0].ext.device.hw_module) {
1676 if (!inputDesc->isActive() || mInputRoutes.hasRouteChanged(session)) {
1678 if ((inputDesc->mPolicyMix != NULL)
1679 && ((inputDesc->mPolicyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) {
1680 mpClientInterface->onDynamicPolicyMixStateUpdate(inputDesc->mPolicyMix->mDeviceAddress,
1692 if (audio_is_remote_submix_device(inputDesc->mDevice)) {
1694 if (inputDesc->mPolicyMix == NULL) {
1696 } else if (inputDesc->mPolicyMix->mMixType == MIX_TYPE_PLAYERS) {
1697 address = inputDesc->mPolicyMix->mDeviceAddress;
1722 sp<AudioInputDescriptor> inputDesc = mInputs.valueAt(index);
1724 sp<AudioSession> audioSession = inputDesc->getAudioSession(session);
1740 if (!inputDesc->isActive()) {
1742 if ((inputDesc->mPolicyMix != NULL)
1743 && ((inputDesc->mPolicyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) {
1744 mpClientInterface->onDynamicPolicyMixStateUpdate(inputDesc->mPolicyMix->mDeviceAddress,
1750 if (audio_is_remote_submix_device(inputDesc->mDevice)) {
1752 if (inputDesc->mPolicyMix == NULL) {
1754 } else if (inputDesc->mPolicyMix->mMixType == MIX_TYPE_PLAYERS) {
1755 address = inputDesc->mPolicyMix->mDeviceAddress;
1769 inputDesc->clearPreemptedSessions();
1788 sp<AudioInputDescriptor> inputDesc = mInputs.valueAt(index);
1789 ALOG_ASSERT(inputDesc != 0);
1791 sp<AudioSession> audioSession = inputDesc->getAudioSession(session);
1804 inputDesc->removeAudioSession(session);
1807 if (inputDesc->getOpenRefCount() > 0) {
1821 sp<AudioInputDescriptor> inputDesc = mInputs.valueAt(input_index);
1822 ssize_t patch_index = mAudioPatches.indexOfKey(inputDesc->getPatchHandle());
2559 sp<AudioInputDescriptor> inputDesc = mInputs.getInputFromId(patch->sinks[0].id);
2560 if (inputDesc == NULL) {
2574 if (!inputDesc->mProfile->isCompatibleProfile(devDesc->type(),
2590 devDesc->type(), inputDesc->mIoHandle);
2591 setInputDevice(inputDesc->mIoHandle, devDesc->type(), true, handle);
2732 sp<AudioInputDescriptor> inputDesc = mInputs.getInputFromId(patch->sinks[0].id);
2733 if (inputDesc == NULL) {
2737 setInputDevice(inputDesc->mIoHandle,
2738 getNewInputDevice(inputDesc->mIoHandle),
2793 sp<AudioInputDescriptor> inputDesc = mInputs.getInputFromId(config->id);
2794 if (inputDesc == NULL) {
2797 audioPortConfig = inputDesc;
2910 sp<AudioInputDescriptor> inputDesc = mInputs.valueAt(i);
2911 if (affectedSources.indexOf(inputDesc->inputSource()) >= 0) {
2912 inputsToClose.add(inputDesc->mIoHandle);
3330 sp<AudioInputDescriptor> inputDesc =
3333 inputDesc->mDevice = profileType;
3344 config.sample_rate = inputDesc->mSamplingRate;
3345 config.channel_mask = inputDesc->mChannelMask;
3346 config.format = inputDesc->mFormat;
3351 &inputDesc->mDevice,
3372 inputDesc->mDevice,
3630 void AudioPolicyManager::addInput(audio_io_handle_t input, sp<AudioInputDescriptor> inputDesc)
3632 inputDesc->setIoHandle(input);
3633 mInputs.add(input, inputDesc);
4118 sp<AudioInputDescriptor> inputDesc = mInputs.valueFor(input);
4119 if (inputDesc == NULL) {
4126 ssize_t index = mAudioPatches.indexOfKey(inputDesc->getPatchHandle());
4367 sp<AudioInputDescriptor> inputDesc = mInputs.valueFor(input);
4369 ssize_t index = mAudioPatches.indexOfKey(inputDesc->getPatchHandle());
4374 inputDesc->mDevice, inputDesc->getPatchHandle());
4375 return inputDesc->mDevice;
4379 audio_devices_t device = getDeviceAndMixForInputSource(inputDesc->inputSource());
4793 sp<AudioInputDescriptor> inputDesc = mInputs.valueFor(input);
4794 if ((device != AUDIO_DEVICE_NONE) && ((device != inputDesc->mDevice) || force)) {
4795 inputDesc->mDevice = device;
4800 inputDesc->toAudioPortConfig(&patch.sinks[0]);
4804 !inputDesc->isSoundTrigger()) {
4815 index = mAudioPatches.indexOfKey(inputDesc->getPatchHandle());
4840 inputDesc->setPatchHandle(patchDesc->mHandle);
4852 sp<AudioInputDescriptor> inputDesc = mInputs.valueFor(input);
4857 index = mAudioPatches.indexOfKey(inputDesc->getPatchHandle());
4865 inputDesc->setPatchHandle(AUDIO_PATCH_HANDLE_NONE);