summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorExtremeXT <75576145+ExtremeXT@users.noreply.github.com>2025-08-25 13:49:51 +0300
committertechyguyperplexable <hlcj1234567@gmail.com>2025-08-25 16:20:18 +0100
commit337d4065b6d2b1a301f25e3cb593580b79a59f73 (patch)
treeb98d34b885f1db7f8c61c6f23748a6000555b72d
parentea6a958cc17d83d4c500b9b0cbfa1bd1b3f5ee99 (diff)
universal9830: Remove A2DP Offload from blueprint
* Exynos 990's A2DP Offload 2.0 was unfortunately killed in https://github.com/LineageOS/android_hardware_samsung_slsi-linaro_interfaces/commit/1610021dfbfbfaf0ef7803032fe523dc5067d5a1 Change-Id: I6eca79a902c509ad2b1f386d477b396a6e60e95f Signed-off-by: ExtremeXT <75576145+ExtremeXT@users.noreply.github.com>
-rw-r--r--hardware/audio/proxy/Android.bp128
1 files changed, 128 insertions, 0 deletions
diff --git a/hardware/audio/proxy/Android.bp b/hardware/audio/proxy/Android.bp
new file mode 100644
index 0000000..8f1e7ce
--- /dev/null
+++ b/hardware/audio/proxy/Android.bp
@@ -0,0 +1,128 @@
+// Copyright (C) 2017 The Android Open Source Project
+// Copyright (C) 2025 The LineageOS Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+soong_config_module_type {
+ name: "audioproxy",
+ module_type: "cc_defaults",
+ config_namespace: "universal9830AudioVars",
+ bool_variables: [
+ "use_camcorder_quad_mic",
+ "use_direct_rcvspk_path",
+ "use_sec_audio_dump",
+ "use_sec_audio_dynamic_nrec",
+ "use_sec_audio_param_update",
+ "use_sec_audio_resampler",
+ "use_sec_audio_samsungrecord",
+ "use_sec_audio_sound_trigger_enabled",
+ "use_sec_audio_support_gamechat_spk_aec",
+ "use_sec_audio_support_listenback_dspeffect",
+ "use_soundtrigger_hal",
+ "use_usb_offload",
+ "use_quad_mic",
+ ],
+ properties: [
+ "cflags",
+ "shared_libs",
+ "srcs",
+ ],
+}
+
+audioproxy {
+ name: "audioproxy_defaults",
+ soong_config_variables: {
+ use_camcorder_quad_mic: {
+ cflags: ["-DSUPPORT_CAMCORDER_QUAD_MIC"],
+ },
+ use_direct_rcvspk_path: {
+ cflags: ["-DSUPPORT_DIRECT_RCVSPK_PATH"],
+ },
+ use_sec_audio_dump: {
+ cflags: ["-DSEC_AUDIO_DUMP"],
+ },
+ use_sec_audio_dynamic_nrec: {
+ cflags: ["-DSEC_AUDIO_DYNAMIC_NREC"],
+ },
+ use_sec_audio_param_update: {
+ cflags: ["-DSEC_AUDIO_PARAM_UPDATE"],
+ },
+ use_sec_audio_resampler: {
+ cflags: ["-DSEC_AUDIO_RESAMPLER"],
+ shared_libs: [
+ "libSamsungPostProcessConvertor",
+ ],
+ },
+ use_sec_audio_samsungrecord: {
+ cflags: ["-DSEC_AUDIO_SAMSUNGRECORD"],
+ },
+ use_sec_audio_sound_trigger_enabled: {
+ cflags: ["-DSEC_AUDIO_SOUND_TRIGGER_ENABLED"],
+ },
+ use_sec_audio_support_gamechat_spk_aec: {
+ cflags: ["-DSEC_AUDIO_SUPPORT_GAMECHAT_SPK_AEC"],
+ },
+ use_sec_audio_support_listenback_dspeffect: {
+ cflags: ["-DSEC_AUDIO_SUPPORT_LISTENBACK_DSPEFFECT"],
+ },
+ use_soundtrigger_hal: {
+ cflags: [
+ "-DSUPPORT_STHAL_INTERFACE",
+ "-DTARGET_SOC_NAME=exynos9830",
+ ],
+ },
+ use_usb_offload: {
+ cflags: ["-DSUPPORT_USB_OFFLOAD"],
+ srcs: ["audio_usb_proxy.c"],
+ },
+ use_quad_mic: {
+ cflags: ["-DSUPPORT_QUAD_MIC"],
+ },
+ },
+}
+
+cc_library_shared {
+ name: "libaudioproxy",
+ defaults: ["audioproxy_defaults"],
+ vendor: true,
+
+ srcs: [
+ "audio_proxy.c",
+ ],
+ include_dirs: [
+ "hardware/samsung_slsi-linaro/exynos/include/libaudio/audiohal_comv1",
+ "hardware/samsung_slsi-linaro/exynos/libaudio/audiohal_comv1/odm_specific",
+ "external/tinyalsa/include",
+ "external/tinycompress/include",
+ "external/kernel-headers/original/uapi/sound",
+ "external/expat/lib",
+ ],
+
+ header_libs: ["libhardware_headers"],
+ shared_libs: [
+ "liblog",
+ "libcutils",
+ "libtinyalsa",
+ "libtinycompress",
+ "libaudioutils",
+ "libaudioroute",
+ "libalsautils",
+ "libexpat",
+ ],
+ cflags: [
+ "-Wno-unused-parameter",
+ "-Wno-unused-variable",
+ "-Wno-unused-function",
+ "-DSUPPORT_MCD_FEATURE",
+ ],
+}