10#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_BAP_LC3_PRESET_
11#define ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_BAP_LC3_PRESET_
46#define BT_BAP_LC3_PRESET(_codec, _qos) \
48 .codec_cfg = _codec, .qos = _qos, \
59#define BT_BAP_LC3_UNICAST_PRESET_8_1_1(_loc, _stream_context) \
60 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
61 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 26u, 1, \
63 BT_BAP_QOS_CFG_UNFRAMED(7500u, 26u, 2u, 8u, 40000u))
71#define BT_BAP_LC3_UNICAST_PRESET_8_2_1(_loc, _stream_context) \
72 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
73 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 30U, 1, \
75 BT_BAP_QOS_CFG_UNFRAMED(10000u, 30u, 2u, 10u, 40000u))
83#define BT_BAP_LC3_UNICAST_PRESET_16_1_1(_loc, _stream_context) \
84 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
85 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 30U, 1, \
87 BT_BAP_QOS_CFG_UNFRAMED(7500u, 30u, 2u, 8u, 40000u))
97#define BT_BAP_LC3_UNICAST_PRESET_16_2_1(_loc, _stream_context) \
98 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
99 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 40U, 1, \
101 BT_BAP_QOS_CFG_UNFRAMED(10000u, 40u, 2u, 10u, 40000u))
109#define BT_BAP_LC3_UNICAST_PRESET_24_1_1(_loc, _stream_context) \
110 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
111 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 45U, 1, \
113 BT_BAP_QOS_CFG_UNFRAMED(7500u, 45u, 2u, 8u, 40000u))
123#define BT_BAP_LC3_UNICAST_PRESET_24_2_1(_loc, _stream_context) \
124 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
125 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 60U, 1, \
127 BT_BAP_QOS_CFG_UNFRAMED(10000u, 60u, 2u, 10u, 40000u))
135#define BT_BAP_LC3_UNICAST_PRESET_32_1_1(_loc, _stream_context) \
136 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
137 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 60U, 1, \
139 BT_BAP_QOS_CFG_UNFRAMED(7500u, 60u, 2u, 8u, 40000u))
147#define BT_BAP_LC3_UNICAST_PRESET_32_2_1(_loc, _stream_context) \
148 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
149 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 80U, 1, \
151 BT_BAP_QOS_CFG_UNFRAMED(10000u, 80u, 2u, 10u, 40000u))
159#define BT_BAP_LC3_UNICAST_PRESET_441_1_1(_loc, _stream_context) \
160 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
161 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 97U, 1, \
163 BT_BAP_QOS_CFG_FRAMED(8163u, 97u, 5u, 24u, 40000u))
171#define BT_BAP_LC3_UNICAST_PRESET_441_2_1(_loc, _stream_context) \
172 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
173 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 130U, 1, \
175 BT_BAP_QOS_CFG_FRAMED(10884u, 130u, 5u, 31u, 40000u))
183#define BT_BAP_LC3_UNICAST_PRESET_48_1_1(_loc, _stream_context) \
184 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
185 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 75U, 1, \
187 BT_BAP_QOS_CFG_UNFRAMED(7500u, 75u, 5u, 15u, 40000u))
195#define BT_BAP_LC3_UNICAST_PRESET_48_2_1(_loc, _stream_context) \
196 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
197 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 100U, 1, \
199 BT_BAP_QOS_CFG_UNFRAMED(10000u, 100u, 5u, 20u, 40000u))
207#define BT_BAP_LC3_UNICAST_PRESET_48_3_1(_loc, _stream_context) \
208 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
209 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 90U, 1, \
211 BT_BAP_QOS_CFG_UNFRAMED(7500u, 90u, 5u, 15u, 40000u))
219#define BT_BAP_LC3_UNICAST_PRESET_48_4_1(_loc, _stream_context) \
220 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
221 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 120u, 1, \
223 BT_BAP_QOS_CFG_UNFRAMED(10000u, 120u, 5u, 20u, 40000u))
231#define BT_BAP_LC3_UNICAST_PRESET_48_5_1(_loc, _stream_context) \
232 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
233 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 117u, \
234 1, _stream_context), \
235 BT_BAP_QOS_CFG_UNFRAMED(7500u, 117u, 5u, 15u, 40000u))
243#define BT_BAP_LC3_UNICAST_PRESET_48_6_1(_loc, _stream_context) \
244 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
245 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 155u, 1, \
247 BT_BAP_QOS_CFG_UNFRAMED(10000u, 155u, 5u, 20u, 40000u))
256#define BT_BAP_LC3_UNICAST_PRESET_8_1_2(_loc, _stream_context) \
257 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
258 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 26u, 1, \
260 BT_BAP_QOS_CFG_UNFRAMED(7500u, 26u, 13u, 75u, 40000u))
268#define BT_BAP_LC3_UNICAST_PRESET_8_2_2(_loc, _stream_context) \
269 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
270 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 30U, 1, \
272 BT_BAP_QOS_CFG_UNFRAMED(10000u, 30u, 13u, 95u, 40000u))
280#define BT_BAP_LC3_UNICAST_PRESET_16_1_2(_loc, _stream_context) \
281 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
282 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 30U, 1, \
284 BT_BAP_QOS_CFG_UNFRAMED(7500u, 30u, 13u, 75u, 40000u))
292#define BT_BAP_LC3_UNICAST_PRESET_16_2_2(_loc, _stream_context) \
293 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
294 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 40U, 1, \
296 BT_BAP_QOS_CFG_UNFRAMED(10000u, 40u, 13u, 95u, 40000u))
304#define BT_BAP_LC3_UNICAST_PRESET_24_1_2(_loc, _stream_context) \
305 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
306 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 45U, 1, \
308 BT_BAP_QOS_CFG_UNFRAMED(7500u, 45u, 13u, 75u, 40000u))
316#define BT_BAP_LC3_UNICAST_PRESET_24_2_2(_loc, _stream_context) \
317 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
318 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 60U, 1, \
320 BT_BAP_QOS_CFG_UNFRAMED(10000u, 60u, 13u, 95u, 40000u))
328#define BT_BAP_LC3_UNICAST_PRESET_32_1_2(_loc, _stream_context) \
329 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
330 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 60U, 1, \
332 BT_BAP_QOS_CFG_UNFRAMED(7500u, 60u, 13u, 75u, 40000u))
340#define BT_BAP_LC3_UNICAST_PRESET_32_2_2(_loc, _stream_context) \
341 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
342 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 80U, 1, \
344 BT_BAP_QOS_CFG_UNFRAMED(10000u, 80u, 13u, 95u, 40000u))
352#define BT_BAP_LC3_UNICAST_PRESET_441_1_2(_loc, _stream_context) \
353 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
354 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 97U, 1, \
356 BT_BAP_QOS_CFG_FRAMED(8163u, 97u, 13u, 80u, 40000u))
364#define BT_BAP_LC3_UNICAST_PRESET_441_2_2(_loc, _stream_context) \
365 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
366 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 130U, 1, \
368 BT_BAP_QOS_CFG_FRAMED(10884u, 130u, 13u, 85u, 40000u))
376#define BT_BAP_LC3_UNICAST_PRESET_48_1_2(_loc, _stream_context) \
377 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
378 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 75U, 1, \
380 BT_BAP_QOS_CFG_UNFRAMED(7500u, 75u, 13u, 75u, 40000u))
388#define BT_BAP_LC3_UNICAST_PRESET_48_2_2(_loc, _stream_context) \
389 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
390 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 100U, 1, \
392 BT_BAP_QOS_CFG_UNFRAMED(10000u, 100u, 13u, 95u, 40000u))
400#define BT_BAP_LC3_UNICAST_PRESET_48_3_2(_loc, _stream_context) \
401 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
402 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 90U, 1, \
404 BT_BAP_QOS_CFG_UNFRAMED(7500u, 90u, 13u, 75u, 40000u))
412#define BT_BAP_LC3_UNICAST_PRESET_48_4_2(_loc, _stream_context) \
413 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
414 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 120u, 1, \
416 BT_BAP_QOS_CFG_UNFRAMED(10000u, 120u, 13u, 100u, 40000u))
424#define BT_BAP_LC3_UNICAST_PRESET_48_5_2(_loc, _stream_context) \
425 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
426 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 117u, \
427 1, _stream_context), \
428 BT_BAP_QOS_CFG_UNFRAMED(7500u, 117u, 13u, 75u, 40000u))
436#define BT_BAP_LC3_UNICAST_PRESET_48_6_2(_loc, _stream_context) \
437 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
438 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 155u, 1, \
440 BT_BAP_QOS_CFG_UNFRAMED(10000u, 155u, 13u, 100u, 40000u))
449#define BT_BAP_LC3_BROADCAST_PRESET_8_1_1(_loc, _stream_context) \
450 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
451 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 26u, 1, \
453 BT_BAP_QOS_CFG_UNFRAMED(7500u, 26u, 2u, 8u, 40000u))
461#define BT_BAP_LC3_BROADCAST_PRESET_8_2_1(_loc, _stream_context) \
462 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
463 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 30U, 1, \
465 BT_BAP_QOS_CFG_UNFRAMED(10000u, 30u, 2u, 10u, 40000u))
473#define BT_BAP_LC3_BROADCAST_PRESET_16_1_1(_loc, _stream_context) \
474 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
475 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 30U, 1, \
477 BT_BAP_QOS_CFG_UNFRAMED(7500u, 30u, 2u, 8u, 40000u))
487#define BT_BAP_LC3_BROADCAST_PRESET_16_2_1(_loc, _stream_context) \
488 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
489 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 40U, 1, \
491 BT_BAP_QOS_CFG_UNFRAMED(10000u, 40u, 2u, 10u, 40000u))
499#define BT_BAP_LC3_BROADCAST_PRESET_24_1_1(_loc, _stream_context) \
500 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
501 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 45U, 1, \
503 BT_BAP_QOS_CFG_UNFRAMED(7500u, 45u, 2u, 8u, 40000u))
513#define BT_BAP_LC3_BROADCAST_PRESET_24_2_1(_loc, _stream_context) \
514 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
515 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 60U, 1, \
517 BT_BAP_QOS_CFG_UNFRAMED(10000u, 60u, 2u, 10u, 40000u))
525#define BT_BAP_LC3_BROADCAST_PRESET_32_1_1(_loc, _stream_context) \
526 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
527 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 60U, 1, \
529 BT_BAP_QOS_CFG_UNFRAMED(7500u, 60u, 2u, 8u, 40000u))
537#define BT_BAP_LC3_BROADCAST_PRESET_32_2_1(_loc, _stream_context) \
538 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
539 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 80U, 1, \
541 BT_BAP_QOS_CFG_UNFRAMED(10000u, 80u, 2u, 10u, 40000u))
549#define BT_BAP_LC3_BROADCAST_PRESET_441_1_1(_loc, _stream_context) \
550 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
551 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 97U, 1, \
553 BT_BAP_QOS_CFG_FRAMED(8163u, 97u, 4u, 24u, 40000u))
561#define BT_BAP_LC3_BROADCAST_PRESET_441_2_1(_loc, _stream_context) \
562 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
563 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 130U, 1, \
565 BT_BAP_QOS_CFG_FRAMED(10884u, 130u, 4u, 31u, 40000u))
573#define BT_BAP_LC3_BROADCAST_PRESET_48_1_1(_loc, _stream_context) \
574 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
575 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 75U, 1, \
577 BT_BAP_QOS_CFG_UNFRAMED(7500u, 75u, 4u, 15u, 40000u))
585#define BT_BAP_LC3_BROADCAST_PRESET_48_2_1(_loc, _stream_context) \
586 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
587 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 100U, 1, \
589 BT_BAP_QOS_CFG_UNFRAMED(10000u, 100u, 4u, 20u, 40000u))
597#define BT_BAP_LC3_BROADCAST_PRESET_48_3_1(_loc, _stream_context) \
598 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
599 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 90U, 1, \
601 BT_BAP_QOS_CFG_UNFRAMED(7500u, 90u, 4u, 15u, 40000u))
609#define BT_BAP_LC3_BROADCAST_PRESET_48_4_1(_loc, _stream_context) \
610 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
611 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 120u, 1, \
613 BT_BAP_QOS_CFG_UNFRAMED(10000u, 120u, 4u, 20u, 40000u))
621#define BT_BAP_LC3_BROADCAST_PRESET_48_5_1(_loc, _stream_context) \
622 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
623 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 117u, \
624 1, _stream_context), \
625 BT_BAP_QOS_CFG_UNFRAMED(7500u, 117u, 4u, 15u, 40000u))
633#define BT_BAP_LC3_BROADCAST_PRESET_48_6_1(_loc, _stream_context) \
634 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
635 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 155u, 1, \
637 BT_BAP_QOS_CFG_UNFRAMED(10000u, 155u, 4u, 20u, 40000u))
646#define BT_BAP_LC3_BROADCAST_PRESET_8_1_2(_loc, _stream_context) \
647 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
648 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 26u, 1, \
650 BT_BAP_QOS_CFG_UNFRAMED(7500u, 26u, 4u, 45u, 40000u))
658#define BT_BAP_LC3_BROADCAST_PRESET_8_2_2(_loc, _stream_context) \
659 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
660 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 30U, 1, \
662 BT_BAP_QOS_CFG_UNFRAMED(10000u, 30u, 4u, 60u, 40000u))
670#define BT_BAP_LC3_BROADCAST_PRESET_16_1_2(_loc, _stream_context) \
671 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
672 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 30U, 1, \
674 BT_BAP_QOS_CFG_UNFRAMED(7500u, 30u, 4u, 45u, 40000u))
684#define BT_BAP_LC3_BROADCAST_PRESET_16_2_2(_loc, _stream_context) \
685 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
686 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 40U, 1, \
688 BT_BAP_QOS_CFG_UNFRAMED(10000u, 40u, 4u, 60u, 40000u))
696#define BT_BAP_LC3_BROADCAST_PRESET_24_1_2(_loc, _stream_context) \
697 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
698 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 45U, 1, \
700 BT_BAP_QOS_CFG_UNFRAMED(7500u, 45u, 4u, 45u, 40000u))
710#define BT_BAP_LC3_BROADCAST_PRESET_24_2_2(_loc, _stream_context) \
711 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
712 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 60U, 1, \
714 BT_BAP_QOS_CFG_UNFRAMED(10000u, 60u, 4u, 60u, 40000u))
722#define BT_BAP_LC3_BROADCAST_PRESET_32_1_2(_loc, _stream_context) \
723 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
724 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 60U, 1, \
726 BT_BAP_QOS_CFG_UNFRAMED(7500u, 60u, 4u, 45u, 40000u))
734#define BT_BAP_LC3_BROADCAST_PRESET_32_2_2(_loc, _stream_context) \
735 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
736 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 80U, 1, \
738 BT_BAP_QOS_CFG_UNFRAMED(10000u, 80u, 4u, 60u, 40000u))
746#define BT_BAP_LC3_BROADCAST_PRESET_441_1_2(_loc, _stream_context) \
747 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
748 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 97U, 1, \
750 BT_BAP_QOS_CFG_FRAMED(8163u, 97u, 4u, 54u, 40000u))
758#define BT_BAP_LC3_BROADCAST_PRESET_441_2_2(_loc, _stream_context) \
759 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
760 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 130U, 1, \
762 BT_BAP_QOS_CFG_FRAMED(10884u, 130u, 4u, 60u, 40000u))
770#define BT_BAP_LC3_BROADCAST_PRESET_48_1_2(_loc, _stream_context) \
771 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
772 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 75U, 1, \
774 BT_BAP_QOS_CFG_UNFRAMED(7500u, 75u, 4u, 50u, 40000u))
782#define BT_BAP_LC3_BROADCAST_PRESET_48_2_2(_loc, _stream_context) \
783 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
784 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 100U, 1, \
786 BT_BAP_QOS_CFG_UNFRAMED(10000u, 100u, 4u, 65u, 40000u))
794#define BT_BAP_LC3_BROADCAST_PRESET_48_3_2(_loc, _stream_context) \
795 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
796 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 90U, 1, \
798 BT_BAP_QOS_CFG_UNFRAMED(7500u, 90u, 4u, 50u, 40000u))
806#define BT_BAP_LC3_BROADCAST_PRESET_48_4_2(_loc, _stream_context) \
807 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
808 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 120u, 1, \
810 BT_BAP_QOS_CFG_UNFRAMED(10000u, 120u, 4u, 65u, 40000u))
818#define BT_BAP_LC3_BROADCAST_PRESET_48_5_2(_loc, _stream_context) \
819 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
820 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 117u, \
821 1, _stream_context), \
822 BT_BAP_QOS_CFG_UNFRAMED(7500u, 117u, 4u, 50u, 40000u))
830#define BT_BAP_LC3_BROADCAST_PRESET_48_6_2(_loc, _stream_context) \
831 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
832 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 155u, 1, \
834 BT_BAP_QOS_CFG_UNFRAMED(10000u, 155u, 4u, 65u, 40000u))
Header for Bluetooth BAP.
Bluetooth Audio handling.
Bluetooth LC3 codec handling.
Codec specific configuration structure.
Definition audio.h:718
Struct to hold a BAP defined LC3 preset.
Definition bap_lc3_preset.h:38
struct bt_audio_codec_cfg codec_cfg
The LC3 Codec.
Definition bap_lc3_preset.h:40
struct bt_bap_qos_cfg qos
The BAP spec defined QoS values.
Definition bap_lc3_preset.h:42
QoS configuration structure.
Definition bap.h:128