OSDN Git Service

audio policy: fix music glitch when starting call
authorEric Laurent <elaurent@google.com>
Mon, 25 Mar 2013 16:58:09 +0000 (09:58 -0700)
committerEric Laurent <elaurent@google.com>
Mon, 25 Mar 2013 23:58:39 +0000 (16:58 -0700)
commit80f5b0400f86d49e70aa1a793b34f34492f005bc
tree8c7a488658c600ea914b3b5da8f1227d206b28f8
parent58d6b9eb20a9805ea7cecff1df01259e8a2ce1d4
audio policy: fix music glitch when starting call

When answering a call in silent mode, music playing over A2DP
was not immediately muted by current audio policy manager logic.

The fix consists in muting media strategy on all output streams
immediately when entering in call.

Also add methods to AudioOutputDescriptor to report
recent global, per strategy and per stream activity.

Bug 8315512

Change-Id: I4a90eb05db50e4f22374d02b1e647e8662f6bec6
audio/AudioPolicyManagerBase.cpp
include/hardware_legacy/AudioPolicyManagerBase.h