Subject: [PATCH BlueZ 1/2] bap: Add bcast source support for MediaEndpoint Codec

MediaEndpoint property Codec returns 0 for the broadcast source endpoint

---
profiles/audio/bap.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 964ba9c21..3ab13a51e 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -277,7 +277,13 @@ static gboolean get_codec(const GDBusPropertyTable *property,
struct bap_ep *ep = data;
uint8_t codec;

- bt_bap_pac_get_codec(ep->rpac, &codec, NULL, NULL);
+ /* For broadcast source, rpac is null so the codec
+ * is retrieved from the lpac
+ */
+ if (ep->rpac == NULL)
+ bt_bap_pac_get_codec(ep->lpac, &codec, NULL, NULL);
+ else
+ bt_bap_pac_get_codec(ep->rpac, &codec, NULL, NULL);

dbus_message_iter_append_basic(iter, DBUS_TYPE_BYTE, &codec);

--
2.39.2



2024-03-20 17:05:43

by bluez.test.bot

[permalink] [raw]
Subject: RE: Allow endpoint config without local endpoint argument

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=836768

---Test result---

Test Summary:
CheckPatch PASS 1.05 seconds
GitLint PASS 0.69 seconds
BuildEll PASS 24.15 seconds
BluezMake PASS 1635.87 seconds
MakeCheck PASS 13.48 seconds
MakeDistcheck PASS 176.67 seconds
CheckValgrind PASS 247.02 seconds
CheckSmatch PASS 350.17 seconds
bluezmakeextell PASS 120.34 seconds
IncrementalBuild PASS 3014.45 seconds
ScanBuild PASS 990.72 seconds



---
Regards,
Linux Bluetooth