-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changes: - Add AX210 intel controller - Support only NB Tracked-On: OAM-123206 Signed-off-by: Chen, Haochuan <[email protected]>
- Loading branch information
1 parent
77e4c9e
commit 83cb260
Showing
2 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
aosp_diff/aaos_iasw/packages/modules/Bluetooth/0001-Disabling-WBS-in-the-BT-stack.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
From 1e6cc7f502b2a3bbc66fde040a2557053266e94b Mon Sep 17 00:00:00 2001 | ||
From: Gowtham Anandha Babu <[email protected]> | ||
Date: Thu, 27 Jun 2024 11:01:26 +0530 | ||
Subject: [PATCH] Disabling WBS in the BT stack. | ||
|
||
Workaround to support NB | ||
|
||
Tracked-On: OAM-121423 | ||
Signed-off-by: Deepa K G <[email protected]> | ||
Signed-off-by: Aiswarya Cyriac <[email protected]> | ||
Signed-off-by: Gowtham Anandha Babu <[email protected]> | ||
--- | ||
system/bta/hf_client/bta_hf_client_at.cc | 4 +++- | ||
1 file changed, 3 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/system/bta/hf_client/bta_hf_client_at.cc b/system/bta/hf_client/bta_hf_client_at.cc | ||
index da37a07cad..6d67a5e6cd 100644 | ||
--- a/system/bta/hf_client/bta_hf_client_at.cc | ||
+++ b/system/bta/hf_client/bta_hf_client_at.cc | ||
@@ -1782,7 +1782,9 @@ void bta_hf_client_send_at_bac(tBTA_HF_CLIENT_CB* client_cb) { | ||
|
||
APPL_TRACE_DEBUG("%s", __func__); | ||
|
||
- buf = "AT+BAC=1,2\r"; | ||
+ //Disable WBS and support only NB, as sco driver supports only NB. | ||
+ //buf = "AT+BAC=1,2\r"; | ||
+ buf = "AT+BAC=1\r"; | ||
|
||
bta_hf_client_send_at(client_cb, BTA_HF_CLIENT_AT_BAC, buf, strlen(buf)); | ||
} | ||
-- | ||
2.17.1 | ||
|
39 changes: 39 additions & 0 deletions
39
bsp_diff/aaos_iasw/vendor/intel/hardware/interfaces/0001-Add-BT-HFP-support-for-TyP2.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
From d702b3b574a65a8eeb0e6091f8a73ac7a3b97ae3 Mon Sep 17 00:00:00 2001 | ||
From: Gowtham Anandha Babu <[email protected]> | ||
Date: Wed, 6 Mar 2024 16:55:31 +0530 | ||
Subject: [PATCH] Add BT HFP support for TyP2 | ||
|
||
Send sco handle during BT HFP sco call for Intel Bluetooth AX210 | ||
bt card (TyphoonPeak - Typ2) | ||
|
||
Tracked-On: OAM-121421 | ||
Signed-off-by: Gowtham Anandha Babu <[email protected]> | ||
--- | ||
bluetooth/h4_protocol.cc | 4 +++- | ||
1 file changed, 3 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/bluetooth/h4_protocol.cc b/bluetooth/h4_protocol.cc | ||
index 1b29117..4463518 100644 | ||
--- a/bluetooth/h4_protocol.cc | ||
+++ b/bluetooth/h4_protocol.cc | ||
@@ -40,6 +40,7 @@ | ||
#define INTEL_PID_9560 0x0aaa // 9460/9560 also know as Jefferson Peak (JfP) | ||
#define INTEL_PID_AX201 0x0026 // AX201 also know as Harrison Peak (HrP) | ||
#define INTEL_PID_AX211 0x0033 // AX211 also know as GarfieldPeak (Gfp) | ||
+#define INTEL_PID_AX210 0x0032 // AX210 also know as TyphoonPeak (TyP2) | ||
|
||
#include <errno.h> | ||
#include <fcntl.h> | ||
@@ -88,7 +89,8 @@ bool H4Protocol::IsIntelController(uint16_t vid, uint16_t pid) { | ||
(pid == INTEL_PID_9260)|| | ||
(pid == INTEL_PID_9560)|| | ||
(pid == INTEL_PID_AX201)|| | ||
- (pid == INTEL_PID_AX211))) | ||
+ (pid == INTEL_PID_AX211)|| | ||
+ (pid == INTEL_PID_AX210))) | ||
return true; | ||
else | ||
return false; | ||
-- | ||
2.17.1 | ||
|