summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/shared/bap.c16
-rw-r--r--src/shared/bap.h6
2 files changed, 4 insertions, 18 deletions
diff --git a/src/shared/bap.c b/src/shared/bap.c
index 3ebcd81f1..952b7be26 100644
--- a/src/shared/bap.c
+++ b/src/shared/bap.c
@@ -4176,18 +4176,15 @@ int bt_bap_select(struct bt_bap_pac *lpac, struct bt_bap_pac *rpac,
return 0;
}
-struct bt_bap_stream *bt_bap_config(struct bt_bap *bap,
+struct bt_bap_stream *bt_bap_stream_new(struct bt_bap *bap,
struct bt_bap_pac *lpac,
struct bt_bap_pac *rpac,
struct bt_bap_qos *pqos,
- struct iovec *data,
- bt_bap_stream_func_t func,
- void *user_data)
+ struct iovec *data)
{
struct bt_bap_stream *stream;
struct bt_bap_endpoint *ep;
struct match_pac match;
- int id;
if (!bap || !bap->rdb || queue_isempty(bap->remote_eps))
return NULL;
@@ -4244,15 +4241,6 @@ struct bt_bap_stream *bt_bap_config(struct bt_bap *bap,
if (!stream)
stream = bap_stream_new(bap, ep, lpac, rpac, data, true);
- id = bt_bap_stream_config(stream, pqos, data, func, user_data);
- if (!id) {
- DBG(bap, "Unable to config stream");
- queue_remove(bap->streams, stream);
- ep->stream = NULL;
- free(stream);
- return NULL;
- }
-
return stream;
}
diff --git a/src/shared/bap.h b/src/shared/bap.h
index 47a15636c..bd13abef9 100644
--- a/src/shared/bap.h
+++ b/src/shared/bap.h
@@ -190,13 +190,11 @@ void *bt_bap_pac_get_user_data(struct bt_bap_pac *pac);
int bt_bap_select(struct bt_bap_pac *lpac, struct bt_bap_pac *rpac,
bt_bap_pac_select_t func, void *user_data);
-struct bt_bap_stream *bt_bap_config(struct bt_bap *bap,
+struct bt_bap_stream *bt_bap_stream_new(struct bt_bap *bap,
struct bt_bap_pac *lpac,
struct bt_bap_pac *rpac,
struct bt_bap_qos *pqos,
- struct iovec *data,
- bt_bap_stream_func_t func,
- void *user_data);
+ 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);