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
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
Restore the ability to use ctrl_interface directory

lihardware_legacy was ALWAYS re-writing the
wpa_supplicant.conf file's "ctrl_interface" entry to the
value specified as the property wifi.interface, whose value
was typically "wlan0".  This was designed to allow the
wpa_supplicant service to be started with a "socket"
directive in its service description in an init.rc file.
Under these circumstances, the socket name is exchanged
between wpa_supplicant and its WifiService client through an
environment variable whose name is derived from
wifi.interface and a standard prefix.

However, since the "ctrl_interface" entry was always
re-written in this way, it broke the ability to use
"ctrl_interface" in its standard usage as a directory where
the (unix-domain) socket will be exchanged.

This change restores the ability to use the standard
directory-form ctrl_interface usage by limiting the
re-writing of the ctrl_interface entry to cases where it
does not look like an absolute path or the "DIR=" form of
directory.

Change-Id: I96c8656d144c1ea41e25ab0eb0807f7b49193b49
Signed-off-by: Paul Drews <paul.drews@intel.com>
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>