Skip to content

Commit 7d1a5f5

Browse files
jori-nordiccarlescufi
authored andcommitted
Bluetooth: iso: use BT_ISO_SDU_BUF_SIZE()
Use BT_ISO_SDU_BUF_SIZE() instead of calculating manually. Signed-off-by: Jonathan Rico <[email protected]>
1 parent fb10381 commit 7d1a5f5

File tree

2 files changed

+2
-2
lines changed
  • samples/bluetooth/unicast_audio_client/src
  • subsys/bluetooth/audio/shell

2 files changed

+2
-2
lines changed

samples/bluetooth/unicast_audio_client/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static struct audio_sink {
2828
} sinks[CONFIG_BT_BAP_UNICAST_CLIENT_ASE_SNK_COUNT];
2929
static struct bt_bap_ep *sources[CONFIG_BT_BAP_UNICAST_CLIENT_ASE_SRC_COUNT];
3030
NET_BUF_POOL_FIXED_DEFINE(tx_pool, CONFIG_BT_BAP_UNICAST_CLIENT_ASE_SNK_COUNT,
31-
CONFIG_BT_ISO_TX_MTU + BT_ISO_CHAN_SEND_RESERVE,
31+
BT_ISO_SDU_BUF_SIZE(CONFIG_BT_ISO_TX_MTU),
3232
CONFIG_BT_CONN_TX_USER_DATA_SIZE, NULL);
3333

3434
static struct bt_bap_stream streams[CONFIG_BT_BAP_UNICAST_CLIENT_ASE_SNK_COUNT +

subsys/bluetooth/audio/shell/bap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ static uint16_t get_next_seq_num(uint32_t interval_us)
170170

171171
#if defined(CONFIG_LIBLC3) && defined(CONFIG_BT_AUDIO_TX)
172172
NET_BUF_POOL_FIXED_DEFINE(sine_tx_pool, CONFIG_BT_ISO_TX_BUF_COUNT,
173-
CONFIG_BT_ISO_TX_MTU + BT_ISO_CHAN_SEND_RESERVE,
173+
BT_ISO_SDU_BUF_SIZE(CONFIG_BT_ISO_TX_MTU),
174174
CONFIG_BT_CONN_TX_USER_DATA_SIZE, NULL);
175175

176176
#include "lc3.h"

0 commit comments

Comments
 (0)