From 38d201e0636d5f1c62cd3b5b5ae1252f53b52d78 Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Wed, 29 May 2024 12:51:09 +0200 Subject: [PATCH] Samples: Bluetooth: Add () to AUDIO_RING_BUF_BYTES for broadcast source The BAP broadcast source sample did not properly use parentheses for the macro, potentially causing issues. Signed-off-by: Emil Gydesen --- samples/bluetooth/broadcast_audio_source/src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/bluetooth/broadcast_audio_source/src/main.c b/samples/bluetooth/broadcast_audio_source/src/main.c index dbaffb0c2ff..322cb7bbb94 100644 --- a/samples/bluetooth/broadcast_audio_source/src/main.c +++ b/samples/bluetooth/broadcast_audio_source/src/main.c @@ -77,8 +77,8 @@ static struct bt_bap_lc3_preset preset_active = BT_BAP_LC3_BROADCAST_PRESET_24_2 #define USB_BYTES_PER_SAMPLE 2 #define USB_CHANNELS 2 -#define RING_BUF_USB_FRAMES 20 -#define AUDIO_RING_BUF_BYTES USB_NUM_SAMPLES * USB_BYTES_PER_SAMPLE * RING_BUF_USB_FRAMES +#define RING_BUF_USB_FRAMES 20 +#define AUDIO_RING_BUF_BYTES (USB_NUM_SAMPLES * USB_BYTES_PER_SAMPLE * RING_BUF_USB_FRAMES) #else /* !defined(CONFIG_USB_DEVICE_AUDIO) */ #include