diff --git a/audio/caiman/prebuilt/libspeechenhancer/Android.bp b/audio/caiman/prebuilt/libspeechenhancer/Android.bp new file mode 100644 index 00000000..5b4b8ae8 --- /dev/null +++ b/audio/caiman/prebuilt/libspeechenhancer/Android.bp @@ -0,0 +1,41 @@ +// Copyright (C) 2024 The Android Open Source 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_namespace { +} + +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + +cc_prebuilt_library_shared { + name: "libspeechenhancer", + vendor: true, + owner: "google", + proprietary: true, + allow_undefined_symbols: true, + arch: { + arm64: { + srcs: ["arm64/libspeechenhancer.so"], + }, + }, + + shared_libs: [ + "libcutils", + "libEGL", + "libGLESv2", + "liblog", + "libz", + "libnativewindow", + ], +} diff --git a/audio/caiman/prebuilt/libspeechenhancer/arm64/libspeechenhancer.so b/audio/caiman/prebuilt/libspeechenhancer/arm64/libspeechenhancer.so new file mode 100644 index 00000000..f9fca0e8 Binary files /dev/null and b/audio/caiman/prebuilt/libspeechenhancer/arm64/libspeechenhancer.so differ diff --git a/audio/komodo/prebuilt/libspeechenhancer/Android.bp b/audio/komodo/prebuilt/libspeechenhancer/Android.bp new file mode 100644 index 00000000..5b4b8ae8 --- /dev/null +++ b/audio/komodo/prebuilt/libspeechenhancer/Android.bp @@ -0,0 +1,41 @@ +// Copyright (C) 2024 The Android Open Source 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_namespace { +} + +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + +cc_prebuilt_library_shared { + name: "libspeechenhancer", + vendor: true, + owner: "google", + proprietary: true, + allow_undefined_symbols: true, + arch: { + arm64: { + srcs: ["arm64/libspeechenhancer.so"], + }, + }, + + shared_libs: [ + "libcutils", + "libEGL", + "libGLESv2", + "liblog", + "libz", + "libnativewindow", + ], +} diff --git a/audio/komodo/prebuilt/libspeechenhancer/arm64/libspeechenhancer.so b/audio/komodo/prebuilt/libspeechenhancer/arm64/libspeechenhancer.so new file mode 100644 index 00000000..f9fca0e8 Binary files /dev/null and b/audio/komodo/prebuilt/libspeechenhancer/arm64/libspeechenhancer.so differ diff --git a/audio/tokay/prebuilt/libspeechenhancer/Android.bp b/audio/tokay/prebuilt/libspeechenhancer/Android.bp new file mode 100644 index 00000000..5b4b8ae8 --- /dev/null +++ b/audio/tokay/prebuilt/libspeechenhancer/Android.bp @@ -0,0 +1,41 @@ +// Copyright (C) 2024 The Android Open Source 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_namespace { +} + +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + +cc_prebuilt_library_shared { + name: "libspeechenhancer", + vendor: true, + owner: "google", + proprietary: true, + allow_undefined_symbols: true, + arch: { + arm64: { + srcs: ["arm64/libspeechenhancer.so"], + }, + }, + + shared_libs: [ + "libcutils", + "libEGL", + "libGLESv2", + "liblog", + "libz", + "libnativewindow", + ], +} diff --git a/audio/tokay/prebuilt/libspeechenhancer/arm64/libspeechenhancer.so b/audio/tokay/prebuilt/libspeechenhancer/arm64/libspeechenhancer.so new file mode 100644 index 00000000..f9fca0e8 Binary files /dev/null and b/audio/tokay/prebuilt/libspeechenhancer/arm64/libspeechenhancer.so differ diff --git a/device-caiman.mk b/device-caiman.mk index 717f7913..b96947c7 100644 --- a/device-caiman.mk +++ b/device-caiman.mk @@ -162,6 +162,13 @@ PRODUCT_PACKAGES += \ audio_sounddose_aoc endif +# HdMic Audio +PRODUCT_SOONG_NAMESPACES += device/google/caimito/audio/caiman/prebuilt/libspeechenhancer +PRODUCT_PROPERTY_OVERRIDES += \ + persist.vendor.audio.hdmic.version=1 +PRODUCT_PACKAGES += \ + libspeechenhancer + # Audio CCA property PRODUCT_PROPERTY_OVERRIDES += \ persist.vendor.audio.cca.enabled=false diff --git a/device-komodo.mk b/device-komodo.mk index c97ab223..773a3d20 100644 --- a/device-komodo.mk +++ b/device-komodo.mk @@ -185,6 +185,13 @@ PRODUCT_PACKAGES += \ audio_sounddose_aoc endif +# HdMic Audio +PRODUCT_SOONG_NAMESPACES += device/google/caimito/audio/komodo/prebuilt/libspeechenhancer +PRODUCT_PROPERTY_OVERRIDES += \ + persist.vendor.audio.hdmic.version=1 +PRODUCT_PACKAGES += \ + libspeechenhancer + # Audio CCA property PRODUCT_PROPERTY_OVERRIDES += \ persist.vendor.audio.cca.enabled=false diff --git a/device-tokay.mk b/device-tokay.mk index 49787ada..1e8655f8 100644 --- a/device-tokay.mk +++ b/device-tokay.mk @@ -155,6 +155,13 @@ PRODUCT_PACKAGES += \ audio_sounddose_aoc endif +# HdMic Audio +PRODUCT_SOONG_NAMESPACES += device/google/caimito/audio/tokay/prebuilt/libspeechenhancer +PRODUCT_PROPERTY_OVERRIDES += \ + persist.vendor.audio.hdmic.version=1 +PRODUCT_PACKAGES += \ + libspeechenhancer + # Audio CCA property PRODUCT_PROPERTY_OVERRIDES += \ persist.vendor.audio.cca.enabled=false