• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/bt


Commit MetaInfo

Revisioneeb0c5f7368b2d21a3ab0ee2205177830710f610 (tree)
Time2016-10-03 22:02:00
AuthorZhao Wei Liew <zhaoweiliew@gmai...>
CommiterGerrit Code Review

Log Message

bt: Select H4 HCI driver when QC bluetooth prop is unset

This restores the default AOSP behaviour, which also happens
to be the behaviour we had in CM 13.

Change-Id: I5a23575467fa0f823f0d778b7cf127ad1565916e

Change Summary

Incremental Difference

--- a/hci/src/hci_hal.c
+++ b/hci/src/hci_hal.c
@@ -31,7 +31,8 @@ bt_soc_type soc_type;
3131 const hci_hal_t *hci_hal_get_interface() {
3232 soc_type = get_soc_type();
3333
34- if (soc_type == BT_SOC_ROME || soc_type == BT_SOC_CHEROKEE) {
34+ if (soc_type == BT_SOC_ROME || soc_type == BT_SOC_CHEROKEE
35+ || soc_type == BT_SOC_DEFAULT) {
3536 return hci_hal_h4_get_interface();
3637 } else {
3738 return hci_hal_mct_get_interface();
--- a/hci/src/hci_layer.c
+++ b/hci/src/hci_layer.c
@@ -103,7 +103,7 @@ typedef struct {
103103
104104 typedef enum {
105105 BT_SOC_DEFAULT = 0,
106- BT_SOC_SMD = BT_SOC_DEFAULT,
106+ BT_SOC_SMD,
107107 BT_SOC_AR3K,
108108 BT_SOC_ROME,
109109 BT_SOC_CHEROKEE,
--- a/utils/include/bt_utils.h
+++ b/utils/include/bt_utils.h
@@ -53,7 +53,7 @@ typedef enum {
5353
5454 typedef enum {
5555 BT_SOC_DEFAULT = 0,
56- BT_SOC_SMD = BT_SOC_DEFAULT,
56+ BT_SOC_SMD,
5757 BT_SOC_AR3K,
5858 BT_SOC_ROME,
5959 BT_SOC_CHEROKEE,