summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2010-11-09 14:06:52 -0800
committerJean-Michel Trivi <jmtrivi@google.com>2010-11-12 14:35:52 -0800
commit56ecd20263d7f63476f756fc5d8b043b325c7bfb (patch)
tree601ad5cd05a0cd81c1fb44bcb1914966f4401812 /services
parent54f5501a61bfc13930f9f8d08cbd71a69924d4cc (diff)
downloadframeworks_av-56ecd20263d7f63476f756fc5d8b043b325c7bfb.zip
frameworks_av-56ecd20263d7f63476f756fc5d8b043b325c7bfb.tar.gz
frameworks_av-56ecd20263d7f63476f756fc5d8b043b325c7bfb.tar.bz2
Add support for audio recording source in generic audio policy mgr.
Update the platform-independent audio policy manager to pass the nature of the audio recording source to the audio policy client interface through the AudioPolicyClientInterface::setParameters() method. Change-Id: I6b4fd0f8a3acea0d7d30bbad98edd1977dc012bf
Diffstat (limited to 'services')
-rw-r--r--services/audioflinger/AudioPolicyManagerBase.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/services/audioflinger/AudioPolicyManagerBase.cpp b/services/audioflinger/AudioPolicyManagerBase.cpp
index edea2c5..b17584a 100644
--- a/services/audioflinger/AudioPolicyManagerBase.cpp
+++ b/services/audioflinger/AudioPolicyManagerBase.cpp
@@ -760,10 +760,8 @@ status_t AudioPolicyManagerBase::startInput(audio_io_handle_t input)
AudioParameter param = AudioParameter();
param.addInt(String8(AudioParameter::keyRouting), (int)inputDesc->mDevice);
- // use Voice Recognition mode or not for this input based on input source
- int vr_enabled = inputDesc->mInputSource == AUDIO_SOURCE_VOICE_RECOGNITION ? 1 : 0;
- param.addInt(String8("vr_mode"), vr_enabled);
- LOGV("AudioPolicyManager::startInput(%d), setting vr_mode to %d", inputDesc->mInputSource, vr_enabled);
+ param.addInt(String8(AudioParameter::keyInputSource), (int)inputDesc->mInputSource);
+ LOGV("AudioPolicyManager::startInput() input source = %d", inputDesc->mInputSource);
mpClientInterface->setParameters(input, param.toString());