Diff between 77e4c0976c0d342e45f0ad1b485efd7e60863e30 and 22779f0bce61cfd5cd72f4e2c199aaa385067248

Changed Files

File Additions Deletions Status
profiles/audio/bap.c +6 -0 modified

Full Patch

diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 79e9cc5..53f430d 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -57,6 +57,7 @@
 #include "src/error.h"
 
 #include "bap.h"
+#include "bass.h"
 
 #define ISO_SOCKET_UUID "6fbaf188-05e0-496a-9885-d6ddfdb4e03e"
 #define PACS_UUID_STR "00001850-0000-1000-8000-00805f9b34fb"
@@ -1199,6 +1200,9 @@ static bool parse_base(struct bap_data *bap_data, struct bt_iso_base *base,
 				continue;
 			}
 
+			bass_add_stream(bap_data->device, meta, merged_caps,
+						qos, idx, bis_index);
+
 			/* Check if this BIS matches any local PAC */
 			bt_bap_verify_bis(bap_data->bap, bis_index,
 					merged_caps, &matched_lpac);
@@ -3227,6 +3231,8 @@ static void bap_bcast_remove(struct btd_service *service)
 	free(req);
 
 	bap_data_remove(data);
+
+	bass_remove_stream(device);
 }
 
 static int bap_probe(struct btd_service *service)