diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2012-09-17 13:40:35 -0700 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2012-09-18 12:21:14 -0700 |
commit | 6d3a115c091adc1618b3d1e50a86951c3b35fa30 (patch) | |
tree | e12f5347213bca05a08344a53c60c30bff5316c2 /include/hardware_legacy/AudioPolicyManagerBase.h | |
parent | ed8f62d4faa53bbd53a358c5f494b653a09285e4 (diff) | |
download | hardware_libhardware_legacy-6d3a115c091adc1618b3d1e50a86951c3b35fa30.zip hardware_libhardware_legacy-6d3a115c091adc1618b3d1e50a86951c3b35fa30.tar.gz hardware_libhardware_legacy-6d3a115c091adc1618b3d1e50a86951c3b35fa30.tar.bz2 |
Support audio recording while remote submix is active
When evaluating if an audio record is active, do not count inputs
opened on "virtual" devices, such as remote submix, as active.
Change-Id: If19c321cf673e3bdf4c3f81e73c163190df7c21e
Diffstat (limited to 'include/hardware_legacy/AudioPolicyManagerBase.h')
-rw-r--r-- | include/hardware_legacy/AudioPolicyManagerBase.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/hardware_legacy/AudioPolicyManagerBase.h b/include/hardware_legacy/AudioPolicyManagerBase.h index 07e52f7..f110c20 100644 --- a/include/hardware_legacy/AudioPolicyManagerBase.h +++ b/include/hardware_legacy/AudioPolicyManagerBase.h @@ -345,7 +345,9 @@ protected: virtual audio_devices_t getDeviceForInputSource(int inputSource); // return io handle of active input or 0 if no input is active - audio_io_handle_t getActiveInput(); + // Only considers inputs from physical devices (e.g. main mic, headset mic) when + // ignoreVirtualInputs is true. + audio_io_handle_t getActiveInput(bool ignoreVirtualInputs = true); // initialize volume curves for each strategy and device category void initializeVolumeCurves(); @@ -559,6 +561,7 @@ private: // updates device caching and output for streams that can influence the // routing of notifications void handleNotificationRoutingForStream(AudioSystem::stream_type stream); + static bool isVirtualInputDevice(audio_devices_t device); }; }; |