Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bap_lc3_preset.h
Go to the documentation of this file.
1
9#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_BAP_LC3_PRESET_
10#define ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_BAP_LC3_PRESET_
11
13
20};
21
23#define BT_BAP_LC3_PRESET(_codec, _qos) \
24 { \
25 .codec_cfg = _codec, .qos = _qos, \
26 }
27
28/* LC3 Unicast presets defined by table 5.2 in the BAP v1.0 specification */
29
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, \
39 _stream_context), \
40 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 26u, 2u, 8u, 40000u))
41
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, \
51 _stream_context), \
52 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 30u, 2u, 10u, 40000u))
53
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, \
63 _stream_context), \
64 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 30u, 2u, 8u, 40000u))
65
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, \
77 _stream_context), \
78 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 40u, 2u, 10u, 40000u))
79
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, \
89 _stream_context), \
90 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 45u, 2u, 8u, 40000u))
91
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, \
103 _stream_context), \
104 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 60u, 2u, 10u, 40000u))
105
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, \
115 _stream_context), \
116 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 60u, 2u, 8u, 40000u))
117
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, \
127 _stream_context), \
128 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 80u, 2u, 10u, 40000u))
129
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, \
139 _stream_context), \
140 BT_AUDIO_CODEC_QOS_FRAMED(8163u, 97u, 5u, 24u, 40000u))
141
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, \
151 _stream_context), \
152 BT_AUDIO_CODEC_QOS_FRAMED(10884u, 130u, 5u, 31u, 40000u))
153
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, \
163 _stream_context), \
164 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 75u, 5u, 15u, 40000u))
165
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, \
175 _stream_context), \
176 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 100u, 5u, 20u, 40000u))
177
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, \
187 _stream_context), \
188 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 90u, 5u, 15u, 40000u))
189
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, \
199 _stream_context), \
200 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 120u, 5u, 20u, 40000u))
201
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))
213
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, \
223 _stream_context), \
224 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 155u, 5u, 20u, 40000u))
225
232/* Following presets are for unicast high reliability audio data */
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, \
236 _stream_context), \
237 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 26u, 13u, 75u, 40000u))
238
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, \
248 _stream_context), \
249 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 30u, 13u, 95u, 40000u))
250
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, \
260 _stream_context), \
261 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 30u, 13u, 75u, 40000u))
262
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, \
272 _stream_context), \
273 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 40u, 13u, 95u, 40000u))
274
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, \
284 _stream_context), \
285 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 45u, 13u, 75u, 40000u))
286
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, \
296 _stream_context), \
297 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 60u, 13u, 95u, 40000u))
298
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, \
308 _stream_context), \
309 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 60u, 13u, 75u, 40000u))
310
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, \
320 _stream_context), \
321 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 80u, 13u, 95u, 40000u))
322
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, \
332 _stream_context), \
333 BT_AUDIO_CODEC_QOS_FRAMED(8163u, 97u, 13u, 80u, 40000u))
334
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, \
344 _stream_context), \
345 BT_AUDIO_CODEC_QOS_FRAMED(10884u, 130u, 13u, 85u, 40000u))
346
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, \
356 _stream_context), \
357 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 75u, 13u, 75u, 40000u))
358
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, \
368 _stream_context), \
369 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 100u, 13u, 95u, 40000u))
370
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, \
380 _stream_context), \
381 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 90u, 13u, 75u, 40000u))
382
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, \
392 _stream_context), \
393 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 120u, 13u, 100u, 40000u))
394
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))
406
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, \
416 _stream_context), \
417 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 155u, 13u, 100u, 40000u))
418
425/* LC3 Broadcast presets defined by table 6.4 in the BAP v1.0 specification */
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, \
429 _stream_context), \
430 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 26u, 2u, 8u, 40000u))
431
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, \
441 _stream_context), \
442 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 30u, 2u, 10u, 40000u))
443
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, \
453 _stream_context), \
454 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 30u, 2u, 8u, 40000u))
455
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, \
467 _stream_context), \
468 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 40u, 2u, 10u, 40000u))
469
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, \
479 _stream_context), \
480 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 45u, 2u, 8u, 40000u))
481
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, \
493 _stream_context), \
494 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 60u, 2u, 10u, 40000u))
495
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, \
505 _stream_context), \
506 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 60u, 2u, 8u, 40000u))
507
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, \
517 _stream_context), \
518 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 80u, 2u, 10u, 40000u))
519
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, \
529 _stream_context), \
530 BT_AUDIO_CODEC_QOS_FRAMED(8163u, 97u, 4u, 24u, 40000u))
531
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, \
541 _stream_context), \
542 BT_AUDIO_CODEC_QOS_FRAMED(10884u, 130u, 4u, 31u, 40000u))
543
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, \
553 _stream_context), \
554 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 75u, 4u, 15u, 40000u))
555
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, \
565 _stream_context), \
566 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 100u, 4u, 20u, 40000u))
567
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, \
577 _stream_context), \
578 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 90u, 4u, 15u, 40000u))
579
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, \
589 _stream_context), \
590 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 120u, 4u, 20u, 40000u))
591
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))
603
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, \
613 _stream_context), \
614 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 155u, 4u, 20u, 40000u))
615
622/* Following presets are for broadcast high reliability audio data */
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, \
626 _stream_context), \
627 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 26u, 4u, 45u, 40000u))
628
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, \
638 _stream_context), \
639 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 30u, 4u, 60u, 40000u))
640
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, \
650 _stream_context), \
651 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 30u, 4u, 45u, 40000u))
652
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, \
664 _stream_context), \
665 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 40u, 4u, 60u, 40000u))
666
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, \
676 _stream_context), \
677 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 45u, 4u, 45u, 40000u))
678
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, \
690 _stream_context), \
691 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 60u, 4u, 60u, 40000u))
692
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, \
702 _stream_context), \
703 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 60u, 4u, 45u, 40000u))
704
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, \
714 _stream_context), \
715 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 80u, 4u, 60u, 40000u))
716
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, \
726 _stream_context), \
727 BT_AUDIO_CODEC_QOS_FRAMED(8163u, 97u, 4u, 54u, 40000u))
728
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, \
738 _stream_context), \
739 BT_AUDIO_CODEC_QOS_FRAMED(10884u, 130u, 4u, 60u, 40000u))
740
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, \
750 _stream_context), \
751 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 75u, 4u, 50u, 40000u))
752
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, \
762 _stream_context), \
763 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 100u, 4u, 65u, 40000u))
764
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, \
774 _stream_context), \
775 BT_AUDIO_CODEC_QOS_UNFRAMED(7500u, 90u, 4u, 50u, 40000u))
776
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, \
786 _stream_context), \
787 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 120u, 4u, 65u, 40000u))
788
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))
800
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, \
810 _stream_context), \
811 BT_AUDIO_CODEC_QOS_UNFRAMED(10000u, 155u, 4u, 65u, 40000u))
812
813#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_BAP_LC3_PRESET_ */
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