diff mbox series

[BlueZ,v4,6/6] bap: Add proper default for broadcast setup

Message ID 20240313194400.1397477-6-luiz.dentz@gmail.com (mailing list archive)
State Accepted
Commit fffa21d084ecc3dfe789a965039980f2cf582a44
Headers show
Series [BlueZ,v4,1/6] client/player: Split unicast and broadcast presets | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
tedd_an/CheckPatch success CheckPatch PASS
tedd_an/GitLint success Gitlint PASS
tedd_an/IncrementalBuild success Incremental Build PASS

Commit Message

Luiz Augusto von Dentz March 13, 2024, 7:44 p.m. UTC
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This adds proper default for broadcast setup so it doesn't fail to
create the socket due to users not setting them.
---
 profiles/audio/bap.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 1034202cb8a0..964ba9c212e8 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -841,6 +841,9 @@  static struct bap_setup *setup_new(struct bap_ep *ep)
 		/* Mark BIG and BIS to be auto assigned */
 		setup->qos.bcast.big = BT_ISO_QOS_BIG_UNSET;
 		setup->qos.bcast.bis = BT_ISO_QOS_BIS_UNSET;
+		setup->qos.bcast.sync_factor = 0x01;
+		setup->qos.bcast.sync_timeout = BT_ISO_SYNC_TIMEOUT;
+		setup->qos.bcast.timeout = BT_ISO_SYNC_TIMEOUT;
 		setup->qos_parser = setup_parse_bcast_qos;
 		setup->destroy = setup_bcast_destroy;
 	} else {