diff options
author | Hsin-Yu Chao <hychao@chromium.org> | 2014-11-27 15:44:28 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-12-16 20:30:17 +0000 |
commit | 583ddd2776fd9639e34fc138a692cd58dabd3306 (patch) | |
tree | 16e77d1d1f8f1227e63e92d7d53df7339a657cc4 /cras/src/server/cras_bt_device.h | |
parent | e02c0a29cd919867c024ae353010d537db7efa51 (diff) | |
download | adhd-583ddd2776fd9639e34fc138a692cd58dabd3306.tar.gz |
CRAS: bt_io - detect and switch profile
Implements the logic to detect the use scenario and auto switches
to the preferred profile.
BUG=chromium:432434
TEST=unittest
Change-Id: If687fdfcfa67a97021312406519bc09d1dab1c1e
Reviewed-on: https://chromium-review.googlesource.com/231872
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Hsinyu Chao <hychao@chromium.org>
Tested-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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cras/src/server/cras_bt_device.h b/cras/src/server/cras_bt_device.h index 804b9664..315316d6 100644 --- a/cras/src/server/cras_bt_device.h +++ b/cras/src/server/cras_bt_device.h @@ -101,4 +101,9 @@ int cras_bt_device_switch_profile_on_close(struct cras_bt_device *device, void cras_bt_device_start_monitor(); +/* Returns true if and only if device supports A2DP and the bt device + * is not opening for audio capture. + */ +int cras_bt_device_can_switch_to_a2dp(struct cras_bt_device *device); + #endif /* CRAS_BT_DEVICE_H_ */ |