-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Bluetooth: GMAP: Add initial implementation of GMAP #57032
Conversation
5610d13
to
12d87d4
Compare
The implementation of TMAP in #56686 and this should be made similar. TBD which changes to be done by either. |
dcdbe23
to
cfd6e0a
Compare
808659f
to
3255e5d
Compare
466c1cf
to
77c33d2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't try to run it (maybe we should - it's a fairly big PR). Found a few things but otherwise looks ok to me
|
||
err = bt_bap_unicast_client_register_cb(&unicast_client_cbs); | ||
if (err != 0) { | ||
FAIL("Failed to register CAP callbacks (err %d)\n", err); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unicast callbacks?
} | ||
|
||
if (src_ep_cnt != src_cnt) { | ||
FAIL("Source endpoint and stream count mismatch: %zu != %zu\n", src_ep_cnt, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra space
/* Set all endpoints from multiple connections in a single array, and verify that the known | ||
* endpoints matches the audio configuration | ||
*/ | ||
for (size_t i = 0U; i < param->conn_cnt; i++) { | ||
for (size_t j = 0U; j < param->snk_cnt[i]; j++) { | ||
snk_cnt++; | ||
} | ||
|
||
for (size_t j = 0U; j < param->src_cnt[i]; j++) { | ||
src_cnt++; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment and code doesn't seem to match for me for this block.
subsys/bluetooth/audio/shell/gmap.c
Outdated
static int cmd_gmap_ac_14(const struct shell *sh, size_t argc, char **argv) | ||
{ | ||
const struct bap_broadcast_ac_param param = { | ||
.name = "AC_13", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AC_14?
@fredrikdanebjer @kruithofa @cvinayak @MariuszSkamra @Casper-Bonde-Bose it would good to get this (experimental) feature into 3.5 if possible - If you can please review ASAP before the feature freeze tomorrow. |
f0008bc
to
798632c
Compare
ea6f97e
to
b35d24d
Compare
Add initial implementation of Gaming Audio Profile (GMAP). This is a top layer profile in the LE Audio stack, designed for low latency audio ideal for gaming. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
Add the GMAP shell module with support for running the various audio configurations in an easy way. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
Add BSIM testing of GMAP, with all spec-specified audio configuration combinations added and tested. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
@@ -622,6 +622,8 @@ static void connected(struct bt_conn *conn, uint8_t err) | |||
} | |||
} | |||
|
|||
default_conn = bt_conn_ref(conn); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Thalley, I think this line has been inserted by mistake as it does call twice bt_conn_ref
. Is this intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add initial implementation of GMAP.
This comes with the implementation of all GMAP roles, as well as BSIM and shell support.
Samples are not yet implemented, but may be added as part of this PR or a subsequent PR.