Skip to content

Instantly share code, notes, and snippets.

View Vudentz's full-sized avatar

Luiz Augusto von Dentz Vudentz

View GitHub Profile
> ACL Data RX: Handle 2048 flags 0x01 dlen 6 #309 [hci0] 158.044270
ATT: Read Blob Response (0x0d) len 55
Value[55]: 02000000000000160003000340000000000000000000000000000101020200160003000840010100020200000102020002000000000000
Handle: 0x001a Type: Preferred Audio Configurations (0x7fa4)
Value[119]: 0515000100036000000000000000000000000000040101021500010003400000000000000000000000000002020202160003000360020100020200000202020002000000000000160003000340000000000000000000000000000101020200160003000840010100020200000102020002000000000000
Number of Preferred Data Sets: 5 (0x05)
Length[0]: 21 (0x0015)
Preferred Data Present[0]: 1 (0x0001)
Audio Configuration (0x01)
usecase: Spatial Media with AV sync (0x6003)
diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c
index e8f70b06f98d..aa7bfe26cb40 100644
--- a/net/bluetooth/sco.c
+++ b/net/bluetooth/sco.c
@@ -319,11 +319,13 @@ static int sco_connect(struct sock *sk)
else
type = SCO_LINK;
- if ((sco_pi(sk)->setting == BT_VOICE_TRANSPARENT ||
- sco_pi(sk)->setting == BT_VOICE_TRANSPARENT_16BIT) &&
diff --git a/profiles/audio/sink.c b/profiles/audio/sink.c
index 77f195436032..7e02bcca1a01 100644
--- a/profiles/audio/sink.c
+++ b/profiles/audio/sink.c
@@ -110,6 +110,7 @@ static void avdtp_state_callback(struct btd_device *dev,
switch (new_state) {
case AVDTP_SESSION_STATE_DISCONNECTED:
sink_set_state(sink, SINK_STATE_DISCONNECTED);
+ btd_service_disconnecting_complete(sink->service, 0);
break;
diff --git a/obexd/plugins/pbap.c b/obexd/plugins/pbap.c
index 4175f9de814c..b529a2db6c7c 100644
--- a/obexd/plugins/pbap.c
+++ b/obexd/plugins/pbap.c
@@ -438,10 +438,6 @@ static struct apparam_field *parse_aparam(const uint8_t *buffer, uint32_t hlen)
GObexApparam *apparam;
struct apparam_field *param;
- apparam = g_obex_apparam_decode(buffer, hlen);
- if (apparam == NULL)
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 170
model name : Intel(R) Core(TM) Ultra 7 155H
stepping : 4
microcode : 0x1f
cpu MHz : 1443.951
cache size : 24576 KB
physical id : 0
diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c
index 40ccdef168d7..de6ab999890e 100644
--- a/net/bluetooth/hci_sync.c
+++ b/net/bluetooth/hci_sync.c
@@ -2411,8 +2411,9 @@ static int hci_le_add_accept_list_sync(struct hci_dev *hdev,
struct hci_cp_le_add_to_accept_list cp;
int err;
- /* During suspend, only wakeable devices can be in acceptlist */
+ /* During system-suspend, only wakeable devices can be in acceptlist */
bluetoothd[3991772]: profiles/audio/avrcp.c:avrcp_list_items_rsp() start 0 end 4294967295 items 3395 total 4294967296
bluetoothd[3991772]: profiles/audio/player.c:media_folder_create_item() Over the Horizon type audio uid 3396
bluetoothd[3991772]: profiles/audio/player.c:media_folder_create_item() /org/bluez/hci0/dev_80_39_8C_93_7C_E5/player5/NowPlaying/item3396
bluetoothd[3991772]: profiles/audio/player.c:media_player_set_metadata() Title: Over the Horizon
bluetoothd[3991772]: profiles/audio/player.c:media_player_set_metadata() Artist: Samsung
bluetoothd[3991772]: profiles/audio/player.c:media_player_set_metadata() Album: Brand Music 2023
bluetoothd[3991772]: profiles/audio/player.c:media_player_set_metadata() TrackNumber: 1
bluetoothd[3991772]: profiles/audio/player.c:media_player_set_metadata() Duration: 198560
bluetoothd[3991772]: profiles/audio/avrcp.c:avrcp_list_items_rsp() start 0 end 4294967295 items 3396 total 4294967296
bluetoothd[3991772]: profiles/audio/player.c:media_folder_create_item() Over the
@Vudentz
Vudentz / .diff
Created September 19, 2024 14:52
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 1c82dcdf6e8f..6f6547772ec8 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -3393,23 +3393,30 @@ static void hci_disconn_complete_evt(struct hci_dev *hdev, void *data,
hci_update_scan(hdev);
}
- params = hci_conn_params_lookup(hdev, &conn->dst, conn->dst_type);
- if (params) {
< ACL Data TX: Handle 2048 flags 0x00 dlen 75 #331 [hci0] 24.130629
ATT: Write Command (0x52) len 70
Handle: 0x4e02 Type: ASE Control Point (0x2bc6)
Data[68]: 010303010206000000000703e8000002e90004030206000000001002010602020003043c0005030200000001010206000000001002010802020003044b00050301000000
Opcode: Codec Configuration (0x01)
Number of ASE(s): 3
ASE: #0
ASE ID: 0x03
Target Latency: Low Latency (0x01)
PHY: 0x02
#Register LC3 Source capabilities
#Auto Accept (yes/no): y
#Max Transports (auto/value): a
#Locations: a
#Supported Context (value): 0
#Context (value): 0
#CIG (auto/value): 0
#CIS (auto/value): a
endpoint.register 00002bcb-0000-1000-8000-00805f9b34fb 0x06
y