shared/bap: Remove bt_bap_stream_bcast_new
Luiz Augusto von Dentz
maintainerPATCH 1/1 shared/bap: Remove bt_bap_stream_bcast_new
From: Luiz Augusto von Dentz <[email protected]>
This is now handled internally by bt_bap_stream_new by detecting if an ATT session has been attached.
--- profiles/audio/bap.c | 11 ++----- src/shared/bap.c | 74 +++++++++++++------------------------------- src/shared/bap.h | 6 ---- 3 files changed, 24 insertions(+), 67 deletions(-)
profiles/audio/bap.c +2 -9
@@ -68,11 +68,6 @@ struct bap_setup {struct bt_bap_qos qos;int (*qos_parser)(struct bap_setup *setup,const char *key,int var,DBusMessageIter *iter); -struct bt_bap_stream * (*stream_new)(struct bt_bap *bap, -struct bt_bap_pac *lpac, -struct bt_bap_pac *rpac, -struct bt_bap_qos *pqos, -struct iovec *data);GIOChannel *io;unsigned int io_id;bool recreate;
@@ -893,13 +888,11 @@ static struct bap_setup *setup_new(struct bap_ep *ep) setup->qos.bcast.bis =BT_ISO_QOS_BIS_UNSET ; setup->qos_parser = setup_parse_bcast_qos; setup->destroy = setup_bcast_destroy; - setup->stream_new = bt_bap_stream_bcast_new; }else {/* Mark CIG and CIS to be auto assigned */ setup->qos.ucast.cig_id =BT_ISO_QOS_CIG_UNSET ; setup->qos.ucast.cis_id =BT_ISO_QOS_CIS_UNSET ; setup->qos_parser = setup_parse_ucast_qos; - setup->stream_new = bt_bap_stream_new; }if (!ep->setups)
@@ -965,7 +958,7 @@ static DBusMessage *set_configuration(DBusConnection *conn, DBusMessage *msg,return btd_error_invalid_args (msg); } - setup->stream = setup->stream_new (ep->data->bap, ep->lpac, ep->rpac, + setup->stream =bt_bap_stream_new (ep->data->bap, ep->lpac, ep->rpac, &setup->qos, setup->caps); setup->id = bt_bap_stream_config(setup->stream, &setup->qos,
@@ -1300,7 +1293,7 @@ static void setup_config(void *data, void *user_data)* and PHY. */ if (!setup->stream) - setup->stream = setup->stream_new (ep->data->bap, ep->lpac, + setup->stream =bt_bap_stream_new (ep->data->bap, ep->lpac, ep->rpac, &setup->qos, setup->caps);
src/shared/bap.c +22 -52
101 lines not on this page · raw message
src/shared/bap.h +0 -6
@@ -244,12 +244,6 @@ struct bt_bap_stream *bt_bap_stream_new(struct bt_bap *bap,struct bt_bap_qos *pqos, struct iovec *data); -struct bt_bap_stream *bt_bap_stream_bcast_new (struct bt_bap *bap, -struct bt_bap_pac *lpac, -struct bt_bap_pac *rpac, -struct bt_bap_qos *pqos, -struct iovec *data); -struct bt_bap *bt_bap_stream_get_session (struct bt_bap_stream *stream);uint8_t bt_bap_stream_get_state (struct bt_bap_stream *stream);
Signature · 1 line
2.43.0
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=831152
---Test result---
Test Summary:
CheckPatch PASS 0.47 seconds GitLint PASS 0.30 seconds BuildEll PASS 23.78 seconds BluezMake PASS 724.51 seconds MakeCheck PASS 12.30 seconds MakeDistcheck PASS 162.73 seconds CheckValgrind PASS 228.64 seconds CheckSmatch PASS 330.72 seconds bluezmakeextell PASS 107.48 seconds IncrementalBuild PASS 677.84 seconds ScanBuild PASS 942.33 seconds
---
Regards,
Linux Bluetooth