summaryrefslogtreecommitdiffstats
path: root/audio/AudioPolicyManagerBase.cpp
diff options
context:
space:
mode:
authorChong Zhang <chz@google.com>2013-08-24 16:44:47 -0700
committerChong Zhang <chz@google.com>2013-08-24 16:45:36 -0700
commitfe97ee4b99079fe4fed7151d3c7234a46900303c (patch)
tree3b8b21f7e9d4cca0359b635afddcb74684fe8af0 /audio/AudioPolicyManagerBase.cpp
parentb96b2839f464f93e30d256124034ec985f8a9702 (diff)
downloadhardware_libhardware_legacy-fe97ee4b99079fe4fed7151d3c7234a46900303c.zip
hardware_libhardware_legacy-fe97ee4b99079fe4fed7151d3c7234a46900303c.tar.gz
hardware_libhardware_legacy-fe97ee4b99079fe4fed7151d3c7234a46900303c.tar.bz2
audio policy: allow virtual input even if there are active inputs
Bug: 10460751 Change-Id: Ic6fcd14162e9c6e03366d887063321e21fcf14cd
Diffstat (limited to 'audio/AudioPolicyManagerBase.cpp')
-rw-r--r--audio/AudioPolicyManagerBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/AudioPolicyManagerBase.cpp b/audio/AudioPolicyManagerBase.cpp
index 01fb48f..fd8f623 100644
--- a/audio/AudioPolicyManagerBase.cpp
+++ b/audio/AudioPolicyManagerBase.cpp
@@ -959,7 +959,7 @@ status_t AudioPolicyManagerBase::startInput(audio_io_handle_t input)
#endif //AUDIO_POLICY_TEST
{
// refuse 2 active AudioRecord clients at the same time
- if (getActiveInput() != 0) {
+ if (!isVirtualInputDevice(inputDesc->mDevice) && getActiveInput(true) != 0) {
ALOGW("startInput() input %d failed: other input already started", input);
return INVALID_OPERATION;
}