summaryrefslogtreecommitdiff
path: root/cras/src/server/cras_bt_device.h
diff options
context:
space:
mode:
authorHsin-Yu Chao <hychao@chromium.org>2016-08-30 16:00:47 +0800
committerchrome-bot <chrome-bot@chromium.org>2016-09-05 07:07:04 -0700
commit3b611c7f640f3ddc6ec1443958d4f0d9f805f10e (patch)
treec7527e2cb7560ec5c522ff5f322ba16a86e95008 /cras/src/server/cras_bt_device.h
parent86e3223766559de97cf81abe3cd91fd86905f075 (diff)
downloadadhd-3b611c7f640f3ddc6ec1443958d4f0d9f805f10e.tar.gz
CRAS: a2dp_endpoint - Rename and refactor start function
Rename the start function of bt_endpoing to set_configuration which aligns with the corresponding BlueZ dbus method. Also adds additional layer to notify bt_device about a2dp connection is configured, this will allow future commit to defer the actual starting of A2DP audio until all supported profiles are connected. BUG=chromium:543444 TEST=None Change-Id: I32ccc6c49fd903706a3a138dc95be7458daf2ca7 Reviewed-on: https://chromium-review.googlesource.com/377846 Commit-Ready: Hsinyu Chao <hychao@chromium.org> Tested-by: Hsinyu Chao <hychao@chromium.org> Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Diffstat (limited to 'cras/src/server/cras_bt_device.h')
-rw-r--r--cras/src/server/cras_bt_device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cras/src/server/cras_bt_device.h b/cras/src/server/cras_bt_device.h
index 9aec3235..374d006c 100644
--- a/cras/src/server/cras_bt_device.h
+++ b/cras/src/server/cras_bt_device.h
@@ -149,6 +149,9 @@ int cras_bt_device_can_switch_to_a2dp(struct cras_bt_device *device);
void cras_bt_device_update_hardware_volume(struct cras_bt_device *device,
int volume);
+/* Notifies bt_device that a2dp connection is configured. */
+void cras_bt_device_a2dp_configured(struct cras_bt_device *device);
+
/* Cancels any scheduled suspension of device. */
int cras_bt_device_cancel_suspend(struct cras_bt_device *device);