diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2010-11-09 14:06:52 -0800 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2010-11-12 14:35:52 -0800 |
commit | 1a22bdb01ac4068c2876fe2d02f3c4c729669a1c (patch) | |
tree | c1b2427e4edc1aa1e06fbc03e8c7360d4955471d /services/audioflinger | |
parent | 62e2fa24cd6ec81ce301d1f3005b6153b8ce9743 (diff) | |
download | frameworks_base-1a22bdb01ac4068c2876fe2d02f3c4c729669a1c.zip frameworks_base-1a22bdb01ac4068c2876fe2d02f3c4c729669a1c.tar.gz frameworks_base-1a22bdb01ac4068c2876fe2d02f3c4c729669a1c.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/audioflinger')
-rw-r--r-- | services/audioflinger/AudioPolicyManagerBase.cpp | 6 |
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()); |