Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 1 | #BOARD_USES_GENERIC_AUDIO := true |
| 2 | # |
| 3 | #AUDIO_FEATURE_FLAGS |
| 4 | ifeq ($(TARGET_USES_QMAA_OVERRIDE_AUDIO), false) |
| 5 | ifeq ($(TARGET_USES_QMAA),true) |
| 6 | AUDIO_USE_STUB_HAL := true |
| 7 | endif |
| 8 | endif |
| 9 | |
Ajender Reddy | 4e90bb9 | 2020-12-10 12:23:45 +0530 | [diff] [blame] | 10 | #mixer xml generation |
| 11 | BASE_PATH := vendor/qcom/opensource/audio-hal/primary-hal/configs/common/base |
| 12 | OVERLAY_PATH := vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/holi_overlay |
| 13 | TARGET_PATH := vendor/qcom/opensource/audio-hal/primary-hal/configs/holi |
| 14 | SCRIPT := vendor/qcom/opensource/audio-hal/primary-hal/configs/common/mixer_xml_utils.py |
Ajender Reddy | 21ab1cc | 2020-11-24 08:24:29 +0530 | [diff] [blame] | 15 | |
Ajender Reddy | 4e90bb9 | 2020-12-10 12:23:45 +0530 | [diff] [blame] | 16 | $(shell python $(SCRIPT) --generate combine --base $(BASE_PATH)/mixer_paths_base.xml --overlay $(OVERLAY_PATH)/mixer_paths_overlay.xml $(OVERLAY_PATH)/mixer_paths_qrd_overlay.xml $(OVERLAY_PATH)/mixer_paths_usbc_overlay.xml --out_dir $(TARGET_PATH) --out mixer_paths.xml mixer_paths_qrd.xml mixer_paths_usbc.xml ) |
| 17 | |
| 18 | $(shell python $(SCRIPT) --generate combine --base $(BASE_PATH)/sound_trigger_mixer_paths_base.xml --overlay $(OVERLAY_PATH)/sound_trigger_mixer_paths_overlay.xml $(OVERLAY_PATH)/sound_trigger_mixer_paths_qrd_overlay.xml $(OVERLAY_PATH)/sound_trigger_mixer_paths_usbc_overlay.xml --out_dir $(TARGET_PATH) --out sound_trigger_mixer_paths.xml sound_trigger_mixer_paths_qrd.xml sound_trigger_mixer_paths_usbc.xml ) |
| 19 | # |
| 20 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 21 | ifneq ($(AUDIO_USE_STUB_HAL), true) |
| 22 | BOARD_USES_ALSA_AUDIO := true |
| 23 | TARGET_USES_AOSP_FOR_AUDIO := false |
| 24 | |
| 25 | ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true) |
| 26 | USE_CUSTOM_AUDIO_POLICY := 1 |
| 27 | AUDIO_FEATURE_QSSI_COMPLIANCE := true |
| 28 | AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false |
| 29 | AUDIO_FEATURE_ENABLED_COMPRESS_INPUT := true |
| 30 | AUDIO_FEATURE_ENABLED_CONCURRENT_CAPTURE := true |
| 31 | AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := false |
| 32 | AUDIO_FEATURE_ENABLED_DYNAMIC_ECNS := true |
| 33 | AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true |
| 34 | AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true |
| 35 | AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true |
| 36 | AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true |
| 37 | AUDIO_FEATURE_ENABLED_HDMI_SPK := true |
| 38 | AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true |
| 39 | AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true |
| 40 | AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true |
| 41 | AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true |
| 42 | AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true |
| 43 | AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true |
| 44 | AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true |
| 45 | AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true |
| 46 | AUDIO_FEATURE_ENABLED_MPEGH_SW_DECODER := true |
| 47 | AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true |
| 48 | AUDIO_FEATURE_ENABLED_SSR := true |
| 49 | AUDIO_FEATURE_ENABLED_DTS_EAGLE := false |
| 50 | BOARD_USES_SRS_TRUEMEDIA := false |
| 51 | DTS_CODEC_M_ := false |
| 52 | MM_AUDIO_ENABLED_SAFX := true |
| 53 | AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false |
| 54 | AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true |
| 55 | AUDIO_FEATURE_ENABLED_USB_TUNNEL := true |
| 56 | AUDIO_FEATURE_ENABLED_A2DP_OFFLOAD := true |
| 57 | AUDIO_FEATURE_ENABLED_3D_AUDIO := true |
Jaideep Sharma | aadb90e | 2020-10-14 14:45:31 +0530 | [diff] [blame] | 58 | AUDIO_FEATURE_ENABLED_AHAL_EXT := false |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 59 | AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT := true |
| 60 | DOLBY_ENABLE := false |
| 61 | endif |
| 62 | |
| 63 | AUDIO_FEATURE_ENABLED_DLKM := true |
| 64 | BOARD_SUPPORTS_SOUND_TRIGGER := true |
| 65 | BOARD_SUPPORTS_GCS := false |
| 66 | AUDIO_FEATURE_ENABLED_INSTANCE_ID := true |
| 67 | AUDIO_USE_DEEP_AS_PRIMARY_OUTPUT := false |
| 68 | AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true |
| 69 | AUDIO_FEATURE_ENABLED_NT_PAUSE_TIMEOUT := true |
| 70 | AUDIO_FEATURE_ENABLED_ANC_HEADSET := true |
| 71 | AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true |
| 72 | AUDIO_FEATURE_ENABLED_FLUENCE := true |
| 73 | AUDIO_FEATURE_ENABLED_HDMI_EDID := true |
| 74 | AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true |
| 75 | #AUDIO_FEATURE_ENABLED_KEEP_ALIVE := true |
| 76 | AUDIO_FEATURE_ENABLED_DISPLAY_PORT := true |
| 77 | AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false |
| 78 | AUDIO_FEATURE_ENABLED_HFP := true |
| 79 | AUDIO_FEATURE_ENABLED_INCALL_MUSIC := true |
| 80 | AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true |
| 81 | AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true |
| 82 | AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true |
| 83 | AUDIO_FEATURE_ENABLED_ACDB_LICENSE := false |
| 84 | AUDIO_FEATURE_ENABLED_DEV_ARBI := false |
| 85 | AUDIO_FEATURE_ENABLED_DYNAMIC_LOG := true |
| 86 | MM_AUDIO_ENABLED_FTM := true |
| 87 | TARGET_USES_QCOM_MM_AUDIO := true |
| 88 | AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true |
| 89 | AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true |
| 90 | BOARD_SUPPORTS_QAHW := false |
| 91 | AUDIO_FEATURE_ENABLED_RAS := true |
| 92 | AUDIO_FEATURE_ENABLED_SND_MONITOR := true |
| 93 | AUDIO_FEATURE_ENABLED_USB_BURST_MODE := true |
| 94 | AUDIO_FEATURE_ENABLED_SVA_MULTI_STAGE := true |
| 95 | AUDIO_FEATURE_ENABLED_BATTERY_LISTENER := true |
| 96 | ##AUDIO_FEATURE_FLAGS |
| 97 | |
| 98 | BOARD_SUPPORTS_OPENSOURCE_STHAL := true |
| 99 | |
| 100 | AUDIO_HARDWARE := audio.a2dp.default |
| 101 | AUDIO_HARDWARE += audio.usb.default |
| 102 | AUDIO_HARDWARE += audio.r_submix.default |
| 103 | AUDIO_HARDWARE += audio.primary.holi |
| 104 | |
| 105 | #HAL Wrapper |
| 106 | AUDIO_WRAPPER := libqahw |
| 107 | AUDIO_WRAPPER += libqahwwrapper |
| 108 | |
| 109 | #HAL Test app |
| 110 | AUDIO_HAL_TEST_APPS := hal_play_test |
| 111 | AUDIO_HAL_TEST_APPS += hal_rec_test |
| 112 | |
| 113 | PRODUCT_PACKAGES += $(AUDIO_HARDWARE) |
| 114 | PRODUCT_PACKAGES += $(AUDIO_WRAPPER) |
| 115 | PRODUCT_PACKAGES += $(AUDIO_HAL_TEST_APPS) |
| 116 | PRODUCT_PACKAGES += ftm_test_config_holi-qrd-snd-card |
| 117 | PRODUCT_PACKAGES += audioadsprpcd |
| 118 | PRODUCT_PACKAGES += vendor.qti.audio-adsprpc-service.rc |
| 119 | |
| 120 | ifneq ($(strip $(TARGET_USES_RRO)), true) |
| 121 | #Audio Specific device overlays |
| 122 | DEVICE_PACKAGE_OVERLAYS += vendor/qcom/opensource/audio-hal/primary-hal/configs/common/overlay |
| 123 | endif |
| 124 | |
| 125 | PRODUCT_COPY_FILES += \ |
| 126 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \ |
| 127 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \ |
| 128 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ |
| 129 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \ |
| 130 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \ |
| 131 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_platform_info_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_qrd.xml \ |
| 132 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \ |
| 133 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \ |
Amarnath Vangala | 2e663cf | 2020-09-22 23:15:15 +0530 | [diff] [blame] | 134 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/sound_trigger_mixer_paths_usbc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_usbc.xml \ |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 135 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/sound_trigger_mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_qrd.xml \ |
Harshal Ahire | 5561b7e | 2020-09-02 12:14:34 +0530 | [diff] [blame] | 136 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/sound_trigger_mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_qrdsku1.xml \ |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 137 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \ |
Amarnath Vangala | 2e663cf | 2020-09-22 23:15:15 +0530 | [diff] [blame] | 138 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/mixer_paths_usbc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_usbc.xml \ |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 139 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_qrd.xml \ |
Harshal Ahire | 5561b7e | 2020-09-02 12:14:34 +0530 | [diff] [blame] | 140 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_qrdsku1.xml \ |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 141 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \ |
| 142 | vendor/qcom/opensource/audio-hal/primary-hal/configs/common/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \ |
| 143 | frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \ |
| 144 | frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml |
| 145 | |
| 146 | #XML Audio configuration files |
| 147 | ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true) |
| 148 | PRODUCT_COPY_FILES += \ |
| 149 | $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml |
| 150 | endif |
| 151 | PRODUCT_COPY_FILES += \ |
| 152 | $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ |
| 153 | $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \ |
| 154 | $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ |
| 155 | $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ |
| 156 | $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ |
| 157 | $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \ |
| 158 | $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/common/bluetooth_qti_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_qti_audio_policy_configuration.xml \ |
| 159 | $(TOPDIR)vendor/qcom/opensource/audio-hal/primary-hal/configs/common/bluetooth_qti_hearing_aid_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_qti_hearing_aid_audio_policy_configuration.xml |
| 160 | |
| 161 | #TODO: Delete xml's from obsolete paths |
| 162 | # Audio configuration xml's related to Holi |
| 163 | QCV_FAMILY_SKUS := holi |
| 164 | DEVICE_SKU := holi |
| 165 | |
| 166 | PRODUCT_COPY_FILES += \ |
| 167 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_io_policy.conf \ |
| 168 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.conf \ |
| 169 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_effects.xml \ |
| 170 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_platform_info.xml \ |
| 171 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_platform_info.xml \ |
| 172 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_platform_info_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_platform_info_qrd.xml \ |
| 173 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_platform_info_intcodec.xml \ |
| 174 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_mixer_paths.xml \ |
Amarnath Vangala | 2e663cf | 2020-09-22 23:15:15 +0530 | [diff] [blame] | 175 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/sound_trigger_mixer_paths_usbc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_mixer_paths_usbc.xml \ |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 176 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/sound_trigger_mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_mixer_paths_qrd.xml \ |
Harshal Ahire | 5561b7e | 2020-09-02 12:14:34 +0530 | [diff] [blame] | 177 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/sound_trigger_mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/sound_trigger_mixer_paths_qrdsku1.xml \ |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 178 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths.xml \ |
Amarnath Vangala | 2e663cf | 2020-09-22 23:15:15 +0530 | [diff] [blame] | 179 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/mixer_paths_usbc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths_usbc.xml \ |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 180 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths_qrd.xml \ |
Harshal Ahire | 5561b7e | 2020-09-02 12:14:34 +0530 | [diff] [blame] | 181 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/mixer_paths_qrdsku1.xml \ |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 182 | vendor/qcom/opensource/audio-hal/primary-hal/configs/holi/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_tuning_mixer.txt |
| 183 | |
| 184 | # Audio configuration xml's common to Holi family |
| 185 | PRODUCT_COPY_FILES += \ |
| 186 | $(foreach DEVICE_SKU, $(QCV_FAMILY_SKUS), \ |
| 187 | vendor/qcom/opensource/audio-hal/primary-hal/configs/common/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/media_codecs_vendor_audio.xml \ |
| 188 | vendor/qcom/opensource/audio-hal/primary-hal/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_policy_configuration.xml \ |
| 189 | frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/a2dp_audio_policy_configuration.xml \ |
| 190 | frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/audio_policy_volumes.xml \ |
| 191 | frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/default_volume_tables.xml \ |
| 192 | frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/r_submix_audio_policy_configuration.xml \ |
| 193 | frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/usb_audio_policy_configuration.xml \ |
| 194 | vendor/qcom/opensource/audio-hal/primary-hal/configs/common/bluetooth_qti_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/bluetooth_qti_audio_policy_configuration.xml \ |
| 195 | vendor/qcom/opensource/audio-hal/primary-hal/configs/common/bluetooth_qti_hearing_aid_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_$(DEVICE_SKU)/bluetooth_qti_hearing_aid_audio_policy_configuration.xml) |
| 196 | |
| 197 | # Audio permission xml's common to Holi family |
| 198 | PRODUCT_COPY_FILES += \ |
| 199 | frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \ |
| 200 | frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml |
| 201 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 202 | # Low latency audio buffer size in frames |
| 203 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 204 | vendor.audio_hal.period_size=192 |
| 205 | |
| 206 | ##Ambisonic Capture |
| 207 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 208 | persist.vendor.audio.ambisonic.capture=false \ |
| 209 | persist.vendor.audio.ambisonic.auto.profile=false |
| 210 | |
| 211 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 212 | persist.vendor.audio.apptype.multirec.enabled=false |
| 213 | |
| 214 | ##fluencetype can be "fluence" or "fluencepro" or "none" |
| 215 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 216 | ro.vendor.audio.sdk.fluencetype=none\ |
| 217 | persist.vendor.audio.fluence.voicecall=true\ |
| 218 | persist.vendor.audio.fluence.voicerec=false\ |
| 219 | persist.vendor.audio.fluence.speaker=true\ |
| 220 | persist.vendor.audio.fluence.tmic.enabled=false |
| 221 | |
| 222 | # |
| 223 | #snapdragon value add features |
| 224 | # |
| 225 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 226 | ro.qc.sdk.audio.ssr=false |
| 227 | |
| 228 | ##fluencetype can be "fluence" or "fluencepro" or "none" |
| 229 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 230 | ro.qc.sdk.audio.fluencetype=none\ |
| 231 | persist.audio.fluence.voicecall=true\ |
| 232 | persist.audio.fluence.voicerec=false\ |
| 233 | persist.audio.fluence.speaker=true |
| 234 | |
| 235 | ##speaker protection v3 switch and ADSP AFE API version |
| 236 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 237 | persist.vendor.audio.spv3.enable=true\ |
| 238 | persist.vendor.audio.avs.afe_api_version=2 |
| 239 | |
| 240 | #disable tunnel encoding |
| 241 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 242 | vendor.audio.tunnel.encode=false |
| 243 | |
| 244 | #Disable RAS Feature by default |
| 245 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 246 | persist.vendor.audio.ras.enabled=false |
| 247 | |
| 248 | #Buffer size in kbytes for compress offload playback |
| 249 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 250 | vendor.audio.offload.buffer.size.kb=32 |
| 251 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 252 | #Enable audio track offload by default |
| 253 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 254 | vendor.audio.offload.track.enable=true |
| 255 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 256 | #enable voice path for PCM VoIP by default |
| 257 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 258 | vendor.voice.path.for.pcm.voip=true |
| 259 | |
| 260 | #Enable multi channel aac through offload |
| 261 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 262 | vendor.audio.offload.multiaac.enable=true |
| 263 | |
| 264 | #Enable DS2, Hardbypass feature for Dolby |
| 265 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 266 | vendor.audio.dolby.ds2.enabled=false\ |
| 267 | vendor.audio.dolby.ds2.hardbypass=false |
| 268 | |
| 269 | #Disable Multiple offload sesison |
| 270 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 271 | vendor.audio.offload.multiple.enabled=false |
| 272 | |
| 273 | #Disable Compress passthrough playback |
| 274 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 275 | vendor.audio.offload.passthrough=false |
| 276 | |
| 277 | #Disable surround sound recording |
| 278 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 279 | ro.vendor.audio.sdk.ssr=false |
| 280 | |
| 281 | #enable dsp gapless mode by default |
| 282 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 283 | vendor.audio.offload.gapless.enabled=true |
| 284 | |
| 285 | #enable pbe effects |
| 286 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 287 | vendor.audio.safx.pbe.enabled=false |
| 288 | |
| 289 | #parser input buffer size(256kb) in byte stream mode |
| 290 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 291 | vendor.audio.parser.ip.buffer.size=262144 |
| 292 | |
| 293 | #flac sw decoder 24 bit decode capability |
| 294 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 295 | vendor.audio.flac.sw.decoder.24bit=true |
| 296 | |
Manisha Agarwal | ad081c4 | 2020-08-20 15:19:03 +0530 | [diff] [blame] | 297 | #timeout crash duration set to 20sec before system is ready. |
| 298 | #timeout duration updates to default timeout of 5sec once the system is ready. |
| 299 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 300 | vendor.audio.hal.boot.timeout.ms=20000 |
| 301 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 302 | #split a2dp DSP supported encoder list |
| 303 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 304 | persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac-ldac |
| 305 | |
| 306 | # A2DP offload support |
| 307 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 308 | ro.bluetooth.a2dp_offload.supported=true |
| 309 | |
| 310 | # Disable A2DP offload |
| 311 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 312 | persist.bluetooth.a2dp_offload.disabled=false |
| 313 | |
| 314 | # A2DP offload DSP supported encoder list |
| 315 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 316 | persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac |
| 317 | |
| 318 | #enable software decoders for ALAC and APE |
| 319 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 320 | vendor.audio.use.sw.alac.decoder=true |
| 321 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 322 | vendor.audio.use.sw.ape.decoder=true |
| 323 | |
| 324 | #enable software decoder for MPEG-H |
| 325 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 326 | vendor.audio.use.sw.mpegh.decoder=true |
| 327 | |
| 328 | #enable hw aac encoder by default |
| 329 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 330 | vendor.audio.hw.aac.encoder=true |
| 331 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 332 | #Set HAL buffer size to samples equal to 3 ms |
| 333 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 334 | vendor.audio_hal.in_period_size=144 |
| 335 | |
| 336 | #Set HAL buffer size to 3 ms |
| 337 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 338 | vendor.audio_hal.period_multiplier=3 |
| 339 | |
| 340 | #ADM Buffering size in ms |
| 341 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 342 | vendor.audio.adm.buffering.ms=2 |
| 343 | |
| 344 | #enable headset calibration |
| 345 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 346 | vendor.audio.volume.headset.gain.depcal=true |
| 347 | |
| 348 | #enable dualmic fluence for voice communication |
| 349 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 350 | persist.audio.fluence.voicecomm=true |
| 351 | |
| 352 | ifneq ($(GENERIC_ODM_IMAGE),true) |
| 353 | $(warning "Enabling codec2.0 SW only for non-generic odm build variant") |
| 354 | #Rank OMX SW codecs lower than OMX HW codecs |
| 355 | PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0 |
| 356 | endif |
| 357 | endif |
| 358 | |
| 359 | USE_XML_AUDIO_POLICY_CONF := 1 |
| 360 | |
| 361 | #enable keytone FR |
| 362 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 363 | vendor.audio.hal.output.suspend.supported=true |
| 364 | |
| 365 | #Enable AAudio MMAP/NOIRQ data path |
| 366 | #2 is AAUDIO_POLICY_AUTO so it will try MMAP then fallback to Legacy path |
| 367 | PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_policy=2 |
| 368 | #Allow EXCLUSIVE then fall back to SHARED. |
| 369 | PRODUCT_PROPERTY_OVERRIDES += aaudio.mmap_exclusive_policy=2 |
| 370 | PRODUCT_PROPERTY_OVERRIDES += aaudio.hw_burst_min_usec=2000 |
| 371 | |
| 372 | |
| 373 | #enable mirror-link feature |
| 374 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 375 | vendor.audio.enable.mirrorlink=false |
| 376 | |
| 377 | #enable voicecall speaker stereo |
| 378 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 379 | persist.vendor.audio.voicecall.speaker.stereo=true |
| 380 | |
| 381 | #enable AAC frame ctl for A2DP sinks |
| 382 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 383 | persist.vendor.bt.aac_frm_ctl.enabled=true |
| 384 | |
| 385 | #enable VBR frame ctl |
| 386 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 387 | persist.vendor.bt.aac_vbr_frm_ctl.enabled=true |
| 388 | |
| 389 | #enable dedicated proxy for hearing aid |
| 390 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 391 | persist.vendor.audio.ha_proxy.enabled=true |
| 392 | |
| 393 | #add dynamic feature flags here |
| 394 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 395 | vendor.audio.feature.a2dp_offload.enable=true \ |
| 396 | vendor.audio.feature.afe_proxy.enable=true \ |
| 397 | vendor.audio.feature.anc_headset.enable=false \ |
| 398 | vendor.audio.feature.battery_listener.enable=true \ |
| 399 | vendor.audio.feature.compr_cap.enable=false \ |
| 400 | vendor.audio.feature.compress_in.enable=true \ |
| 401 | vendor.audio.feature.compress_meta_data.enable=true \ |
| 402 | vendor.audio.feature.compr_voip.enable=false \ |
| 403 | vendor.audio.feature.concurrent_capture.enable=true \ |
| 404 | vendor.audio.feature.custom_stereo.enable=true \ |
| 405 | vendor.audio.feature.display_port.enable=true \ |
| 406 | vendor.audio.feature.dsm_feedback.enable=false \ |
| 407 | vendor.audio.feature.dynamic_ecns.enable=true \ |
| 408 | vendor.audio.feature.ext_hw_plugin.enable=false \ |
| 409 | vendor.audio.feature.external_dsp.enable=false \ |
| 410 | vendor.audio.feature.external_speaker.enable=false \ |
| 411 | vendor.audio.feature.external_speaker_tfa.enable=false \ |
| 412 | vendor.audio.feature.fluence.enable=true \ |
| 413 | vendor.audio.feature.fm.enable=true \ |
| 414 | vendor.audio.feature.hdmi_edid.enable=true \ |
| 415 | vendor.audio.feature.hdmi_passthrough.enable=true \ |
| 416 | vendor.audio.feature.hfp.enable=true \ |
| 417 | vendor.audio.feature.hifi_audio.enable=false \ |
| 418 | vendor.audio.feature.hwdep_cal.enable=false \ |
| 419 | vendor.audio.feature.incall_music.enable=true \ |
| 420 | vendor.audio.feature.multi_voice_session.enable=true \ |
| 421 | vendor.audio.feature.keep_alive.enable=true \ |
| 422 | vendor.audio.feature.kpi_optimize.enable=true \ |
| 423 | vendor.audio.feature.maxx_audio.enable=false \ |
| 424 | vendor.audio.feature.ras.enable=true \ |
| 425 | vendor.audio.feature.record_play_concurency.enable=false \ |
| 426 | vendor.audio.feature.src_trkn.enable=true \ |
| 427 | vendor.audio.feature.spkr_prot.enable=true \ |
| 428 | vendor.audio.feature.ssrec.enable=true \ |
| 429 | vendor.audio.feature.usb_offload.enable=true \ |
| 430 | vendor.audio.feature.usb_offload_burst_mode.enable=true \ |
| 431 | vendor.audio.feature.usb_offload_sidetone_volume.enable=false \ |
| 432 | vendor.audio.feature.deepbuffer_as_primary.enable=false \ |
| 433 | vendor.audio.feature.vbat.enable=true \ |
| 434 | vendor.audio.feature.wsa.enable=false \ |
| 435 | vendor.audio.feature.audiozoom.enable=false \ |
| 436 | vendor.audio.feature.snd_mon.enable=true |
| 437 | |
| 438 | # for HIDL related packages |
| 439 | PRODUCT_PACKAGES += \ |
| 440 | android.hardware.audio@2.0-service \ |
| 441 | android.hardware.audio@2.0-impl \ |
| 442 | android.hardware.audio.effect@2.0-impl \ |
| 443 | android.hardware.soundtrigger@2.1-impl \ |
| 444 | android.hardware.audio@4.0 \ |
| 445 | android.hardware.audio.common@4.0 \ |
| 446 | android.hardware.audio.common@4.0-util \ |
| 447 | android.hardware.audio@4.0-impl \ |
| 448 | android.hardware.audio.effect@4.0 \ |
Jaideep Sharma | aadb90e | 2020-10-14 14:45:31 +0530 | [diff] [blame] | 449 | android.hardware.audio.effect@4.0-impl |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 450 | |
| 451 | # enable audio hidl hal 5.0 |
| 452 | PRODUCT_PACKAGES += \ |
| 453 | android.hardware.audio@5.0 \ |
| 454 | android.hardware.audio.common@5.0 \ |
| 455 | android.hardware.audio.common@5.0-util \ |
| 456 | android.hardware.audio@5.0-impl \ |
| 457 | android.hardware.audio.effect@5.0 \ |
| 458 | android.hardware.audio.effect@5.0-impl |
| 459 | |
| 460 | # enable audio hidl hal 6.0 |
| 461 | PRODUCT_PACKAGES += \ |
| 462 | android.hardware.audio@6.0 \ |
| 463 | android.hardware.audio.common@6.0 \ |
| 464 | android.hardware.audio.common@6.0-util \ |
| 465 | android.hardware.audio@6.0-impl \ |
| 466 | android.hardware.audio.effect@6.0 \ |
| 467 | android.hardware.audio.effect@6.0-impl |
| 468 | |
| 469 | # enable sound trigger hidl hal 2.2 |
| 470 | PRODUCT_PACKAGES += \ |
| 471 | android.hardware.soundtrigger@2.2-impl \ |
| 472 | |
Harshal Ahire | f754365 | 2020-09-30 15:02:33 +0530 | [diff] [blame] | 473 | # enable sound trigger hidl hal 2.3 |
| 474 | PRODUCT_PACKAGES += \ |
| 475 | android.hardware.soundtrigger@2.3-impl \ |
| 476 | |
Deepthi Gunturi | 6167e2b | 2020-04-10 09:52:53 +0530 | [diff] [blame] | 477 | PRODUCT_PACKAGES_ENG += \ |
| 478 | VoicePrintTest \ |
| 479 | VoicePrintDemo |
| 480 | |
| 481 | PRODUCT_PACKAGES_DEBUG += \ |
| 482 | AudioSettings |
| 483 | |
| 484 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DEV_ARBI)),true) |
| 485 | PRODUCT_PACKAGES_DEBUG += \ |
| 486 | libaudiodevarb |
| 487 | endif |
| 488 | |
| 489 | ifeq ($(call is-vendor-board-platform,QCOM),true) |
| 490 | ifeq ($(call is-platform-sdk-version-at-least,28),true) |
| 491 | PRODUCT_PACKAGES_DEBUG += \ |
| 492 | libqti_resampler_headers \ |
| 493 | lib_soundmodel_headers \ |
| 494 | libqti_vraudio_headers |
| 495 | endif |
| 496 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_3D_AUDIO)),true) |
| 497 | PRODUCT_PACKAGES_DEBUG += \ |
| 498 | libvr_object_engine \ |
| 499 | libvr_amb_engine \ |
| 500 | libhoaeffects_csim |
| 501 | endif |
| 502 | endif |
| 503 | |
| 504 | ifeq ($(strip $(BOARD_SUPPORTS_SOUND_TRIGGER)),true) |
| 505 | PRODUCT_PACKAGES_DEBUG += \ |
| 506 | libadpcmdec |
| 507 | endif |
| 508 | |
| 509 | AUDIO_FEATURE_ENABLED_GKI := true |