Skip to content

Commit 690859b

Browse files
Casper-Bonde-Bosecarlescufi
authored andcommitted
Replace old LC3 codec with new c-version from Android
Android replaced the EHIMA cpp-version of the LC3 codec with a c-version. This commit brings that change to the Zephyr repo. Origin: Android License: Apache Version 2.0 URL: https://android.googlesource.com/platform/packages/modules/Bluetooth Path: system/embdrv/lc3 commit: 8f665669c0c1f0601cb4cfbfc1c71702fc24827b Purpose: Introduction of LC3 codec for Bluetooth audio. Signed-off-by: Casper Bonde <[email protected]>
1 parent 6e8ad0b commit 690859b

File tree

135 files changed

+9946
-17463
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+9946
-17463
lines changed

Android.bp

Lines changed: 40 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
1+
package {
2+
// See: http://go/android-license-faq
3+
// A large-scale-change added 'default_applicable_licenses' to import
4+
// all of the 'license_kinds' from "system_bt_license"
5+
// to get the below license kinds:
6+
// SPDX-license-identifier-Apache-2.0
7+
default_applicable_licenses: ["system_bt_license"],
8+
}
9+
110
cc_library_static {
2-
name: "liblc3codec",
11+
name: "liblc3",
12+
host_supported: true,
313
apex_available: [
414

515
"//apex_available:platform",
6-
"com.android.bluetooth.updatable"
16+
"com.android.bluetooth"
717
],
818
defaults: ["fluoride_defaults"],
919
srcs: [
10-
"Common/*.cpp",
11-
"Common/Tables/*.cpp",
12-
"Encoder/*.cpp",
13-
"Decoder/*.cpp",
14-
"TestSupport/DatapointsAndroid.cpp",
20+
"src/*.c",
1521
],
1622
cflags: [
23+
"-O3",
24+
"-ffast-math",
1725
"-Werror",
1826
"-Wmissing-braces",
1927
"-Wno-unused-parameter",
@@ -22,22 +30,32 @@ cc_library_static {
2230
"-Wno-self-assign",
2331
"-Wno-implicit-fallthrough",
2432
],
25-
sanitize: {
26-
misc_undefined:[
27-
"unsigned-integer-overflow",
28-
"signed-integer-overflow",
29-
"bounds",
30-
],
31-
cfi: true,
33+
target: {
34+
android: {
35+
sanitize: {
36+
misc_undefined:[
37+
"unsigned-integer-overflow",
38+
"signed-integer-overflow",
39+
"bounds",
40+
],
41+
cfi: true,
42+
},
43+
},
3244
},
33-
shared_libs: [
34-
"liblog",
35-
],
3645
export_include_dirs: [
37-
"Api",
38-
"Common",
39-
"Common/Tables",
40-
"Common/KissFft",
41-
"TestSupport",
46+
"include",
4247
],
4348
}
49+
50+
cc_fuzz {
51+
name: "liblc3_fuzzer",
52+
53+
srcs: [
54+
"fuzzer/liblc3_fuzzer.cpp",
55+
],
56+
57+
static_libs: [
58+
"liblc3",
59+
],
60+
}
61+

Api/Lc3Config.hpp

Lines changed: 0 additions & 195 deletions
This file was deleted.

0 commit comments

Comments
 (0)