Home | History | Annotate | Download | only in audio

Lines Matching defs:inputDesc

477         AudioInputDescriptor *inputDesc = mInputs.valueFor(activeInput);
478 audio_devices_t newDevice = getDeviceForInputSource(inputDesc->mInputSource);
479 if ((newDevice != AUDIO_DEVICE_NONE) && (newDevice != inputDesc->mDevice)) {
481 inputDesc->mDevice, newDevice, activeInput);
482 inputDesc->mDevice = newDevice;
957 AudioInputDescriptor *inputDesc = new AudioInputDescriptor(profile);
959 inputDesc->mInputSource = inputSource;
960 inputDesc->mDevice = device;
961 inputDesc->mSamplingRate = samplingRate;
962 inputDesc->mFormat = format;
963 inputDesc->mChannelMask = channelMask;
964 inputDesc->mRefCount = 0;
967 &inputDesc->mDevice,
968 &inputDesc->mSamplingRate,
969 &inputDesc->mFormat,
970 &inputDesc->mChannelMask);
974 (samplingRate != inputDesc->mSamplingRate) ||
975 (format != inputDesc->mFormat) ||
976 (channelMask != inputDesc->mChannelMask)) {
982 delete inputDesc;
985 addInput(input, inputDesc);
998 AudioInputDescriptor *inputDesc = mInputs.valueAt(index);
1007 if (!isVirtualInputDevice(inputDesc->mDevice) && activeInput != 0) {
1020 audio_devices_t newDevice = getDeviceForInputSource(inputDesc->mInputSource);
1021 if ((newDevice != AUDIO_DEVICE_NONE) && (newDevice != inputDesc->mDevice)) {
1022 inputDesc->mDevice = newDevice;
1026 if (audio_is_remote_submix_device(inputDesc->mDevice)) {
1032 param.addInt(String8(AudioParameter::keyRouting), (int)inputDesc->mDevice);
1034 int aliasSource = (inputDesc->mInputSource == AUDIO_SOURCE_HOTWORD) ?
1035 AUDIO_SOURCE_VOICE_RECOGNITION : inputDesc->mInputSource;
1038 ALOGV("AudioPolicyManager::startInput() input source = %d", inputDesc->mInputSource);
1042 inputDesc->mRefCount = 1;
1054 AudioInputDescriptor *inputDesc = mInputs.valueAt(index);
1056 if (inputDesc->mRefCount == 0) {
1061 if (audio_is_remote_submix_device(inputDesc->mDevice)) {
1069 inputDesc->mRefCount = 0;
1836 void AudioPolicyManagerBase::addInput(audio_io_handle_t id, AudioInputDescriptor *inputDesc)
1838 inputDesc->mId = id;
1839 mInputs.add(id, inputDesc);