diff options
author | Hsin-Yu Chao <hychao@chromium.org> | 2014-09-01 11:27:00 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-12-05 04:34:21 +0000 |
commit | 40c45701d14087b01a12f151d3a62cd25a9efb9e (patch) | |
tree | 47c6d4fcd0d8977c0080df436fecc3706b3c2844 /cras/src/server/cras_bt_device.h | |
parent | e11c2c6c77d374112717b3f22e6f64cdbf26e7ce (diff) | |
download | adhd-40c45701d14087b01a12f151d3a62cd25a9efb9e.tar.gz |
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>
Diffstat (limited to 'cras/src/server/cras_bt_device.h')
-rw-r--r-- | cras/src/server/cras_bt_device.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/cras/src/server/cras_bt_device.h b/cras/src/server/cras_bt_device.h index b013fbe4..5fc626e3 100644 --- a/cras/src/server/cras_bt_device.h +++ b/cras/src/server/cras_bt_device.h @@ -12,12 +12,14 @@ struct cras_bt_adapter; struct cras_bt_device; enum cras_bt_device_profile { - CRAS_BT_DEVICE_PROFILE_HEADSET = (1 << 0), - CRAS_BT_DEVICE_PROFILE_HEADSET_GATEWAY = (1 << 1), - CRAS_BT_DEVICE_PROFILE_A2DP_SOURCE = (1 << 2), - CRAS_BT_DEVICE_PROFILE_A2DP_SINK = (1 << 3), - CRAS_BT_DEVICE_PROFILE_AVRCP_REMOTE = (1 << 4), - CRAS_BT_DEVICE_PROFILE_AVRCP_TARGET = (1 << 5) + CRAS_BT_DEVICE_PROFILE_A2DP_SOURCE = (1 << 0), + CRAS_BT_DEVICE_PROFILE_A2DP_SINK = (1 << 1), + CRAS_BT_DEVICE_PROFILE_AVRCP_REMOTE = (1 << 2), + CRAS_BT_DEVICE_PROFILE_AVRCP_TARGET = (1 << 3), + CRAS_BT_DEVICE_PROFILE_HFP_HANDSFREE = (1 << 4), + CRAS_BT_DEVICE_PROFILE_HFP_AUDIOGATEWAY = (1 << 5), + CRAS_BT_DEVICE_PROFILE_HSP_HEADSET = (1 << 6), + CRAS_BT_DEVICE_PROFILE_HSP_AUDIOGATEWAY = (1 << 7) }; enum cras_bt_device_profile cras_bt_device_profile_from_uuid(const char *uuid); |