From: Iulia Tanasescu <iulia.tanasescu@nxp.com>
To: linux-bluetooth@vger.kernel.org
Cc: Iulia Tanasescu <iulia.tanasescu@nxp.com>
Subject: [PATCH BlueZ 5/8] profiles/audio/bap: Use unicast structure for ISO QoS options
Date: Mon, 20 Mar 2023 16:37:10 +0200 [thread overview]
Message-ID: <20230320143713.25449-6-iulia.tanasescu@nxp.com> (raw)
In-Reply-To: <20230320143713.25449-1-iulia.tanasescu@nxp.com>
Convert the generic bt_iso_qos structure into the dedicated unicast
structure for ISO QoS options.
---
profiles/audio/bap.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index dfdf87255..49003d351 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -4,6 +4,7 @@
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2022 Intel Corporation. All rights reserved.
+ * Copyright 2023 NXP
*
*
*/
@@ -741,7 +742,7 @@ static void bap_iso_qos(struct bt_bap_qos *qos, struct bt_iso_io_qos *io)
static bool match_stream_qos(const void *data, const void *user_data)
{
const struct bt_bap_stream *stream = data;
- const struct bt_iso_qos *iso_qos = user_data;
+ const struct bt_iso_unicast_qos *iso_qos = user_data;
struct bt_bap_qos *qos;
qos = bt_bap_stream_get_qos((void *)stream);
@@ -756,7 +757,7 @@ static void iso_confirm_cb(GIOChannel *io, void *user_data)
{
struct bap_data *data = user_data;
struct bt_bap_stream *stream;
- struct bt_iso_qos qos;
+ struct bt_iso_unicast_qos qos;
char address[18];
GError *err = NULL;
@@ -882,7 +883,7 @@ static void bap_connect_io_cb(GIOChannel *chan, GError *err, gpointer user_data)
static void bap_connect_io(struct bap_data *data, struct bap_ep *ep,
struct bt_bap_stream *stream,
- struct bt_iso_qos *qos, int defer)
+ struct bt_iso_unicast_qos *qos, int defer)
{
struct btd_adapter *adapter = device_get_adapter(data->device);
GIOChannel *io;
@@ -939,7 +940,7 @@ static void bap_connect_io(struct bap_data *data, struct bap_ep *ep,
}
static void bap_listen_io(struct bap_data *data, struct bt_bap_stream *stream,
- struct bt_iso_qos *qos)
+ struct bt_iso_unicast_qos *qos)
{
struct btd_adapter *adapter = device_get_adapter(data->device);
GIOChannel *io;
@@ -974,7 +975,7 @@ static void bap_create_io(struct bap_data *data, struct bap_ep *ep,
struct bt_bap_stream *stream, int defer)
{
struct bt_bap_qos *qos[2] = {};
- struct bt_iso_qos iso_qos;
+ struct bt_iso_unicast_qos iso_qos;
DBG("ep %p stream %p defer %s", ep, stream, defer ? "true" : "false");
@@ -1178,7 +1179,7 @@ static void bap_connecting(struct bt_bap_stream *stream, bool state, int fd,
/* Attempt to get CIG/CIS if they have not been set */
if (ep->qos.cig_id == BT_ISO_QOS_CIG_UNSET ||
ep->qos.cis_id == BT_ISO_QOS_CIS_UNSET) {
- struct bt_iso_qos qos;
+ struct bt_iso_unicast_qos qos;
GError *err = NULL;
if (!bt_io_get(io, &err, BT_IO_OPT_QOS, &qos,
--
2.34.1
next prev parent reply other threads:[~2023-03-20 14:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-20 14:37 [PATCH BlueZ 0/8] Split bt_iso_qos into dedicated structures Iulia Tanasescu
2023-03-20 14:37 ` [PATCH BlueZ 1/8] btio: Use unicast structure for ISO QoS options Iulia Tanasescu
2023-03-20 15:11 ` Split bt_iso_qos into dedicated structures bluez.test.bot
2023-03-20 14:37 ` [PATCH BlueZ 2/8] client/player: Use unicast structure for ISO QoS options Iulia Tanasescu
2023-03-20 14:37 ` [PATCH BlueZ 3/8] emulator/bthost: pass unicast QoS structure to bthost_set_cig_params Iulia Tanasescu
2023-03-20 14:37 ` [PATCH BlueZ 4/8] lib: split bt_iso_qos into dedicated structures Iulia Tanasescu
2023-03-20 14:37 ` Iulia Tanasescu [this message]
2023-03-20 14:37 ` [PATCH BlueZ 6/8] tools/btiotest: Use unicast QoS structure for ISO io Iulia Tanasescu
2023-03-20 14:37 ` [PATCH BlueZ 7/8] tools/isotest: Use dedicated ISO QoS options for unicast and broadcast Iulia Tanasescu
2023-03-20 14:37 ` [PATCH BlueZ 8/8] tools/iso-tester: " Iulia Tanasescu
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=20230320143713.25449-6-iulia.tanasescu@nxp.com \
--to=iulia.tanasescu@nxp.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox