• Home
  • Raw
  • Download

Lines Matching refs:inputDesc

1380     sp<AudioInputDescriptor> inputDesc = new AudioInputDescriptor(profile);  in getInput()  local
1381 inputDesc->mInputSource = inputSource; in getInput()
1382 inputDesc->mRefCount = 0; in getInput()
1383 inputDesc->mOpenRefCount = 1; in getInput()
1384 inputDesc->mSamplingRate = samplingRate; in getInput()
1385 inputDesc->mFormat = format; in getInput()
1386 inputDesc->mChannelMask = channelMask; in getInput()
1387 inputDesc->mDevice = device; in getInput()
1388 inputDesc->mSessions.add(session); in getInput()
1389 inputDesc->mIsSoundTrigger = isSoundTrigger; in getInput()
1391 addInput(input, inputDesc); in getInput()
1405 sp<AudioInputDescriptor> inputDesc = mInputs.valueAt(index); in startInput() local
1407 index = inputDesc->mSessions.indexOf(session); in startInput()
1414 if (!isVirtualInputDevice(inputDesc->mDevice)) { in startInput()
1434 if (inputDesc->mRefCount == 0) { in startInput()
1442 if (audio_is_remote_submix_device(inputDesc->mDevice)) { in startInput()
1448 ALOGV("AudioPolicyManager::startInput() input source = %d", inputDesc->mInputSource); in startInput()
1450 inputDesc->mRefCount++; in startInput()
1463 sp<AudioInputDescriptor> inputDesc = mInputs.valueAt(index); in stopInput() local
1465 index = inputDesc->mSessions.indexOf(session); in stopInput()
1471 if (inputDesc->mRefCount == 0) { in stopInput()
1476 inputDesc->mRefCount--; in stopInput()
1477 if (inputDesc->mRefCount == 0) { in stopInput()
1480 if (audio_is_remote_submix_device(inputDesc->mDevice)) { in stopInput()
1503 sp<AudioInputDescriptor> inputDesc = mInputs.valueAt(index); in releaseInput() local
1504 ALOG_ASSERT(inputDesc != 0); in releaseInput()
1506 index = inputDesc->mSessions.indexOf(session); in releaseInput()
1511 inputDesc->mSessions.remove(session); in releaseInput()
1512 if (inputDesc->mOpenRefCount == 0) { in releaseInput()
1513 ALOGW("releaseInput() invalid open ref count %d", inputDesc->mOpenRefCount); in releaseInput()
1516 inputDesc->mOpenRefCount--; in releaseInput()
1517 if (inputDesc->mOpenRefCount > 0) { in releaseInput()
1531 sp<AudioInputDescriptor> inputDesc = mInputs.valueAt(input_index); in closeAllInputs() local
1532 ssize_t patch_index = mAudioPatches.indexOfKey(inputDesc->mPatchHandle); in closeAllInputs()
2081 sp<AudioInputDescriptor> inputDesc = NULL; in getInputFromId() local
2083 inputDesc = mInputs.valueAt(i); in getInputFromId()
2084 if (inputDesc->mId == id) { in getInputFromId()
2088 return inputDesc; in getInputFromId()
2275 sp<AudioInputDescriptor> inputDesc = getInputFromId(patch->sinks[0].id); in createAudioPatch() local
2276 if (inputDesc == NULL) { in createAudioPatch()
2290 if (!inputDesc->mProfile->isCompatibleProfile(devDesc->mDeviceType, in createAudioPatch()
2303 devDesc->mDeviceType, inputDesc->mIoHandle); in createAudioPatch()
2304 setInputDevice(inputDesc->mIoHandle, devDesc->mDeviceType, true, handle); in createAudioPatch()
2442 sp<AudioInputDescriptor> inputDesc = getInputFromId(patch->sinks[0].id); in releaseAudioPatch() local
2443 if (inputDesc == NULL) { in releaseAudioPatch()
2447 setInputDevice(inputDesc->mIoHandle, in releaseAudioPatch()
2448 getNewInputDevice(inputDesc->mIoHandle), in releaseAudioPatch()
2523 sp<AudioInputDescriptor> inputDesc = getInputFromId(config->id); in setAudioPortConfig() local
2524 if (inputDesc == NULL) { in setAudioPortConfig()
2527 audioPortConfig = inputDesc; in setAudioPortConfig()
2785 sp<AudioInputDescriptor> inputDesc = new AudioInputDescriptor(inProfile); in AudioPolicyManager() local
2787 inputDesc->mInputSource = AUDIO_SOURCE_MIC; in AudioPolicyManager()
2788 inputDesc->mDevice = profileType; in AudioPolicyManager()
2791 config.sample_rate = inputDesc->mSamplingRate; in AudioPolicyManager()
2792 config.channel_mask = inputDesc->mChannelMask; in AudioPolicyManager()
2793 config.format = inputDesc->mFormat; in AudioPolicyManager()
2798 &inputDesc->mDevice, in AudioPolicyManager()
2817 inputDesc->mDevice, in AudioPolicyManager()
3063 void AudioPolicyManager::addInput(audio_io_handle_t input, sp<AudioInputDescriptor> inputDesc) in addInput() argument
3065 inputDesc->mIoHandle = input; in addInput()
3066 inputDesc->mId = nextUniqueId(); in addInput()
3067 mInputs.add(input, inputDesc); in addInput()
3620 sp<AudioInputDescriptor> inputDesc = mInputs.valueFor(input); in closeInput() local
3621 if (inputDesc == NULL) { in closeInput()
3628 ssize_t index = mAudioPatches.indexOfKey(inputDesc->mPatchHandle); in closeInput()
3843 sp<AudioInputDescriptor> inputDesc = mInputs.valueFor(input); in getNewInputDevice() local
3845 ssize_t index = mAudioPatches.indexOfKey(inputDesc->mPatchHandle); in getNewInputDevice()
3850 inputDesc->mDevice, inputDesc->mPatchHandle); in getNewInputDevice()
3851 return inputDesc->mDevice; in getNewInputDevice()
3855 audio_devices_t device = getDeviceForInputSource(inputDesc->mInputSource); in getNewInputDevice()
4467 sp<AudioInputDescriptor> inputDesc = mInputs.valueFor(input); in setInputDevice() local
4468 if ((device != AUDIO_DEVICE_NONE) && ((device != inputDesc->mDevice) || force)) { in setInputDevice()
4469 inputDesc->mDevice = device; in setInputDevice()
4474 inputDesc->toAudioPortConfig(&patch.sinks[0]); in setInputDevice()
4478 !inputDesc->mIsSoundTrigger) { in setInputDevice()
4489 index = mAudioPatches.indexOfKey(inputDesc->mPatchHandle); in setInputDevice()
4516 inputDesc->mPatchHandle = patchDesc->mHandle; in setInputDevice()
4528 sp<AudioInputDescriptor> inputDesc = mInputs.valueFor(input); in resetInputDevice() local
4533 index = mAudioPatches.indexOfKey(inputDesc->mPatchHandle); in resetInputDevice()
4541 inputDesc->mPatchHandle = 0; in resetInputDevice()