Message ID | 20240327134947.40229-2-silviu.barbulescu@nxp.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 0ff7392af164e5c5453722bd4adb780190db33ea |
Headers | show |
Series | Fix MediaEndpoint prop codec for bcast src endpoint | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
tedd_an/CheckPatch | success | CheckPatch PASS |
tedd_an/GitLint | success | Gitlint PASS |
tedd_an/BuildEll | success | Build ELL PASS |
tedd_an/BluezMake | success | Bluez Make PASS |
tedd_an/MakeCheck | success | Bluez Make Check PASS |
tedd_an/MakeDistcheck | success | Make Distcheck PASS |
tedd_an/CheckValgrind | success | Check Valgrind PASS |
tedd_an/CheckSmatch | success | CheckSparse PASS |
tedd_an/bluezmakeextell | success | Make External ELL PASS |
tedd_an/IncrementalBuild | success | Incremental Build PASS |
tedd_an/ScanBuild | success | Scan Build PASS |
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=838891 ---Test result--- Test Summary: CheckPatch PASS 0.44 seconds GitLint PASS 0.31 seconds BuildEll PASS 24.43 seconds BluezMake PASS 1777.98 seconds MakeCheck PASS 13.74 seconds MakeDistcheck PASS 188.68 seconds CheckValgrind PASS 257.92 seconds CheckSmatch PASS 357.36 seconds bluezmakeextell PASS 122.02 seconds IncrementalBuild PASS 1572.43 seconds ScanBuild PASS 1017.14 seconds --- Regards, Linux Bluetooth
diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c index 23cadde49..52a9f5e00 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);