Lines Matching refs:inputDesc

1972     sp<AudioInputDescriptor> inputDesc;  in getInputForAttr()  local
2000 sp<AudioInputDescriptor> inputDesc = mInputs.valueAt(index); in getInputForAttr() local
2001 RecordClientVector clients = inputDesc->getClientsForSession(session); in getInputForAttr()
2029 device = inputDesc->getDevice(); in getInputForAttr()
2110 inputDesc = mInputs.valueFor(*input); in getInputForAttr()
2111 inputDesc->addClient(clientDesc); in getInputForAttr()
2221 sp<AudioInputDescriptor> inputDesc = new AudioInputDescriptor(profile, mpClientInterface); in getInputForDevice() local
2228 status_t status = inputDesc->open(&lConfig, device, halInputSource, profileFlags, &input); in getInputForDevice()
2239 inputDesc->close(); in getInputForDevice()
2244 inputDesc->mPolicyMix = policyMix; in getInputForDevice()
2246 addInput(input, inputDesc); in getInputForDevice()
2256 sp<AudioInputDescriptor> inputDesc = mInputs.getInputForClient(portId); in startInput() local
2257 if (inputDesc == 0) { in startInput()
2261 audio_io_handle_t input = inputDesc->mIoHandle; in startInput()
2262 sp<RecordClientDescriptor> client = inputDesc->getClient(portId); in startInput()
2274 status_t status = inputDesc->start(); in startInput()
2281 inputDesc->setClientActive(client, true); in startInput()
2285 sp<DeviceDescriptor> device = getNewInputDevice(inputDesc); in startInput()
2290 __FUNCTION__, inputDesc->getId()); in startInput()
2294 if (status == NO_ERROR && inputDesc->activeCount() == 1) { in startInput()
2295 sp<AudioPolicyMix> policyMix = inputDesc->mPolicyMix.promote(); in startInput()
2312 if (audio_is_remote_submix_device(inputDesc->getDeviceType())) { in startInput()
2327 inputDesc->setClientActive(client, false); in startInput()
2328 inputDesc->stop(); in startInput()
2341 sp<AudioInputDescriptor> inputDesc = mInputs.getInputForClient(portId); in stopInput() local
2342 if (inputDesc == 0) { in stopInput()
2346 audio_io_handle_t input = inputDesc->mIoHandle; in stopInput()
2347 sp<RecordClientDescriptor> client = inputDesc->getClient(portId); in stopInput()
2353 inputDesc->setClientActive(client, false); in stopInput()
2355 inputDesc->stop(); in stopInput()
2356 if (inputDesc->isActive()) { in stopInput()
2357 setInputDevice(input, getNewInputDevice(inputDesc), false /* force */); in stopInput()
2359 sp<AudioPolicyMix> policyMix = inputDesc->mPolicyMix.promote(); in stopInput()
2369 if (audio_is_remote_submix_device(inputDesc->getDeviceType())) { in stopInput()
2387 if (primaryInputDevices.contains(inputDesc->getDevice()) && in stopInput()
2391 inputDesc->clearPreemptedSessions(); in stopInput()
2400 sp<AudioInputDescriptor> inputDesc = mInputs.getInputForClient(portId); in releaseInput() local
2401 if (inputDesc == 0) { in releaseInput()
2405 sp<RecordClientDescriptor> client = inputDesc->getClient(portId); in releaseInput()
2406 audio_io_handle_t input = inputDesc->mIoHandle; in releaseInput()
2410 inputDesc->removeClient(portId); in releaseInput()
2412 if (inputDesc->getClientCount() > 0) { in releaseInput()
2413 ALOGV("%s(%d) %zu clients remaining", __func__, portId, inputDesc->getClientCount()); in releaseInput()
3607 sp<AudioInputDescriptor> inputDesc = mInputs.getInputFromId(patch->sinks[0].id); in createAudioPatchInternal() local
3608 if (inputDesc == NULL) { in createAudioPatchInternal()
3622 if (!inputDesc->mProfile->isCompatibleProfile(DeviceVector(device), in createAudioPatchInternal()
3637 device->toString().c_str(), inputDesc->mIoHandle); in createAudioPatchInternal()
3638 setInputDevice(inputDesc->mIoHandle, device, true, handle); in createAudioPatchInternal()
3811 sp<AudioInputDescriptor> inputDesc = mInputs.getInputFromId(patch->sinks[0].id); in releaseAudioPatchInternal() local
3812 if (inputDesc == NULL) { in releaseAudioPatchInternal()
3816 setInputDevice(inputDesc->mIoHandle, in releaseAudioPatchInternal()
3817 getNewInputDevice(inputDesc), in releaseAudioPatchInternal()
3893 sp<AudioInputDescriptor> inputDesc = mInputs.getInputFromId(config->id); in setAudioPortConfig() local
3894 if (inputDesc == NULL) { in setAudioPortConfig()
3897 audioPortConfig = inputDesc; in setAudioPortConfig()
4004 sp<AudioInputDescriptor> inputDesc = mInputs.valueAt(i); in clearSessionRoutes() local
4005 for (const auto& client : inputDesc->getClientIterable()) { in clearSessionRoutes()
4015 sp<AudioInputDescriptor> inputDesc = mInputs.valueAt(i); in clearSessionRoutes() local
4016 if (affectedSources.indexOf(inputDesc->source()) >= 0) { in clearSessionRoutes()
4017 inputsToClose.add(inputDesc->mIoHandle); in clearSessionRoutes()
4698 sp<AudioInputDescriptor> inputDesc = in onNewAudioModulesAvailableInt() local
4702 status_t status = inputDesc->open(nullptr, in onNewAudioModulesAvailableInt()
4723 inputDesc->close(); in onNewAudioModulesAvailableInt()
4745 const sp<AudioInputDescriptor>& inputDesc) in addInput() argument
4747 mInputs.add(input, inputDesc); in addInput()
5163 sp<AudioInputDescriptor> inputDesc = mInputs.valueFor(input); in closeInput() local
5164 if (inputDesc == NULL) { in closeInput()
5171 sp<DeviceDescriptor> device = inputDesc->getDevice(); in closeInput()
5172 ssize_t index = mAudioPatches.indexOfKey(inputDesc->getPatchHandle()); in closeInput()
5181 inputDesc->close(); in closeInput()
5486 const sp<AudioInputDescriptor>& inputDesc) in getNewInputDevice() argument
5490 ssize_t index = mAudioPatches.indexOfKey(inputDesc->getPatchHandle()); in getNewInputDevice()
5495 inputDesc->getDevice()->toString().c_str(), inputDesc->getPatchHandle()); in getNewInputDevice()
5496 return inputDesc->getDevice(); in getNewInputDevice()
5503 device = findPreferredDevice(inputDesc, AUDIO_SOURCE_DEFAULT, active, mAvailableInputDevices); in getNewInputDevice()
5510 audio_attributes_t attributes = inputDesc->getHighestPriorityAttributes(); in getNewInputDevice()
5866 sp<AudioInputDescriptor> inputDesc = mInputs.valueFor(input); in setInputDevice() local
5867 if ((device != nullptr) && ((device != inputDesc->getDevice()) || force)) { in setInputDevice()
5868 inputDesc->setDevice(device); in setInputDevice()
5872 patchBuilder.addSink(inputDesc, in setInputDevice()
5875 [inputDesc](const PatchBuilder::mix_usecase_t& usecase) { in setInputDevice()
5877 if (result.source == AUDIO_SOURCE_HOTWORD && !inputDesc->isSoundTrigger()) { in setInputDevice()
5883 status = installPatch(__func__, patchHandle, inputDesc.get(), patchBuilder.patch(), 0); in setInputDevice()
5892 sp<AudioInputDescriptor> inputDesc = mInputs.valueFor(input); in resetInputDevice() local
5897 index = mAudioPatches.indexOfKey(inputDesc->getPatchHandle()); in resetInputDevice()
5905 inputDesc->setPatchHandle(AUDIO_PATCH_HANDLE_NONE); in resetInputDevice()