OSDN Git Service

Fix issue 2305382: Pick up original call makes a noisy beep when wired headset connected.
authorEric Laurent <elaurent@google.com>
Tue, 23 Feb 2010 18:56:00 +0000 (10:56 -0800)
committerEric Laurent <elaurent@google.com>
Tue, 23 Feb 2010 18:56:00 +0000 (10:56 -0800)
commit195368626339aefc4732661d009e8de1aacc24d1
treef3c0f2f070e88180ec676e070a15e60fd0a1712b
parent2209b6f905cf09fcf26fea2de2348db20d9c2a5c
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.
include/hardware_legacy/AudioPolicyManagerBase.h