diff options
author | Eric Laurent <elaurent@google.com> | 2009-10-21 08:14:22 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2009-10-21 12:29:37 -0700 |
commit | 415f3e2875b8b0b860d0dd6a69ff6868571c36bb (patch) | |
tree | 9ce2631d183fa93c398c4691bbb8dd9a220cb2af /media/libmedia/AudioSystem.cpp | |
parent | 6270d52c0dded8658733a392f3ef1f521bc5dbee (diff) | |
download | frameworks_base-415f3e2875b8b0b860d0dd6a69ff6868571c36bb.zip frameworks_base-415f3e2875b8b0b860d0dd6a69ff6868571c36bb.tar.gz frameworks_base-415f3e2875b8b0b860d0dd6a69ff6868571c36bb.tar.bz2 |
Fix issue 2192181: AudioFlinger must provide separated methods to set VOICE_CALL stream volume and down link audio volume.
Added setVoiceVolume() method to AudioSystem, AudioFlinger, IAudioFlinger, AudioPolicyService.
Removed call to AudioHardwareInterface::setVoiceVolume() from AudioFlinger::setStreamVolume().
Diffstat (limited to 'media/libmedia/AudioSystem.cpp')
-rw-r--r-- | media/libmedia/AudioSystem.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/media/libmedia/AudioSystem.cpp b/media/libmedia/AudioSystem.cpp index bd1b2d7..5352234 100644 --- a/media/libmedia/AudioSystem.cpp +++ b/media/libmedia/AudioSystem.cpp @@ -335,6 +335,13 @@ status_t AudioSystem::getInputBufferSize(uint32_t sampleRate, int format, int ch return NO_ERROR; } +status_t AudioSystem::setVoiceVolume(float value) +{ + const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger(); + if (af == 0) return PERMISSION_DENIED; + return af->setVoiceVolume(value); +} + // --------------------------------------------------------------------------- void AudioSystem::AudioFlingerClient::binderDied(const wp<IBinder>& who) { |