OSDN Git Service

Revisit HDMI-CEC system audio mode in AudioService.
authorJungshik Jang <jayjang@google.com>
Tue, 15 Jul 2014 10:38:42 +0000 (19:38 +0900)
committerJungshik Jang <jayjang@google.com>
Thu, 17 Jul 2014 00:27:23 +0000 (09:27 +0900)
commit7b24ee381e806dcb53308c1cafc8a45f4e2d8300
tree47cb17d1d16a65915d71056c7f588c46b5d4eea7
parent5f881c631d3a8e2c0801cdfbbe465c355816f1e3
Revisit HDMI-CEC system audio mode in AudioService.

From recent feedback on HDMI-CEC system audio mode,
it would be unnecessary to enforce output from AudioService.
Instead, it would follow audio policy according to status
of HDMI-CEC system audio mode.
For that removed two params of setHdmiSystemAudioModeSupported
api of AudioManager.

In terms of speaker mute, it will be handled by removing speaker
from audio ouput instead of changing gain control. For that
added new force usage type, FOR_HDMI_SYSTEM_AUDIO_MODE and
new force config type, FORCE_HDMI_SYSTEM_AUDIO_ENFORCED.
This is used to notify change of system audio mode to
audio policy manager.

Bug: 16305986
Bug: 16002150
Change-Id: I702e0f9ce7c7887d5f5dd02b06a40d20e4c950df
services/audiopolicy/AudioPolicyManager.cpp