9#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_BAP_LC3_PRESET_
10#define ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_BAP_LC3_PRESET_
23#define BT_BAP_LC3_PRESET(_codec, _qos) \
25 .codec_cfg = _codec, .qos = _qos, \
36#define BT_BAP_LC3_UNICAST_PRESET_8_1_1(_loc, _stream_context) \
37 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
38 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 26u, 1, \
40 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 26u, 2u, 8u, 40000u))
48#define BT_BAP_LC3_UNICAST_PRESET_8_2_1(_loc, _stream_context) \
49 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
50 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 30U, 1, \
52 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 30u, 2u, 10u, 40000u))
60#define BT_BAP_LC3_UNICAST_PRESET_16_1_1(_loc, _stream_context) \
61 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
62 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 30U, 1, \
64 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 30u, 2u, 8u, 40000u))
74#define BT_BAP_LC3_UNICAST_PRESET_16_2_1(_loc, _stream_context) \
75 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
76 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 40U, 1, \
78 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 40u, 2u, 10u, 40000u))
86#define BT_BAP_LC3_UNICAST_PRESET_24_1_1(_loc, _stream_context) \
87 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
88 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 45U, 1, \
90 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 45u, 2u, 8u, 40000u))
100#define BT_BAP_LC3_UNICAST_PRESET_24_2_1(_loc, _stream_context) \
101 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
102 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 60U, 1, \
104 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 60u, 2u, 10u, 40000u))
112#define BT_BAP_LC3_UNICAST_PRESET_32_1_1(_loc, _stream_context) \
113 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
114 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 60U, 1, \
116 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 60u, 2u, 8u, 40000u))
124#define BT_BAP_LC3_UNICAST_PRESET_32_2_1(_loc, _stream_context) \
125 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
126 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 80U, 1, \
128 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 80u, 2u, 10u, 40000u))
136#define BT_BAP_LC3_UNICAST_PRESET_441_1_1(_loc, _stream_context) \
137 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
138 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 97U, 1, \
140 BT_AUDIO_CODEC_QOS_FRAMED(8163u, 97u, 5u, 24u, 40000u))
148#define BT_BAP_LC3_UNICAST_PRESET_441_2_1(_loc, _stream_context) \
149 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
150 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 130U, 1, \
152 BT_AUDIO_CODEC_QOS_FRAMED(10884u, 130u, 5u, 31u, 40000u))
160#define BT_BAP_LC3_UNICAST_PRESET_48_1_1(_loc, _stream_context) \
161 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
162 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 75U, 1, \
164 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 75u, 5u, 15u, 40000u))
172#define BT_BAP_LC3_UNICAST_PRESET_48_2_1(_loc, _stream_context) \
173 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
174 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 100U, 1, \
176 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 100u, 5u, 20u, 40000u))
184#define BT_BAP_LC3_UNICAST_PRESET_48_3_1(_loc, _stream_context) \
185 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
186 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 90U, 1, \
188 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 90u, 5u, 15u, 40000u))
196#define BT_BAP_LC3_UNICAST_PRESET_48_4_1(_loc, _stream_context) \
197 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
198 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 120u, 1, \
200 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 120u, 5u, 20u, 40000u))
208#define BT_BAP_LC3_UNICAST_PRESET_48_5_1(_loc, _stream_context) \
209 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
210 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 117u, \
211 1, _stream_context), \
212 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 117u, 5u, 15u, 40000u))
220#define BT_BAP_LC3_UNICAST_PRESET_48_6_1(_loc, _stream_context) \
221 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
222 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 155u, 1, \
224 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 155u, 5u, 20u, 40000u))
233#define BT_BAP_LC3_UNICAST_PRESET_8_1_2(_loc, _stream_context) \
234 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
235 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 26u, 1, \
237 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 26u, 13u, 75u, 40000u))
245#define BT_BAP_LC3_UNICAST_PRESET_8_2_2(_loc, _stream_context) \
246 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
247 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 30U, 1, \
249 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 30u, 13u, 95u, 40000u))
257#define BT_BAP_LC3_UNICAST_PRESET_16_1_2(_loc, _stream_context) \
258 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
259 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 30U, 1, \
261 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 30u, 13u, 75u, 40000u))
269#define BT_BAP_LC3_UNICAST_PRESET_16_2_2(_loc, _stream_context) \
270 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
271 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 40U, 1, \
273 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 40u, 13u, 95u, 40000u))
281#define BT_BAP_LC3_UNICAST_PRESET_24_1_2(_loc, _stream_context) \
282 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
283 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 45U, 1, \
285 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 45u, 13u, 75u, 40000u))
293#define BT_BAP_LC3_UNICAST_PRESET_24_2_2(_loc, _stream_context) \
294 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
295 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 60U, 1, \
297 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 60u, 13u, 95u, 40000u))
305#define BT_BAP_LC3_UNICAST_PRESET_32_1_2(_loc, _stream_context) \
306 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
307 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 60U, 1, \
309 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 60u, 13u, 75u, 40000u))
317#define BT_BAP_LC3_UNICAST_PRESET_32_2_2(_loc, _stream_context) \
318 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
319 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 80U, 1, \
321 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 80u, 13u, 95u, 40000u))
329#define BT_BAP_LC3_UNICAST_PRESET_441_1_2(_loc, _stream_context) \
330 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
331 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 97U, 1, \
333 BT_AUDIO_CODEC_QOS_FRAMED(8163u, 97u, 13u, 80u, 40000u))
341#define BT_BAP_LC3_UNICAST_PRESET_441_2_2(_loc, _stream_context) \
342 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
343 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 130U, 1, \
345 BT_AUDIO_CODEC_QOS_FRAMED(10884u, 130u, 13u, 85u, 40000u))
353#define BT_BAP_LC3_UNICAST_PRESET_48_1_2(_loc, _stream_context) \
354 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
355 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 75U, 1, \
357 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 75u, 13u, 75u, 40000u))
365#define BT_BAP_LC3_UNICAST_PRESET_48_2_2(_loc, _stream_context) \
366 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
367 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 100U, 1, \
369 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 100u, 13u, 95u, 40000u))
377#define BT_BAP_LC3_UNICAST_PRESET_48_3_2(_loc, _stream_context) \
378 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
379 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 90U, 1, \
381 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 90u, 13u, 75u, 40000u))
389#define BT_BAP_LC3_UNICAST_PRESET_48_4_2(_loc, _stream_context) \
390 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
391 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 120u, 1, \
393 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 120u, 13u, 100u, 40000u))
401#define BT_BAP_LC3_UNICAST_PRESET_48_5_2(_loc, _stream_context) \
402 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
403 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 117u, \
404 1, _stream_context), \
405 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 117u, 13u, 75u, 40000u))
413#define BT_BAP_LC3_UNICAST_PRESET_48_6_2(_loc, _stream_context) \
414 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
415 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 155u, 1, \
417 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 155u, 13u, 100u, 40000u))
426#define BT_BAP_LC3_BROADCAST_PRESET_8_1_1(_loc, _stream_context) \
427 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
428 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 26u, 1, \
430 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 26u, 2u, 8u, 40000u))
438#define BT_BAP_LC3_BROADCAST_PRESET_8_2_1(_loc, _stream_context) \
439 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
440 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 30U, 1, \
442 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 30u, 2u, 10u, 40000u))
450#define BT_BAP_LC3_BROADCAST_PRESET_16_1_1(_loc, _stream_context) \
451 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
452 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 30U, 1, \
454 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 30u, 2u, 8u, 40000u))
464#define BT_BAP_LC3_BROADCAST_PRESET_16_2_1(_loc, _stream_context) \
465 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
466 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 40U, 1, \
468 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 40u, 2u, 10u, 40000u))
476#define BT_BAP_LC3_BROADCAST_PRESET_24_1_1(_loc, _stream_context) \
477 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
478 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 45U, 1, \
480 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 45u, 2u, 8u, 40000u))
490#define BT_BAP_LC3_BROADCAST_PRESET_24_2_1(_loc, _stream_context) \
491 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
492 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 60U, 1, \
494 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 60u, 2u, 10u, 40000u))
502#define BT_BAP_LC3_BROADCAST_PRESET_32_1_1(_loc, _stream_context) \
503 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
504 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 60U, 1, \
506 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 60u, 2u, 8u, 40000u))
514#define BT_BAP_LC3_BROADCAST_PRESET_32_2_1(_loc, _stream_context) \
515 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
516 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 80U, 1, \
518 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 80u, 2u, 10u, 40000u))
526#define BT_BAP_LC3_BROADCAST_PRESET_441_1_1(_loc, _stream_context) \
527 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
528 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 97U, 1, \
530 BT_AUDIO_CODEC_QOS_FRAMED(8163u, 97u, 4u, 24u, 40000u))
538#define BT_BAP_LC3_BROADCAST_PRESET_441_2_1(_loc, _stream_context) \
539 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
540 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 130U, 1, \
542 BT_AUDIO_CODEC_QOS_FRAMED(10884u, 130u, 4u, 31u, 40000u))
550#define BT_BAP_LC3_BROADCAST_PRESET_48_1_1(_loc, _stream_context) \
551 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
552 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 75U, 1, \
554 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 75u, 4u, 15u, 40000u))
562#define BT_BAP_LC3_BROADCAST_PRESET_48_2_1(_loc, _stream_context) \
563 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
564 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 100U, 1, \
566 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 100u, 4u, 20u, 40000u))
574#define BT_BAP_LC3_BROADCAST_PRESET_48_3_1(_loc, _stream_context) \
575 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
576 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 90U, 1, \
578 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 90u, 4u, 15u, 40000u))
586#define BT_BAP_LC3_BROADCAST_PRESET_48_4_1(_loc, _stream_context) \
587 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
588 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 120u, 1, \
590 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 120u, 4u, 20u, 40000u))
598#define BT_BAP_LC3_BROADCAST_PRESET_48_5_1(_loc, _stream_context) \
599 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
600 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 117u, \
601 1, _stream_context), \
602 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 117u, 4u, 15u, 40000u))
610#define BT_BAP_LC3_BROADCAST_PRESET_48_6_1(_loc, _stream_context) \
611 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
612 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 155u, 1, \
614 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 155u, 4u, 20u, 40000u))
623#define BT_BAP_LC3_BROADCAST_PRESET_8_1_2(_loc, _stream_context) \
624 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
625 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 26u, 1, \
627 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 26u, 4u, 45u, 40000u))
635#define BT_BAP_LC3_BROADCAST_PRESET_8_2_2(_loc, _stream_context) \
636 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
637 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 30U, 1, \
639 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 30u, 4u, 60u, 40000u))
647#define BT_BAP_LC3_BROADCAST_PRESET_16_1_2(_loc, _stream_context) \
648 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
649 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 30U, 1, \
651 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 30u, 4u, 45u, 40000u))
661#define BT_BAP_LC3_BROADCAST_PRESET_16_2_2(_loc, _stream_context) \
662 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
663 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 40U, 1, \
665 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 40u, 4u, 60u, 40000u))
673#define BT_BAP_LC3_BROADCAST_PRESET_24_1_2(_loc, _stream_context) \
674 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
675 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 45U, 1, \
677 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 45u, 4u, 45u, 40000u))
687#define BT_BAP_LC3_BROADCAST_PRESET_24_2_2(_loc, _stream_context) \
688 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
689 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 60U, 1, \
691 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 60u, 4u, 60u, 40000u))
699#define BT_BAP_LC3_BROADCAST_PRESET_32_1_2(_loc, _stream_context) \
700 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
701 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 60U, 1, \
703 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 60u, 4u, 45u, 40000u))
711#define BT_BAP_LC3_BROADCAST_PRESET_32_2_2(_loc, _stream_context) \
712 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
713 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 80U, 1, \
715 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 80u, 4u, 60u, 40000u))
723#define BT_BAP_LC3_BROADCAST_PRESET_441_1_2(_loc, _stream_context) \
724 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
725 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 97U, 1, \
727 BT_AUDIO_CODEC_QOS_FRAMED(8163u, 97u, 4u, 54u, 40000u))
735#define BT_BAP_LC3_BROADCAST_PRESET_441_2_2(_loc, _stream_context) \
736 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
737 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 130U, 1, \
739 BT_AUDIO_CODEC_QOS_FRAMED(10884u, 130u, 4u, 60u, 40000u))
747#define BT_BAP_LC3_BROADCAST_PRESET_48_1_2(_loc, _stream_context) \
748 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
749 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 75U, 1, \
751 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 75u, 4u, 50u, 40000u))
759#define BT_BAP_LC3_BROADCAST_PRESET_48_2_2(_loc, _stream_context) \
760 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
761 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 100U, 1, \
763 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 100u, 4u, 65u, 40000u))
771#define BT_BAP_LC3_BROADCAST_PRESET_48_3_2(_loc, _stream_context) \
772 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
773 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 90U, 1, \
775 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 90u, 4u, 50u, 40000u))
783#define BT_BAP_LC3_BROADCAST_PRESET_48_4_2(_loc, _stream_context) \
784 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
785 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 120u, 1, \
787 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 120u, 4u, 65u, 40000u))
795#define BT_BAP_LC3_BROADCAST_PRESET_48_5_2(_loc, _stream_context) \
796 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
797 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 117u, \
798 1, _stream_context), \
799 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 117u, 4u, 50u, 40000u))
807#define BT_BAP_LC3_BROADCAST_PRESET_48_6_2(_loc, _stream_context) \
808 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
809 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 155u, 1, \
811 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 155u, 4u, 65u, 40000u))
Bluetooth Audio handling.
Codec specific configuration structure.
Definition: audio.h:584
Codec QoS structure.
Definition: audio.h:704
Struct to hold a BAP defined LC3 preset.
Definition: bap_lc3_preset.h:15
struct bt_audio_codec_cfg codec_cfg
The LC3 Codec.
Definition: bap_lc3_preset.h:17
struct bt_audio_codec_qos qos
The BAP spec defined QoS values.
Definition: bap_lc3_preset.h:19