OSDN Git Service

audio policy: fix delayed command insertion
authorEric Laurent <elaurent@google.com>
Tue, 3 Jul 2012 19:23:02 +0000 (12:23 -0700)
committerEric Laurent <elaurent@google.com>
Mon, 9 Jul 2012 20:55:08 +0000 (13:55 -0700)
commitcec4abb2a39eafa75cf6894170a200322aa7226e
tree12acac661f194a4b56553c25abf7cc3c73f43281
parent2c75ef40330522fb50bbd7a0aa105573355b323c
audio policy: fix delayed command insertion

When inserting a delayed command in the audio policy service
command thread queue, later similar commands are filtered out.
In case of volume commands and delayed unmuting, this can cause
a problem where a new volume command can cause the timing of a
delayed unmuting command to not be honored.

This change makes that a volume command gets the time stamp of
any delayed command it replaces.

Bug 6720482.

Change-Id: I216f85ac0ea46e4a046d3483e9e9b7ffe6c34a08
services/audioflinger/AudioPolicyService.cpp