diff options
author | Eric Laurent <elaurent@google.com> | 2010-02-23 10:56:00 -0800 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2010-02-23 10:56:00 -0800 |
commit | 195368626339aefc4732661d009e8de1aacc24d1 (patch) | |
tree | f3c0f2f070e88180ec676e070a15e60fd0a1712b | |
parent | 2209b6f905cf09fcf26fea2de2348db20d9c2a5c (diff) | |
download | platform_hardware_libhardware_legacy-195368626339aefc4732661d009e8de1aacc24d1.tar.gz platform_hardware_libhardware_legacy-195368626339aefc4732661d009e8de1aacc24d1.tar.bz2 platform_hardware_libhardware_legacy-195368626339aefc4732661d009e8de1aacc24d1.zip |
Fix issue 2305382: Pick up original call makes a noisy beep when wired headset connected.
The noise is the residual ring tone that is still playing while the call is answered and the
audio route changed to headset or earpiece.
The fix consists in muting the ringing tone when changing mode from ringtone to in call
and delaying the route change until the audio buffers are emptied.
-rw-r--r-- | include/hardware_legacy/AudioPolicyManagerBase.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hardware_legacy/AudioPolicyManagerBase.h b/include/hardware_legacy/AudioPolicyManagerBase.h index de32926..58940b2 100644 --- a/include/hardware_legacy/AudioPolicyManagerBase.h +++ b/include/hardware_legacy/AudioPolicyManagerBase.h @@ -35,6 +35,9 @@ namespace android { // Time in seconds during which we consider that music is still active after a music // track was stopped - see computeVolume() #define SONIFICATION_HEADSET_MUSIC_DELAY 5 +// Time in milliseconds during witch some streams are muted while the audio path +// is switched +#define MUTE_TIME_MS 2000 #define NUM_TEST_OUTPUTS 5 |