samples: Bluetooth: unicast_audio_server multi-cis support
Add support for multiple CIS. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
21903ab65f
commit
0334853e42
2 changed files with 5 additions and 3 deletions
|
@ -3,6 +3,10 @@ CONFIG_BT_DEBUG_LOG=y
|
||||||
CONFIG_BT_PERIPHERAL=y
|
CONFIG_BT_PERIPHERAL=y
|
||||||
CONFIG_BT_AUDIO=y
|
CONFIG_BT_AUDIO=y
|
||||||
CONFIG_BT_AUDIO_UNICAST_SERVER=y
|
CONFIG_BT_AUDIO_UNICAST_SERVER=y
|
||||||
|
CONFIG_BT_ASCS_ASE_SNK_COUNT=2
|
||||||
|
CONFIG_BT_ASCS_ASE_SRC_COUNT=2
|
||||||
|
# Support an ISO channel per ASE
|
||||||
|
CONFIG_BT_ISO_MAX_CHAN=4
|
||||||
|
|
||||||
CONFIG_BT_EXT_ADV=y
|
CONFIG_BT_EXT_ADV=y
|
||||||
CONFIG_BT_DEVICE_NAME="Unicast Audio Server"
|
CONFIG_BT_DEVICE_NAME="Unicast Audio Server"
|
||||||
|
|
|
@ -16,8 +16,6 @@
|
||||||
#include <zephyr/bluetooth/audio/capabilities.h>
|
#include <zephyr/bluetooth/audio/capabilities.h>
|
||||||
#include <zephyr/sys/byteorder.h>
|
#include <zephyr/sys/byteorder.h>
|
||||||
|
|
||||||
#define MAX_PAC 1
|
|
||||||
|
|
||||||
#define AVAILABLE_SINK_CONTEXT (BT_AUDIO_CONTEXT_TYPE_UNSPECIFIED | \
|
#define AVAILABLE_SINK_CONTEXT (BT_AUDIO_CONTEXT_TYPE_UNSPECIFIED | \
|
||||||
BT_AUDIO_CONTEXT_TYPE_CONVERSATIONAL | \
|
BT_AUDIO_CONTEXT_TYPE_CONVERSATIONAL | \
|
||||||
BT_AUDIO_CONTEXT_TYPE_MEDIA | \
|
BT_AUDIO_CONTEXT_TYPE_MEDIA | \
|
||||||
|
@ -37,7 +35,7 @@ static struct bt_codec lc3_codec =
|
||||||
BT_AUDIO_CONTEXT_TYPE_UNSPECIFIED);
|
BT_AUDIO_CONTEXT_TYPE_UNSPECIFIED);
|
||||||
|
|
||||||
static struct bt_conn *default_conn;
|
static struct bt_conn *default_conn;
|
||||||
static struct bt_audio_stream streams[MAX_PAC];
|
static struct bt_audio_stream streams[CONFIG_BT_ASCS_ASE_SNK_COUNT + CONFIG_BT_ASCS_ASE_SRC_COUNT];
|
||||||
|
|
||||||
static uint8_t unicast_server_addata[] = {
|
static uint8_t unicast_server_addata[] = {
|
||||||
BT_UUID_16_ENCODE(BT_UUID_ASCS_VAL), /* ASCS UUID */
|
BT_UUID_16_ENCODE(BT_UUID_ASCS_VAL), /* ASCS UUID */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue