OSDN Git Service

Fix issue 4604090: notification sound interrupted.
authorEric Laurent <elaurent@google.com>
Fri, 22 Jul 2011 16:04:31 +0000 (09:04 -0700)
committerEric Laurent <elaurent@google.com>
Tue, 26 Jul 2011 01:41:12 +0000 (18:41 -0700)
commitfeb0db689c17dced50afaee54c659f1676e2d505
treea949f6cb66c3c5886cd0682fcb3781b0fd5db0a8
parent288b66b60c9b3af3d84408885d0a4030c45eea9a
Fix issue 4604090: notification sound interrupted.

The problem is that the audio HAL fails to acquire the wake lock when playing the notification.
This is because of a change that removed the mediaserver process form the system group for honeycomb.

The fix consists in requesting the wake lock from PowerManagerService when AudioFlinger mixer
wakes up.

A consequence of this change is that audio HALs or pcm drivers do not have to hold wake locks
anymore as in the past.

Change-Id: I4fb3cc84816c9c408ab7fec75886baf801e1ecb5
services/audioflinger/Android.mk
services/audioflinger/AudioFlinger.cpp
services/audioflinger/AudioFlinger.h