OSDN Git Service

audio policy: update output delayMs in setPhoneState
authorSathishKumar Mani <smani@codeaurora.org>
Thu, 11 Oct 2012 01:58:40 +0000 (18:58 -0700)
committerIliyan Malchev <malchev@google.com>
Wed, 17 Oct 2012 17:20:37 +0000 (10:20 -0700)
commit772686310a3bc44d93591349e174a60360a3d30d
tree22d35af114cd9f631b81da800605e1f94497fd03
parentaac673172cd61cd862228a8d41a8f3e7d1e016fd
audio policy: update output delayMs in setPhoneState

- Issue: When call is connected in HDMI while playing music,
  Playback is routed to phone shortly
- Cause: delayMs is not updated correctly, and no delay is
  set when setOutputDevice is called
- Fix: update delayMs with biggest mOutput latency and mute
  STRATEGY_MEDIA on all outputs

Bug: 7268860
Change-Id: I12b75443a29ab8485314bd0cbfe5ee4789be5c29
Signed-off-by: Iliyan Malchev <malchev@google.com>
audio/AudioPolicyManagerBase.cpp