auron_paine: update audio volume curve

TEST=`emerge-auron_paine adhd` verify file is modified.
BUG=none
Signed-off-by: Pan Sheng-Liang <Sheng-Liang.Pan@quantatw.com>

Change-Id: I5b7c473449f4971d7dde539af6a95be3e00d668a
Reviewed-on: https://chromium-review.googlesource.com/233062
Reviewed-by: Yung Leem <yungleem@chromium.org>
Tested-by: Pan Sheng-Liang <Sheng-Liang.Pan@quantatw.com>
Commit-Queue: Pan Sheng-Liang <Sheng-Liang.Pan@quantatw.com>
CRAS: audio_thread - Don't remove device if it's not in list

This fixes a crash when adding a stream to new adev failed,
and CRAS tried to delete the not yet added dev from active
dev list.

BUG=None
TEST=Apply A2DP HFP switching patch series, verify no crash
when switch happens.

Change-Id: Ia6fa0bc2783f0231a10a48ec7916fd75004d0ca2
Reviewed-on: https://chromium-review.googlesource.com/232895
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Hsinyu Chao <hychao@chromium.org>
CRAS: bt_profile - Rename some variables

Adjust naming to better reflect what each path string
is representing.

BUG=None
TEST=None

Change-Id: I6949da5818e4d9efcf9aff31f3d6ecfd7bb39503
Reviewed-on: https://chromium-review.googlesource.com/231860
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Hsinyu Chao <hychao@chromium.org>
CRAS: bt_device - Name bluetooth constants by profile and role

In order to differentiate HSP and HFP devices, name profile and
uuid variables by profile name and role defined in specification.
HFP: handsfree, audio gateway
HSP: headset, audio gateway

BUG=None
TEST=None

Change-Id: I0947a7bd46143c85b91c15238a569ce15b3ac552
Reviewed-on: https://chromium-review.googlesource.com/231861
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Hsinyu Chao <hychao@chromium.org>
CRAS: hfp_iodev - Fill device readable name

BUG=None
TEST=Enable HFP, connect to a headset. cras_test_client --dump_s

Change-Id: I2608642550a10feba94c28d1f6a39852fb4bb2cd
Reviewed-on: https://chromium-review.googlesource.com/231862
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Hsinyu Chao <hychao@chromium.org>
CRAS: hfp_slc - Close rfcomm_fd in SLC destructor

This will allow us to not pass in a transport object
to hfp_iodev and slc.

BUG=chromium:432434
TEST=Manual enable HFP, test playback and capture.

Change-Id: I64a3ec419d1962c85061201fedbdb3ff70a523a3
Reviewed-on: https://chromium-review.googlesource.com/231863
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Hsinyu Chao <hychao@chromium.org>
CRAS: bt_profile - Use bt device to replace transport

The transport object carries information and is used in Bluez's
media API. We borrowed it for the cras_bt_profile module and
it turns out redundant in cases when we want to associate a profile
or HFP related objects with cras_bt_device.
This change refactors the code to better align with Bluez profile
API and will allow the device disconnected event be notified to bt
profiles in a clean way.

BUG=chromium:432434
TEST=Test A2DP playback. Manual enable HFP, test playback & capture.

Change-Id: I2fab0b32965227512ad841bd7df785cd1af4a2ab
Reviewed-on: https://chromium-review.googlesource.com/231864
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Hsinyu Chao <hychao@chromium.org>
CRAS: hfp_ag_profile - refactor to support multi HFP devs

Refactors hfp_ag profile to support the case that multiple
bluetooth headsets are connected.

BUG=chromium:432434
TEST=Manual enable HFP, connect two bluetooth headsets,
see both headsets appear in the audio devices UI.

Change-Id: I5459db72310a8e65eab2206fe4dabc0e46bc5351
Reviewed-on: https://chromium-review.googlesource.com/231865
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Hsinyu Chao <hychao@chromium.org>
CRAS: bt_device - Notify profiles when device disconnects

There's case when powering off a bluetooth headset where it doesn't
send RequestDisconnection method so CRAS could think an HFP device
is still connected. Solve this problem by monitoring the device
'connected' attribute change and notifying registerred profiles.

BUG=chromium:432434
TEST=Manual enable HFP, connect to BT headset and then powers off
the headset, see it disappear from audio devices UI.

Change-Id: I5d9cd4c05a08e78fd95746a2c199834264003f6c
Reviewed-on: https://chromium-review.googlesource.com/231866
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Hsinyu Chao <hychao@chromium.org>
CRAS: Remove unused stream reattach related code.

BUG=None
TEST=make && make test && test on peppy

Change-Id: Ib4d77e2ae2f1356fdb48ac7c73c9ea95ffa3d058
Reviewed-on: https://chromium-review.googlesource.com/233122
Reviewed-by: Chinyue Chen <chinyue@chromium.org>
Commit-Queue: Chinyue Chen <chinyue@chromium.org>
Tested-by: Chinyue Chen <chinyue@chromium.org>