Skip to content

Commit

Permalink
samples: unicast_audio_server: 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: #43058
Signed-off-by: Mariusz Skamra <[email protected]>
  • Loading branch information
MariuszSkamra authored and mbolivar-nordic committed Feb 25, 2022
1 parent 47a7fb8 commit 8da5fef
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions samples/bluetooth/unicast_audio_server/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@
BT_AUDIO_CONTEXT_TYPE_MEDIA | \
BT_AUDIO_CONTEXT_TYPE_GAME)

/* 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);

NET_BUF_POOL_FIXED_DEFINE(tx_pool, 1, CONFIG_BT_ISO_TX_MTU, 8, NULL);
static struct bt_conn *default_conn;
Expand Down Expand Up @@ -261,7 +265,7 @@ static struct bt_audio_capability caps[] = {
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,
}
};
Expand Down

0 comments on commit 8da5fef

Please sign in to comment.