diff options
author | Silviu Florian Barbulescu <silviu.barbulescu@nxp.com> | 2024-02-23 18:48:09 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2024-02-27 08:43:39 -0500 |
commit | 8552e06b6617a1c51558d549aab66c500c6c50c2 (patch) | |
tree | 47d68a9b0947249356bb2bdf8f007936bbb8cd83 | |
parent | 15032315f35c44820952a9750baf58c2b4090b3f (diff) |
shared/bap: Fix endpoint dir for the bcast source
Fix endpoint direction for the broadcast source
-rw-r--r-- | src/shared/bap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/bap.c b/src/shared/bap.c index 626e8f1279..fd29557b18 100644 --- a/src/shared/bap.c +++ b/src/shared/bap.c @@ -682,7 +682,7 @@ static struct bt_bap_endpoint *bap_endpoint_new_broadcast(struct bt_bap_db *bdb, if (type == BT_BAP_BCAST_SINK) ep->dir = BT_BAP_BCAST_SOURCE; else - ep->dir = 0; + ep->dir = BT_BAP_BCAST_SINK; return ep; } @@ -1303,7 +1303,7 @@ static void ep_config_cb(struct bt_bap_stream *stream, int err) return; if (bt_bap_stream_get_type(stream) == BT_BAP_STREAM_TYPE_BCAST) { - if (!bt_bap_stream_io_dir(stream)) + if (bt_bap_stream_io_dir(stream) == BT_BAP_BCAST_SINK) stream_set_state(stream, BT_BAP_STREAM_STATE_QOS); else if (bt_bap_stream_io_dir(stream) == BT_BAP_BCAST_SOURCE) stream_set_state(stream, BT_BAP_STREAM_STATE_CONFIG); |