Zephyr Project API 3.7.0
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
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
43
45#define BT_BAP_LC3_PRESET(_codec, _qos) \
46 { \
47 .codec_cfg = _codec, .qos = _qos, \
48 }
49
50/* LC3 Unicast presets defined by table 5.2 in the BAP v1.0 specification */
51
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, \
61 _stream_context), \
62 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 26u, 2u, 8u, 40000u))
63
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, \
73 _stream_context), \
74 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 30u, 2u, 10u, 40000u))
75
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, \
85 _stream_context), \
86 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 30u, 2u, 8u, 40000u))
87
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, \
99 _stream_context), \
100 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 40u, 2u, 10u, 40000u))
101
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, \
111 _stream_context), \
112 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 45u, 2u, 8u, 40000u))
113
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, \
125 _stream_context), \
126 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 60u, 2u, 10u, 40000u))
127
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, \
137 _stream_context), \
138 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 60u, 2u, 8u, 40000u))
139
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, \
149 _stream_context), \
150 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 80u, 2u, 10u, 40000u))
151
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, \
161 _stream_context), \
162 BT_AUDIO_CODEC_QOS_FRAMED(8163u, 97u, 5u, 24u, 40000u))
163
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, \
173 _stream_context), \
174 BT_AUDIO_CODEC_QOS_FRAMED(10884u, 130u, 5u, 31u, 40000u))
175
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, \
185 _stream_context), \
186 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 75u, 5u, 15u, 40000u))
187
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, \
197 _stream_context), \
198 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 100u, 5u, 20u, 40000u))
199
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, \
209 _stream_context), \
210 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 90u, 5u, 15u, 40000u))
211
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, \
221 _stream_context), \
222 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 120u, 5u, 20u, 40000u))
223
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))
235
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, \
245 _stream_context), \
246 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 155u, 5u, 20u, 40000u))
247
254/* Following presets are for unicast high reliability audio data */
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, \
258 _stream_context), \
259 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 26u, 13u, 75u, 40000u))
260
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, \
270 _stream_context), \
271 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 30u, 13u, 95u, 40000u))
272
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, \
282 _stream_context), \
283 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 30u, 13u, 75u, 40000u))
284
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, \
294 _stream_context), \
295 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 40u, 13u, 95u, 40000u))
296
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, \
306 _stream_context), \
307 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 45u, 13u, 75u, 40000u))
308
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, \
318 _stream_context), \
319 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 60u, 13u, 95u, 40000u))
320
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, \
330 _stream_context), \
331 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 60u, 13u, 75u, 40000u))
332
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, \
342 _stream_context), \
343 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 80u, 13u, 95u, 40000u))
344
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, \
354 _stream_context), \
355 BT_AUDIO_CODEC_QOS_FRAMED(8163u, 97u, 13u, 80u, 40000u))
356
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, \
366 _stream_context), \
367 BT_AUDIO_CODEC_QOS_FRAMED(10884u, 130u, 13u, 85u, 40000u))
368
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, \
378 _stream_context), \
379 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 75u, 13u, 75u, 40000u))
380
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, \
390 _stream_context), \
391 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 100u, 13u, 95u, 40000u))
392
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, \
402 _stream_context), \
403 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 90u, 13u, 75u, 40000u))
404
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, \
414 _stream_context), \
415 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 120u, 13u, 100u, 40000u))
416
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))
428
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, \
438 _stream_context), \
439 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 155u, 13u, 100u, 40000u))
440
447/* LC3 Broadcast presets defined by table 6.4 in the BAP v1.0 specification */
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, \
451 _stream_context), \
452 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 26u, 2u, 8u, 40000u))
453
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, \
463 _stream_context), \
464 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 30u, 2u, 10u, 40000u))
465
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, \
475 _stream_context), \
476 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 30u, 2u, 8u, 40000u))
477
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, \
489 _stream_context), \
490 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 40u, 2u, 10u, 40000u))
491
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, \
501 _stream_context), \
502 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 45u, 2u, 8u, 40000u))
503
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, \
515 _stream_context), \
516 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 60u, 2u, 10u, 40000u))
517
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, \
527 _stream_context), \
528 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 60u, 2u, 8u, 40000u))
529
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, \
539 _stream_context), \
540 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 80u, 2u, 10u, 40000u))
541
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, \
551 _stream_context), \
552 BT_AUDIO_CODEC_QOS_FRAMED(8163u, 97u, 4u, 24u, 40000u))
553
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, \
563 _stream_context), \
564 BT_AUDIO_CODEC_QOS_FRAMED(10884u, 130u, 4u, 31u, 40000u))
565
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, \
575 _stream_context), \
576 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 75u, 4u, 15u, 40000u))
577
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, \
587 _stream_context), \
588 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 100u, 4u, 20u, 40000u))
589
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, \
599 _stream_context), \
600 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 90u, 4u, 15u, 40000u))
601
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, \
611 _stream_context), \
612 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 120u, 4u, 20u, 40000u))
613
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))
625
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, \
635 _stream_context), \
636 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 155u, 4u, 20u, 40000u))
637
644/* Following presets are for broadcast high reliability audio data */
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, \
648 _stream_context), \
649 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 26u, 4u, 45u, 40000u))
650
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, \
660 _stream_context), \
661 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 30u, 4u, 60u, 40000u))
662
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, \
672 _stream_context), \
673 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 30u, 4u, 45u, 40000u))
674
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, \
686 _stream_context), \
687 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 40u, 4u, 60u, 40000u))
688
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, \
698 _stream_context), \
699 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 45u, 4u, 45u, 40000u))
700
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, \
712 _stream_context), \
713 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 60u, 4u, 60u, 40000u))
714
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, \
724 _stream_context), \
725 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 60u, 4u, 45u, 40000u))
726
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, \
736 _stream_context), \
737 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 80u, 4u, 60u, 40000u))
738
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, \
748 _stream_context), \
749 BT_AUDIO_CODEC_QOS_FRAMED(8163u, 97u, 4u, 54u, 40000u))
750
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, \
760 _stream_context), \
761 BT_AUDIO_CODEC_QOS_FRAMED(10884u, 130u, 4u, 60u, 40000u))
762
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, \
772 _stream_context), \
773 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 75u, 4u, 50u, 40000u))
774
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, \
784 _stream_context), \
785 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 100u, 4u, 65u, 40000u))
786
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, \
796 _stream_context), \
797 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 90u, 4u, 50u, 40000u))
798
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, \
808 _stream_context), \
809 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 120u, 4u, 65u, 40000u))
810
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))
822
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, \
832 _stream_context), \
833 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 155u, 4u, 65u, 40000u))
834
835#ifdef __cplusplus
836}
837#endif
840#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_BAP_LC3_PRESET_ */
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