Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable BT-HFP AX210 #2569

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

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