All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ v4 6/6] bap: Add proper default for broadcast setup
Date: Wed, 13 Mar 2024 15:44:00 -0400	[thread overview]
Message-ID: <20240313194400.1397477-6-luiz.dentz@gmail.com> (raw)
In-Reply-To: <20240313194400.1397477-1-luiz.dentz@gmail.com>

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 --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 {
-- 
2.43.0


  parent reply	other threads:[~2024-03-13 19:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-13 19:43 [PATCH BlueZ v4 1/6] client/player: Split unicast and broadcast presets Luiz Augusto von Dentz
2024-03-13 19:43 ` [PATCH BlueZ v4 2/6] client/player: Use macros from lc3.h to define presets Luiz Augusto von Dentz
2024-03-13 19:43 ` [PATCH BlueZ v4 3/6] shared/lc3: Add definition for broadcast configurations Luiz Augusto von Dentz
2024-03-13 19:43 ` [PATCH BlueZ v4 4/6] client/player: Use QOS macros from lc3.h to define presets Luiz Augusto von Dentz
2024-03-13 19:43 ` [PATCH BlueZ v4 5/6] client/player: Cleanup broadcast QoS Luiz Augusto von Dentz
2024-03-13 19:44 ` Luiz Augusto von Dentz [this message]
2024-03-13 21:00 ` [PATCH BlueZ v4 1/6] client/player: Split unicast and broadcast presets patchwork-bot+bluetooth
2024-03-13 23:49 ` [BlueZ,v4,1/6] " bluez.test.bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240313194400.1397477-6-luiz.dentz@gmail.com \
    --to=luiz.dentz@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.