frameworks/av
修订版 | cee606de904204e96447ae9010ab40bb151bf3bf (tree) |
---|---|
时间 | 2019-07-18 13:11:27 |
作者 | android-build-team Robot <android-build-team-robot@goog...> |
Commiter | android-build-team Robot |
Merge cherrypicks of [8681848, 8682094, 8682365, 8682497, 8682498, 8682518, 8682519, 8681849, 8681887, 8681888, 8682539, 8682540, 8682541, 8681283, 8682521] into qt-release
Change-Id: Ic6e5a0ed8a340bb3d3b13e353acf5edbebea8306
@@ -2396,7 +2396,8 @@ void AudioPolicyManager::checkCloseInputs() { | ||
2396 | 2396 | for (size_t i = 0; i < mInputs.size(); i++) { |
2397 | 2397 | const sp<AudioInputDescriptor> input = mInputs.valueAt(i); |
2398 | 2398 | if (input->clientsList().size() == 0 |
2399 | - || !mAvailableInputDevices.containsAtLeastOne(input->supportedDevices())) { | |
2399 | + || !mAvailableInputDevices.containsAtLeastOne(input->supportedDevices()) | |
2400 | + || (input->getAudioPort()->getFlags() & AUDIO_INPUT_FLAG_MMAP_NOIRQ) != 0) { | |
2400 | 2401 | inputsToClose.push_back(mInputs.keyAt(i)); |
2401 | 2402 | } else { |
2402 | 2403 | bool close = false; |