Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bap_lc3_preset.h
Go to the documentation of this file.
1
10#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_BAP_LC3_PRESET_
11#define ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_BAP_LC3_PRESET_
12
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
44
46#define BT_BAP_LC3_PRESET(_codec, _qos) \
47 { \
48 .codec_cfg = _codec, .qos = _qos, \
49 }
50
51/* LC3 Unicast presets defined by table 5.2 in the BAP v1.0 specification */
52
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, \
62 _stream_context), \
63 BT_BAP_QOS_CFG_UNFRAMED(7500u, 26u, 2u, 8u, 40000u))
64
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, \
74 _stream_context), \
75 BT_BAP_QOS_CFG_UNFRAMED(10000u, 30u, 2u, 10u, 40000u))
76
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, \
86 _stream_context), \
87 BT_BAP_QOS_CFG_UNFRAMED(7500u, 30u, 2u, 8u, 40000u))
88
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, \
100 _stream_context), \
101 BT_BAP_QOS_CFG_UNFRAMED(10000u, 40u, 2u, 10u, 40000u))
102
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, \
112 _stream_context), \
113 BT_BAP_QOS_CFG_UNFRAMED(7500u, 45u, 2u, 8u, 40000u))
114
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, \
126 _stream_context), \
127 BT_BAP_QOS_CFG_UNFRAMED(10000u, 60u, 2u, 10u, 40000u))
128
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, \
138 _stream_context), \
139 BT_BAP_QOS_CFG_UNFRAMED(7500u, 60u, 2u, 8u, 40000u))
140
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, \
150 _stream_context), \
151 BT_BAP_QOS_CFG_UNFRAMED(10000u, 80u, 2u, 10u, 40000u))
152
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, \
162 _stream_context), \
163 BT_BAP_QOS_CFG_FRAMED(8163u, 97u, 5u, 24u, 40000u))
164
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, \
174 _stream_context), \
175 BT_BAP_QOS_CFG_FRAMED(10884u, 130u, 5u, 31u, 40000u))
176
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, \
186 _stream_context), \
187 BT_BAP_QOS_CFG_UNFRAMED(7500u, 75u, 5u, 15u, 40000u))
188
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, \
198 _stream_context), \
199 BT_BAP_QOS_CFG_UNFRAMED(10000u, 100u, 5u, 20u, 40000u))
200
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, \
210 _stream_context), \
211 BT_BAP_QOS_CFG_UNFRAMED(7500u, 90u, 5u, 15u, 40000u))
212
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, \
222 _stream_context), \
223 BT_BAP_QOS_CFG_UNFRAMED(10000u, 120u, 5u, 20u, 40000u))
224
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))
236
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, \
246 _stream_context), \
247 BT_BAP_QOS_CFG_UNFRAMED(10000u, 155u, 5u, 20u, 40000u))
248
255/* Following presets are for unicast high reliability audio data */
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, \
259 _stream_context), \
260 BT_BAP_QOS_CFG_UNFRAMED(7500u, 26u, 13u, 75u, 40000u))
261
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, \
271 _stream_context), \
272 BT_BAP_QOS_CFG_UNFRAMED(10000u, 30u, 13u, 95u, 40000u))
273
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, \
283 _stream_context), \
284 BT_BAP_QOS_CFG_UNFRAMED(7500u, 30u, 13u, 75u, 40000u))
285
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, \
295 _stream_context), \
296 BT_BAP_QOS_CFG_UNFRAMED(10000u, 40u, 13u, 95u, 40000u))
297
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, \
307 _stream_context), \
308 BT_BAP_QOS_CFG_UNFRAMED(7500u, 45u, 13u, 75u, 40000u))
309
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, \
319 _stream_context), \
320 BT_BAP_QOS_CFG_UNFRAMED(10000u, 60u, 13u, 95u, 40000u))
321
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, \
331 _stream_context), \
332 BT_BAP_QOS_CFG_UNFRAMED(7500u, 60u, 13u, 75u, 40000u))
333
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, \
343 _stream_context), \
344 BT_BAP_QOS_CFG_UNFRAMED(10000u, 80u, 13u, 95u, 40000u))
345
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, \
355 _stream_context), \
356 BT_BAP_QOS_CFG_FRAMED(8163u, 97u, 13u, 80u, 40000u))
357
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, \
367 _stream_context), \
368 BT_BAP_QOS_CFG_FRAMED(10884u, 130u, 13u, 85u, 40000u))
369
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, \
379 _stream_context), \
380 BT_BAP_QOS_CFG_UNFRAMED(7500u, 75u, 13u, 75u, 40000u))
381
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, \
391 _stream_context), \
392 BT_BAP_QOS_CFG_UNFRAMED(10000u, 100u, 13u, 95u, 40000u))
393
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, \
403 _stream_context), \
404 BT_BAP_QOS_CFG_UNFRAMED(7500u, 90u, 13u, 75u, 40000u))
405
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, \
415 _stream_context), \
416 BT_BAP_QOS_CFG_UNFRAMED(10000u, 120u, 13u, 100u, 40000u))
417
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))
429
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, \
439 _stream_context), \
440 BT_BAP_QOS_CFG_UNFRAMED(10000u, 155u, 13u, 100u, 40000u))
441
448/* LC3 Broadcast presets defined by table 6.4 in the BAP v1.0 specification */
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, \
452 _stream_context), \
453 BT_BAP_QOS_CFG_UNFRAMED(7500u, 26u, 2u, 8u, 40000u))
454
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, \
464 _stream_context), \
465 BT_BAP_QOS_CFG_UNFRAMED(10000u, 30u, 2u, 10u, 40000u))
466
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, \
476 _stream_context), \
477 BT_BAP_QOS_CFG_UNFRAMED(7500u, 30u, 2u, 8u, 40000u))
478
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, \
490 _stream_context), \
491 BT_BAP_QOS_CFG_UNFRAMED(10000u, 40u, 2u, 10u, 40000u))
492
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, \
502 _stream_context), \
503 BT_BAP_QOS_CFG_UNFRAMED(7500u, 45u, 2u, 8u, 40000u))
504
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, \
516 _stream_context), \
517 BT_BAP_QOS_CFG_UNFRAMED(10000u, 60u, 2u, 10u, 40000u))
518
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, \
528 _stream_context), \
529 BT_BAP_QOS_CFG_UNFRAMED(7500u, 60u, 2u, 8u, 40000u))
530
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, \
540 _stream_context), \
541 BT_BAP_QOS_CFG_UNFRAMED(10000u, 80u, 2u, 10u, 40000u))
542
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, \
552 _stream_context), \
553 BT_BAP_QOS_CFG_FRAMED(8163u, 97u, 4u, 24u, 40000u))
554
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, \
564 _stream_context), \
565 BT_BAP_QOS_CFG_FRAMED(10884u, 130u, 4u, 31u, 40000u))
566
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, \
576 _stream_context), \
577 BT_BAP_QOS_CFG_UNFRAMED(7500u, 75u, 4u, 15u, 40000u))
578
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, \
588 _stream_context), \
589 BT_BAP_QOS_CFG_UNFRAMED(10000u, 100u, 4u, 20u, 40000u))
590
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, \
600 _stream_context), \
601 BT_BAP_QOS_CFG_UNFRAMED(7500u, 90u, 4u, 15u, 40000u))
602
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, \
612 _stream_context), \
613 BT_BAP_QOS_CFG_UNFRAMED(10000u, 120u, 4u, 20u, 40000u))
614
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))
626
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, \
636 _stream_context), \
637 BT_BAP_QOS_CFG_UNFRAMED(10000u, 155u, 4u, 20u, 40000u))
638
645/* Following presets are for broadcast high reliability audio data */
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, \
649 _stream_context), \
650 BT_BAP_QOS_CFG_UNFRAMED(7500u, 26u, 4u, 45u, 40000u))
651
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, \
661 _stream_context), \
662 BT_BAP_QOS_CFG_UNFRAMED(10000u, 30u, 4u, 60u, 40000u))
663
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, \
673 _stream_context), \
674 BT_BAP_QOS_CFG_UNFRAMED(7500u, 30u, 4u, 45u, 40000u))
675
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, \
687 _stream_context), \
688 BT_BAP_QOS_CFG_UNFRAMED(10000u, 40u, 4u, 60u, 40000u))
689
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, \
699 _stream_context), \
700 BT_BAP_QOS_CFG_UNFRAMED(7500u, 45u, 4u, 45u, 40000u))
701
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, \
713 _stream_context), \
714 BT_BAP_QOS_CFG_UNFRAMED(10000u, 60u, 4u, 60u, 40000u))
715
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, \
725 _stream_context), \
726 BT_BAP_QOS_CFG_UNFRAMED(7500u, 60u, 4u, 45u, 40000u))
727
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, \
737 _stream_context), \
738 BT_BAP_QOS_CFG_UNFRAMED(10000u, 80u, 4u, 60u, 40000u))
739
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, \
749 _stream_context), \
750 BT_BAP_QOS_CFG_FRAMED(8163u, 97u, 4u, 54u, 40000u))
751
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, \
761 _stream_context), \
762 BT_BAP_QOS_CFG_FRAMED(10884u, 130u, 4u, 60u, 40000u))
763
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, \
773 _stream_context), \
774 BT_BAP_QOS_CFG_UNFRAMED(7500u, 75u, 4u, 50u, 40000u))
775
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, \
785 _stream_context), \
786 BT_BAP_QOS_CFG_UNFRAMED(10000u, 100u, 4u, 65u, 40000u))
787
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, \
797 _stream_context), \
798 BT_BAP_QOS_CFG_UNFRAMED(7500u, 90u, 4u, 50u, 40000u))
799
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, \
809 _stream_context), \
810 BT_BAP_QOS_CFG_UNFRAMED(10000u, 120u, 4u, 65u, 40000u))
811
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))
823
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, \
833 _stream_context), \
834 BT_BAP_QOS_CFG_UNFRAMED(10000u, 155u, 4u, 65u, 40000u))
835
836#ifdef __cplusplus
837}
838#endif
841#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_BAP_LC3_PRESET_ */
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