Skip to content

Commit

Permalink
tests: bsim: unicast_server_test: Fix codec specific capabilities
Browse files Browse the repository at this point in the history
This fixes format of codec specific capabilities in PAC record.

Fixes: zephyrproject-rtos#43058
Signed-off-by: Mariusz Skamra <[email protected]>
  • Loading branch information
MariuszSkamra authored and mbolivar-nordic committed Feb 25, 2022
1 parent 8da5fef commit 57ad6af
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@

extern enum bst_result_t bst_result;

/* Mandatory support preset by both client and server */
static struct bt_audio_lc3_preset preset_16_2_1 = BT_AUDIO_LC3_UNICAST_PRESET_16_2_1;
#define CHANNEL_COUNT_1 BIT(0)

static struct bt_codec lc3_codec =
BT_CODEC_LC3(BT_CODEC_LC3_FREQ_16KHZ, BT_CODEC_LC3_DURATION_10, CHANNEL_COUNT_1, 40u, 40u,
1u, (BT_CODEC_META_CONTEXT_VOICE | BT_CODEC_META_CONTEXT_MEDIA),
BT_CODEC_META_CONTEXT_NONE);

static struct bt_audio_stream streams[CONFIG_BT_ASCS_ASE_SNK_COUNT + CONFIG_BT_ASCS_ASE_SRC_COUNT];

Expand Down Expand Up @@ -178,7 +182,7 @@ static void init(void)
.pref = BT_AUDIO_CAPABILITY_PREF(
BT_AUDIO_CAPABILITY_UNFRAMED_SUPPORTED,
BT_GAP_LE_PHY_2M, 0x02, 10, 40000, 40000, 40000, 40000),
.codec = &preset_16_2_1.codec,
.codec = &lc3_codec,
.ops = &lc3_ops,
};
int err;
Expand Down

0 comments on commit 57ad6af

Please sign in to comment.