Reconcile with jb-release nakasi-factoryrom-release

Change-Id: I4d5083c87b3e9fc0bc5168dca5328db64ee5b936
am 01e6272f: audio policy: fix in call volume problem.

* commit '01e6272f0a3a7d1d53e826012377ff9269b03b06':
  audio policy: fix in call volume problem.
Reconcile with jb-release

Change-Id: Idddf82739bdf873cc163171dd5469f017f7d07a6
am 1afd84f6: audio policy: allow disabling A2DP for media.

* commit '1afd84f62291d20414cbf58c7af01462a8fdca60':
  audio policy: allow disabling A2DP for media.
Reconcile with jb-release

Change-Id: Ib51f8d004df9740327110e2dfd9a3be26cee5800
am 46604553: Ensure global effects are on the correct output

* commit '4660455366d2ee64cb65f0ecd6f7ddeb1c17bac6':
  Ensure global effects are on the correct output
am 3cdfddf1: audio policy: improve support for direct outputs

* commit '3cdfddf1b27bcb5408ca3a04fcdf206447ba07ba':
  audio policy: improve support for direct outputs
Reconcile with jb-release

Change-Id: Iee868b6fbd8dda16cb70e4ea22d5a49ee927f3ce
am fa3697d7: audio policy: remove delay when enabling speaker

* commit 'fa3697d716b444bbea6be480801536c44bf69214':
  audio policy: remove delay when enabling speaker
am 5568b826: Merge "audio policy: fix notification volume limitation" into jb-dev

* commit '5568b826b6b9b084f76b777db8b0411c7565e870':
  audio policy: fix notification volume limitation
am e3ce4e99: Merge "Increase system stream volume on speaker" into jb-dev

* commit 'e3ce4e99970bd2820f91345b769e6f57353e02f0':
  Increase system stream volume on speaker
Reconcile with jb-release

Change-Id: Ia53e5d26bd13718633bfe4931243ee2d9b1bdb6f
audio policy: fix volume upon A2DP connection

setForceUse() should not force new device selection on outputs
if the selected device is 0. If a device 0 (no device) selection
is forced on a duplicated output, this causes volumes to be reset to
their default on outputs the duplicated output is connected to.

Also force reapply volumes when a new output is created. It is safer and more
explicit than relying on the fact that the selected volume is different
from default volume and thus is actually sent to audioflinger.

Bug 6658021.

Change-Id: I0a14d5229847e001b0d44f60d41c241efdb9946a
am 4366b4a6: audio policy: fix volume upon A2DP connection

* commit '4366b4a6735e5da342b56773073f0b41197c777f':
  audio policy: fix volume upon A2DP connection
Reconcile with jb-release

Change-Id: I2c7b504ccf7c3d9f7d0b17824f228c1a9ed87a0d
Use audio_channel_mask_t consistently

Change-Id: I0a274ab9f30a9380bc00eae69988224721fea177
audio policy: fix HDMI hot plug

When an HDMI sink is connected it is possible that
a direct output is made available for multichannel audio.
In this case, the list of outputs available to reach the HDMI device
after the connection is different from before. checkOutputForStrategy()
must take this into account in order to invalidate tracks so that
they can be re connected to the multi channel output if necessary.

Change-Id: Id0baeb51688eba8017fe96bf92aaac52eb8e0f59
Merge "Use audio_channel_mask_t consistently"
effect_descriptor_t const correctness

Change-Id: I734155d4cebb22b180f25290332c7c48be1e2b36
Remove unused member variables in AudioPolicyManagerBase

The fields for the lists of input and output IOProfile are
 not used in the AudioPolicyManagerBase class. Those are
 actually stored inside each HwModule instance.

Change-Id: Iebb9fa5b7599a74013fd785a87de692890a89758