diff --git a/audio/husky/aidl_config/audio_platform_configuration.xml b/audio/husky/aidl_config/audio_platform_configuration.xml
index 4b747bb..b34566d 100644
--- a/audio/husky/aidl_config/audio_platform_configuration.xml
+++ b/audio/husky/aidl_config/audio_platform_configuration.xml
@@ -24,10 +24,13 @@
-
+
-
+
+
+
+
@@ -47,7 +50,6 @@
-
@@ -58,11 +60,12 @@
-
+
+
@@ -71,8 +74,8 @@
-
-
+
+
@@ -89,18 +92,18 @@
+
+
MIC
CAMCORDER
- VOICE_RECOGNITION
MIC
CAMCORDER
- VOICE_RECOGNITION
diff --git a/audio/husky/aidl_config/mixer_paths_aidl.xml b/audio/husky/aidl_config/mixer_paths_aidl.xml
index 9695f70..9c8ccf6 100644
--- a/audio/husky/aidl_config/mixer_paths_aidl.xml
+++ b/audio/husky/aidl_config/mixer_paths_aidl.xml
@@ -256,10 +256,14 @@
-
+
+
+
+
+
@@ -307,6 +311,7 @@
+
@@ -413,6 +418,10 @@
+
+
+
+
@@ -485,6 +494,10 @@
+
+
+
+
@@ -557,6 +570,10 @@
+
+
+
+
@@ -634,6 +651,10 @@
+
+
+
+
@@ -706,6 +727,10 @@
+
+
+
+
@@ -790,6 +815,10 @@
+
+
+
+
@@ -806,61 +835,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -882,6 +856,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -902,6 +888,10 @@
+
+
+
+
@@ -972,6 +962,10 @@
+
+
+
+
@@ -1046,6 +1040,39 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1074,11 +1101,47 @@
-
+
-
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1113,6 +1176,10 @@
+
+
+
+
@@ -1165,77 +1232,9 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
@@ -1249,7 +1248,6 @@
-
@@ -1266,7 +1264,6 @@
-
@@ -1275,36 +1272,35 @@
-
-
-
-
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
+
-
-
-
-
+
@@ -1316,91 +1312,47 @@
-
-
-
-
-
+
+
-
-
-
-
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
+
@@ -1411,9 +1363,7 @@
-
-
-
+
@@ -1428,6 +1378,54 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/audio/husky/audio-tables.mk b/audio/husky/audio-tables.mk
index 1506b4e..0929972 100644
--- a/audio/husky/audio-tables.mk
+++ b/audio/husky/audio-tables.mk
@@ -82,3 +82,13 @@ PRODUCT_COPY_FILES += \
device/google/shusky/audio/$(AUDIO_TABLE_FOLDER)/tuning/waves/tests/test_preset.mps:$(TARGET_COPY_OUT_VENDOR)/etc/test_preset.mps
endif
+
+ifeq ($(USE_AUDIO_HAL_AIDL),true)
+# Offload spatializer config
+PRODUCT_COPY_FILES += \
+ device/google/shusky/audio/$(AUDIO_TABLE_FOLDER)/tuning/spatializer/base:$(TARGET_COPY_OUT_VENDOR)/etc/spatializer/base \
+ device/google/shusky/audio/$(AUDIO_TABLE_FOLDER)/tuning/spatializer/mode_2_ch:$(TARGET_COPY_OUT_VENDOR)/etc/spatializer/mode_2_ch \
+ device/google/shusky/audio/$(AUDIO_TABLE_FOLDER)/tuning/spatializer/mode_6_ch:$(TARGET_COPY_OUT_VENDOR)/etc/spatializer/mode_6_ch \
+ device/google/shusky/audio/$(AUDIO_TABLE_FOLDER)/tuning/spatializer/mode_xaural:$(TARGET_COPY_OUT_VENDOR)/etc/spatializer/mode_xaural \
+
+endif
diff --git a/audio/husky/tuning/spatializer/base b/audio/husky/tuning/spatializer/base
new file mode 100644
index 0000000..38cc646
Binary files /dev/null and b/audio/husky/tuning/spatializer/base differ
diff --git a/audio/husky/tuning/spatializer/mode_2_ch b/audio/husky/tuning/spatializer/mode_2_ch
new file mode 100644
index 0000000..470c56c
Binary files /dev/null and b/audio/husky/tuning/spatializer/mode_2_ch differ
diff --git a/audio/husky/tuning/spatializer/mode_6_ch b/audio/husky/tuning/spatializer/mode_6_ch
new file mode 100644
index 0000000..94ec635
Binary files /dev/null and b/audio/husky/tuning/spatializer/mode_6_ch differ
diff --git a/audio/husky/tuning/spatializer/mode_xaural b/audio/husky/tuning/spatializer/mode_xaural
new file mode 100644
index 0000000..b3a3a96
Binary files /dev/null and b/audio/husky/tuning/spatializer/mode_xaural differ
diff --git a/audio/shiba/aidl_config/audio_platform_configuration.xml b/audio/shiba/aidl_config/audio_platform_configuration.xml
index 4b747bb..b34566d 100644
--- a/audio/shiba/aidl_config/audio_platform_configuration.xml
+++ b/audio/shiba/aidl_config/audio_platform_configuration.xml
@@ -24,10 +24,13 @@
-
+
-
+
+
+
+
@@ -47,7 +50,6 @@
-
@@ -58,11 +60,12 @@
-
+
+
@@ -71,8 +74,8 @@
-
-
+
+
@@ -89,18 +92,18 @@
+
+
MIC
CAMCORDER
- VOICE_RECOGNITION
MIC
CAMCORDER
- VOICE_RECOGNITION
diff --git a/audio/shiba/aidl_config/mixer_paths_aidl.xml b/audio/shiba/aidl_config/mixer_paths_aidl.xml
index 9695f70..9c8ccf6 100644
--- a/audio/shiba/aidl_config/mixer_paths_aidl.xml
+++ b/audio/shiba/aidl_config/mixer_paths_aidl.xml
@@ -256,10 +256,14 @@
-
+
+
+
+
+
@@ -307,6 +311,7 @@
+
@@ -413,6 +418,10 @@
+
+
+
+
@@ -485,6 +494,10 @@
+
+
+
+
@@ -557,6 +570,10 @@
+
+
+
+
@@ -634,6 +651,10 @@
+
+
+
+
@@ -706,6 +727,10 @@
+
+
+
+
@@ -790,6 +815,10 @@
+
+
+
+
@@ -806,61 +835,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -882,6 +856,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -902,6 +888,10 @@
+
+
+
+
@@ -972,6 +962,10 @@
+
+
+
+
@@ -1046,6 +1040,39 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1074,11 +1101,47 @@
-
+
-
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1113,6 +1176,10 @@
+
+
+
+
@@ -1165,77 +1232,9 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
@@ -1249,7 +1248,6 @@
-
@@ -1266,7 +1264,6 @@
-
@@ -1275,36 +1272,35 @@
-
-
-
-
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
+
-
-
-
-
+
@@ -1316,91 +1312,47 @@
-
-
-
-
-
+
+
-
-
-
-
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
+
@@ -1411,9 +1363,7 @@
-
-
-
+
@@ -1428,6 +1378,54 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/audio/shiba/audio-tables.mk b/audio/shiba/audio-tables.mk
index dd809ee..ea4aa77 100644
--- a/audio/shiba/audio-tables.mk
+++ b/audio/shiba/audio-tables.mk
@@ -82,3 +82,13 @@ PRODUCT_COPY_FILES += \
device/google/shusky/audio/$(AUDIO_TABLE_FOLDER)/tuning/waves/tests/test_preset.mps:$(TARGET_COPY_OUT_VENDOR)/etc/test_preset.mps
endif
+
+ifeq ($(USE_AUDIO_HAL_AIDL),true)
+# Offload spatializer config
+PRODUCT_COPY_FILES += \
+ device/google/shusky/audio/$(AUDIO_TABLE_FOLDER)/tuning/spatializer/base:$(TARGET_COPY_OUT_VENDOR)/etc/spatializer/base \
+ device/google/shusky/audio/$(AUDIO_TABLE_FOLDER)/tuning/spatializer/mode_2_ch:$(TARGET_COPY_OUT_VENDOR)/etc/spatializer/mode_2_ch \
+ device/google/shusky/audio/$(AUDIO_TABLE_FOLDER)/tuning/spatializer/mode_6_ch:$(TARGET_COPY_OUT_VENDOR)/etc/spatializer/mode_6_ch \
+ device/google/shusky/audio/$(AUDIO_TABLE_FOLDER)/tuning/spatializer/mode_xaural:$(TARGET_COPY_OUT_VENDOR)/etc/spatializer/mode_xaural \
+
+endif
diff --git a/audio/shiba/tuning/spatializer/base b/audio/shiba/tuning/spatializer/base
new file mode 100644
index 0000000..38cc646
Binary files /dev/null and b/audio/shiba/tuning/spatializer/base differ
diff --git a/audio/shiba/tuning/spatializer/mode_2_ch b/audio/shiba/tuning/spatializer/mode_2_ch
new file mode 100644
index 0000000..470c56c
Binary files /dev/null and b/audio/shiba/tuning/spatializer/mode_2_ch differ
diff --git a/audio/shiba/tuning/spatializer/mode_6_ch b/audio/shiba/tuning/spatializer/mode_6_ch
new file mode 100644
index 0000000..94ec635
Binary files /dev/null and b/audio/shiba/tuning/spatializer/mode_6_ch differ
diff --git a/audio/shiba/tuning/spatializer/mode_xaural b/audio/shiba/tuning/spatializer/mode_xaural
new file mode 100644
index 0000000..b3a3a96
Binary files /dev/null and b/audio/shiba/tuning/spatializer/mode_xaural differ
diff --git a/device-husky.mk b/device-husky.mk
index 40e1216..bd97283 100644
--- a/device-husky.mk
+++ b/device-husky.mk
@@ -142,19 +142,31 @@ PRODUCT_COPY_FILES += \
PRODUCT_PRODUCT_PROPERTIES += \
ro.bluetooth.finder.supported=true
+ifeq ($(USE_AUDIO_HAL_AIDL),true)
+# AIDL
+
+# declare use of stereo spatialization
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.audio.stereo_spatialization_enabled=true
+
+else
+# HIDL
+
# Spatial Audio
PRODUCT_PACKAGES += \
libspatialaudio
-# declare use of spatial audio
-PRODUCT_PROPERTY_OVERRIDES += \
- ro.audio.spatializer_enabled=true
-
# Sound Dose
PRODUCT_PACKAGES += \
android.hardware.audio.sounddose-vendor-impl \
audio_sounddose_aoc
+endif
+
+# declare use of spatial audio
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.audio.spatializer_enabled=true
+
# Audio CCA property
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.audio.cca.enabled=false
diff --git a/device-shiba.mk b/device-shiba.mk
index 206e4a6..e5a6721 100644
--- a/device-shiba.mk
+++ b/device-shiba.mk
@@ -130,19 +130,31 @@ PRODUCT_COPY_FILES += \
PRODUCT_PRODUCT_PROPERTIES += \
ro.bluetooth.finder.supported=true
+ifeq ($(USE_AUDIO_HAL_AIDL),true)
+# AIDL
+
+# declare use of stereo spatialization
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.audio.stereo_spatialization_enabled=true
+
+else
+# HIDL
+
# Spatial Audio
PRODUCT_PACKAGES += \
libspatialaudio
-# declare use of spatial audio
-PRODUCT_PROPERTY_OVERRIDES += \
- ro.audio.spatializer_enabled=true
-
# Sound Dose
PRODUCT_PACKAGES += \
android.hardware.audio.sounddose-vendor-impl \
audio_sounddose_aoc
+endif
+
+# declare use of spatial audio
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.audio.spatializer_enabled=true
+
# Audio CCA property
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.audio.cca.enabled=false