10#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_BAP_LC3_PRESET_
11#define ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_BAP_LC3_PRESET_
45#define BT_BAP_LC3_PRESET(_codec, _qos) \
47 .codec_cfg = _codec, .qos = _qos, \
58#define BT_BAP_LC3_UNICAST_PRESET_8_1_1(_loc, _stream_context) \
59 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
60 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 26u, 1, \
62 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 26u, 2u, 8u, 40000u))
70#define BT_BAP_LC3_UNICAST_PRESET_8_2_1(_loc, _stream_context) \
71 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
72 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 30U, 1, \
74 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 30u, 2u, 10u, 40000u))
82#define BT_BAP_LC3_UNICAST_PRESET_16_1_1(_loc, _stream_context) \
83 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
84 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 30U, 1, \
86 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 30u, 2u, 8u, 40000u))
96#define BT_BAP_LC3_UNICAST_PRESET_16_2_1(_loc, _stream_context) \
97 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
98 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 40U, 1, \
100 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 40u, 2u, 10u, 40000u))
108#define BT_BAP_LC3_UNICAST_PRESET_24_1_1(_loc, _stream_context) \
109 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
110 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 45U, 1, \
112 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 45u, 2u, 8u, 40000u))
122#define BT_BAP_LC3_UNICAST_PRESET_24_2_1(_loc, _stream_context) \
123 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
124 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 60U, 1, \
126 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 60u, 2u, 10u, 40000u))
134#define BT_BAP_LC3_UNICAST_PRESET_32_1_1(_loc, _stream_context) \
135 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
136 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 60U, 1, \
138 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 60u, 2u, 8u, 40000u))
146#define BT_BAP_LC3_UNICAST_PRESET_32_2_1(_loc, _stream_context) \
147 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
148 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 80U, 1, \
150 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 80u, 2u, 10u, 40000u))
158#define BT_BAP_LC3_UNICAST_PRESET_441_1_1(_loc, _stream_context) \
159 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
160 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 97U, 1, \
162 BT_AUDIO_CODEC_QOS_FRAMED(8163u, 97u, 5u, 24u, 40000u))
170#define BT_BAP_LC3_UNICAST_PRESET_441_2_1(_loc, _stream_context) \
171 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
172 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 130U, 1, \
174 BT_AUDIO_CODEC_QOS_FRAMED(10884u, 130u, 5u, 31u, 40000u))
182#define BT_BAP_LC3_UNICAST_PRESET_48_1_1(_loc, _stream_context) \
183 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
184 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 75U, 1, \
186 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 75u, 5u, 15u, 40000u))
194#define BT_BAP_LC3_UNICAST_PRESET_48_2_1(_loc, _stream_context) \
195 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
196 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 100U, 1, \
198 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 100u, 5u, 20u, 40000u))
206#define BT_BAP_LC3_UNICAST_PRESET_48_3_1(_loc, _stream_context) \
207 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
208 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 90U, 1, \
210 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 90u, 5u, 15u, 40000u))
218#define BT_BAP_LC3_UNICAST_PRESET_48_4_1(_loc, _stream_context) \
219 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
220 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 120u, 1, \
222 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 120u, 5u, 20u, 40000u))
230#define BT_BAP_LC3_UNICAST_PRESET_48_5_1(_loc, _stream_context) \
231 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
232 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 117u, \
233 1, _stream_context), \
234 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 117u, 5u, 15u, 40000u))
242#define BT_BAP_LC3_UNICAST_PRESET_48_6_1(_loc, _stream_context) \
243 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
244 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 155u, 1, \
246 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 155u, 5u, 20u, 40000u))
255#define BT_BAP_LC3_UNICAST_PRESET_8_1_2(_loc, _stream_context) \
256 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
257 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 26u, 1, \
259 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 26u, 13u, 75u, 40000u))
267#define BT_BAP_LC3_UNICAST_PRESET_8_2_2(_loc, _stream_context) \
268 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
269 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 30U, 1, \
271 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 30u, 13u, 95u, 40000u))
279#define BT_BAP_LC3_UNICAST_PRESET_16_1_2(_loc, _stream_context) \
280 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
281 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 30U, 1, \
283 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 30u, 13u, 75u, 40000u))
291#define BT_BAP_LC3_UNICAST_PRESET_16_2_2(_loc, _stream_context) \
292 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
293 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 40U, 1, \
295 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 40u, 13u, 95u, 40000u))
303#define BT_BAP_LC3_UNICAST_PRESET_24_1_2(_loc, _stream_context) \
304 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
305 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 45U, 1, \
307 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 45u, 13u, 75u, 40000u))
315#define BT_BAP_LC3_UNICAST_PRESET_24_2_2(_loc, _stream_context) \
316 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
317 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 60U, 1, \
319 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 60u, 13u, 95u, 40000u))
327#define BT_BAP_LC3_UNICAST_PRESET_32_1_2(_loc, _stream_context) \
328 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
329 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 60U, 1, \
331 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 60u, 13u, 75u, 40000u))
339#define BT_BAP_LC3_UNICAST_PRESET_32_2_2(_loc, _stream_context) \
340 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
341 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 80U, 1, \
343 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 80u, 13u, 95u, 40000u))
351#define BT_BAP_LC3_UNICAST_PRESET_441_1_2(_loc, _stream_context) \
352 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
353 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 97U, 1, \
355 BT_AUDIO_CODEC_QOS_FRAMED(8163u, 97u, 13u, 80u, 40000u))
363#define BT_BAP_LC3_UNICAST_PRESET_441_2_2(_loc, _stream_context) \
364 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
365 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 130U, 1, \
367 BT_AUDIO_CODEC_QOS_FRAMED(10884u, 130u, 13u, 85u, 40000u))
375#define BT_BAP_LC3_UNICAST_PRESET_48_1_2(_loc, _stream_context) \
376 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
377 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 75U, 1, \
379 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 75u, 13u, 75u, 40000u))
387#define BT_BAP_LC3_UNICAST_PRESET_48_2_2(_loc, _stream_context) \
388 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
389 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 100U, 1, \
391 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 100u, 13u, 95u, 40000u))
399#define BT_BAP_LC3_UNICAST_PRESET_48_3_2(_loc, _stream_context) \
400 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
401 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 90U, 1, \
403 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 90u, 13u, 75u, 40000u))
411#define BT_BAP_LC3_UNICAST_PRESET_48_4_2(_loc, _stream_context) \
412 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
413 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 120u, 1, \
415 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 120u, 13u, 100u, 40000u))
423#define BT_BAP_LC3_UNICAST_PRESET_48_5_2(_loc, _stream_context) \
424 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
425 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 117u, \
426 1, _stream_context), \
427 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 117u, 13u, 75u, 40000u))
435#define BT_BAP_LC3_UNICAST_PRESET_48_6_2(_loc, _stream_context) \
436 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
437 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 155u, 1, \
439 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 155u, 13u, 100u, 40000u))
448#define BT_BAP_LC3_BROADCAST_PRESET_8_1_1(_loc, _stream_context) \
449 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
450 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 26u, 1, \
452 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 26u, 2u, 8u, 40000u))
460#define BT_BAP_LC3_BROADCAST_PRESET_8_2_1(_loc, _stream_context) \
461 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
462 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 30U, 1, \
464 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 30u, 2u, 10u, 40000u))
472#define BT_BAP_LC3_BROADCAST_PRESET_16_1_1(_loc, _stream_context) \
473 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
474 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 30U, 1, \
476 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 30u, 2u, 8u, 40000u))
486#define BT_BAP_LC3_BROADCAST_PRESET_16_2_1(_loc, _stream_context) \
487 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
488 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 40U, 1, \
490 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 40u, 2u, 10u, 40000u))
498#define BT_BAP_LC3_BROADCAST_PRESET_24_1_1(_loc, _stream_context) \
499 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
500 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 45U, 1, \
502 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 45u, 2u, 8u, 40000u))
512#define BT_BAP_LC3_BROADCAST_PRESET_24_2_1(_loc, _stream_context) \
513 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
514 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 60U, 1, \
516 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 60u, 2u, 10u, 40000u))
524#define BT_BAP_LC3_BROADCAST_PRESET_32_1_1(_loc, _stream_context) \
525 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
526 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 60U, 1, \
528 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 60u, 2u, 8u, 40000u))
536#define BT_BAP_LC3_BROADCAST_PRESET_32_2_1(_loc, _stream_context) \
537 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
538 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 80U, 1, \
540 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 80u, 2u, 10u, 40000u))
548#define BT_BAP_LC3_BROADCAST_PRESET_441_1_1(_loc, _stream_context) \
549 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
550 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 97U, 1, \
552 BT_AUDIO_CODEC_QOS_FRAMED(8163u, 97u, 4u, 24u, 40000u))
560#define BT_BAP_LC3_BROADCAST_PRESET_441_2_1(_loc, _stream_context) \
561 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
562 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 130U, 1, \
564 BT_AUDIO_CODEC_QOS_FRAMED(10884u, 130u, 4u, 31u, 40000u))
572#define BT_BAP_LC3_BROADCAST_PRESET_48_1_1(_loc, _stream_context) \
573 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
574 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 75U, 1, \
576 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 75u, 4u, 15u, 40000u))
584#define BT_BAP_LC3_BROADCAST_PRESET_48_2_1(_loc, _stream_context) \
585 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
586 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 100U, 1, \
588 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 100u, 4u, 20u, 40000u))
596#define BT_BAP_LC3_BROADCAST_PRESET_48_3_1(_loc, _stream_context) \
597 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
598 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 90U, 1, \
600 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 90u, 4u, 15u, 40000u))
608#define BT_BAP_LC3_BROADCAST_PRESET_48_4_1(_loc, _stream_context) \
609 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
610 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 120u, 1, \
612 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 120u, 4u, 20u, 40000u))
620#define BT_BAP_LC3_BROADCAST_PRESET_48_5_1(_loc, _stream_context) \
621 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
622 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 117u, \
623 1, _stream_context), \
624 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 117u, 4u, 15u, 40000u))
632#define BT_BAP_LC3_BROADCAST_PRESET_48_6_1(_loc, _stream_context) \
633 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
634 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 155u, 1, \
636 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 155u, 4u, 20u, 40000u))
645#define BT_BAP_LC3_BROADCAST_PRESET_8_1_2(_loc, _stream_context) \
646 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
647 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 26u, 1, \
649 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 26u, 4u, 45u, 40000u))
657#define BT_BAP_LC3_BROADCAST_PRESET_8_2_2(_loc, _stream_context) \
658 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_8KHZ, \
659 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 30U, 1, \
661 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 30u, 4u, 60u, 40000u))
669#define BT_BAP_LC3_BROADCAST_PRESET_16_1_2(_loc, _stream_context) \
670 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
671 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 30U, 1, \
673 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 30u, 4u, 45u, 40000u))
683#define BT_BAP_LC3_BROADCAST_PRESET_16_2_2(_loc, _stream_context) \
684 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_16KHZ, \
685 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 40U, 1, \
687 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 40u, 4u, 60u, 40000u))
695#define BT_BAP_LC3_BROADCAST_PRESET_24_1_2(_loc, _stream_context) \
696 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
697 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 45U, 1, \
699 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 45u, 4u, 45u, 40000u))
709#define BT_BAP_LC3_BROADCAST_PRESET_24_2_2(_loc, _stream_context) \
710 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_24KHZ, \
711 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 60U, 1, \
713 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 60u, 4u, 60u, 40000u))
721#define BT_BAP_LC3_BROADCAST_PRESET_32_1_2(_loc, _stream_context) \
722 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
723 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 60U, 1, \
725 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 60u, 4u, 45u, 40000u))
733#define BT_BAP_LC3_BROADCAST_PRESET_32_2_2(_loc, _stream_context) \
734 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_32KHZ, \
735 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 80U, 1, \
737 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 80u, 4u, 60u, 40000u))
745#define BT_BAP_LC3_BROADCAST_PRESET_441_1_2(_loc, _stream_context) \
746 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
747 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 97U, 1, \
749 BT_AUDIO_CODEC_QOS_FRAMED(8163u, 97u, 4u, 54u, 40000u))
757#define BT_BAP_LC3_BROADCAST_PRESET_441_2_2(_loc, _stream_context) \
758 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_44KHZ, \
759 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 130U, 1, \
761 BT_AUDIO_CODEC_QOS_FRAMED(10884u, 130u, 4u, 60u, 40000u))
769#define BT_BAP_LC3_BROADCAST_PRESET_48_1_2(_loc, _stream_context) \
770 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
771 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 75U, 1, \
773 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 75u, 4u, 50u, 40000u))
781#define BT_BAP_LC3_BROADCAST_PRESET_48_2_2(_loc, _stream_context) \
782 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
783 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 100U, 1, \
785 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 100u, 4u, 65u, 40000u))
793#define BT_BAP_LC3_BROADCAST_PRESET_48_3_2(_loc, _stream_context) \
794 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
795 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 90U, 1, \
797 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 90u, 4u, 50u, 40000u))
805#define BT_BAP_LC3_BROADCAST_PRESET_48_4_2(_loc, _stream_context) \
806 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
807 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 120u, 1, \
809 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 120u, 4u, 65u, 40000u))
817#define BT_BAP_LC3_BROADCAST_PRESET_48_5_2(_loc, _stream_context) \
818 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
819 BT_AUDIO_CODEC_CFG_DURATION_7_5, _loc, 117u, \
820 1, _stream_context), \
821 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 117u, 4u, 50u, 40000u))
829#define BT_BAP_LC3_BROADCAST_PRESET_48_6_2(_loc, _stream_context) \
830 BT_BAP_LC3_PRESET(BT_AUDIO_CODEC_LC3_CONFIG(BT_AUDIO_CODEC_CFG_FREQ_48KHZ, \
831 BT_AUDIO_CODEC_CFG_DURATION_10, _loc, 155u, 1, \
833 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 155u, 4u, 65u, 40000u))
Bluetooth Audio handling.
Bluetooth LC3 codec handling.
Codec specific configuration structure.
Definition audio.h:703
Codec QoS structure.
Definition audio.h:849
Struct to hold a BAP defined LC3 preset.
Definition bap_lc3_preset.h:37
struct bt_audio_codec_cfg codec_cfg
The LC3 Codec.
Definition bap_lc3_preset.h:39
struct bt_audio_codec_qos qos
The BAP spec defined QoS values.
Definition bap_lc3_preset.h:41