summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Garberi <dade.garberi@gmail.com>2019-10-19 19:53:52 +0200
committerMichael Bestas <mkbestas@lineageos.org>2020-04-30 00:48:53 +0300
commit22cc900a92015572b8e25874776f78f3b1b9752b (patch)
tree6e5602b9a4a3eaf87587866df806601df1e2ec50
parenta832c30313e89996c76d63f0455281fc32dcbf36 (diff)
sdm660-common: Convert audio flags into vendor properties
* This is needed since CAF deleted most platform flags for msm8998 audio hal on ten * For reference: https://github.com/LineageOS/android_hardware_qcom_audio/commit/b1bec9c80b7dfa67f0a6da788d7580944e21887d https://github.com/LineageOS/android_hardware_qcom_audio/commit/e008ed26186069e2df8522b5bb4f6681c36ecff2 https://github.com/LineageOS/android_hardware_qcom_audio/commit/ae1018c3b0cdc2ed9a93ab667e238654d81c5726 Change-Id: Id8c91b23ad4d185176192905850483d13adb4d04
-rw-r--r--BoardConfigCommon.mk34
-rw-r--r--properties.mk11
2 files changed, 10 insertions, 35 deletions
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk
index a7e0ff4..bc1454f 100644
--- a/BoardConfigCommon.mk
+++ b/BoardConfigCommon.mk
@@ -80,41 +80,10 @@ BOARD_USES_ALSA_AUDIO := true
USE_CUSTOM_AUDIO_POLICY := 1
USE_XML_AUDIO_POLICY_CONF := 1
BOARD_SUPPORTS_SOUND_TRIGGER := true
-AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false
-AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
-AUDIO_FEATURE_ENABLED_EXT_AMPLIFIER := false
AUDIO_FEATURE_ENABLED_EXT_HDMI := true
-AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
-AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true
-AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := false
-AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
-AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
-AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
-AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
-AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
-AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
-AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
-AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
-AUDIO_FEATURE_ENABLED_USB_TUNNEL_AUDIO := true
-AUDIO_FEATURE_ENABLED_SPLIT_A2DP := true
-AUDIO_FEATURE_ENABLED_3D_AUDIO := false
-AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
-AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
-AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
-AUDIO_FEATURE_ENABLED_FLUENCE := true
-AUDIO_FEATURE_ENABLED_HDMI_EDID := true
-AUDIO_FEATURE_ENABLED_HFP := true
-AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false
-AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
-AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
-AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
-AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
-AUDIO_FEATURE_ENABLED_DEV_ARBI := false
-AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
-AUDIO_FEATURE_ENABLED_RAS := true
-AUDIO_FEATURE_ENABLED_SND_MONITOR := true
AUDIO_FEATURE_ENABLED_DYNAMIC_LOG := false
+AUDIO_FEATURE_ENABLED_EXT_AMPLIFIER := false
AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
# Bluetooth
@@ -178,7 +147,6 @@ ifeq ($(HOST_OS),linux)
endif
# FM
-AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
BOARD_HAS_QCA_FM_SOC := cherokee
BOARD_HAVE_QCOM_FM := true
diff --git a/properties.mk b/properties.mk
index db9cca3..09f34af 100644
--- a/properties.mk
+++ b/properties.mk
@@ -12,7 +12,7 @@ PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.audio.fluence.voicerec=false \
persist.vendor.audio.hifi.int_codec=true \
persist.vendor.audio.hw.binder.size_kbyte=1024 \
- persist.vendor.audio.ras.enabled=false \
+ persist.vendor.audio.ras.enabled=true \
persist.vendor.bt.a2dp_offload_cap=sbc-aac \
ro.af.client_heap_size_kbyte=7168 \
ro.audio.soundfx.dirac=true \
@@ -40,7 +40,14 @@ PRODUCT_PROPERTY_OVERRIDES += \
vendor.audio.use.sw.ape.decoder=true \
vendor.audio_hal.period_size=192 \
vendor.fm.a2dp.conc.disabled=true \
- vendor.voice.path.for.pcm.voip=true
+ vendor.voice.path.for.pcm.voip=true \
+ vendor.audio.feature.compr_voip.enable=true \
+ vendor.audio.feature.kpi_optimize.enable=true \
+ vendor.audio.feature.fluence.enable=true \
+ vendor.audio.feature.custom_stereo.enable=true \
+ vendor.audio.feature.anc_headset.enable=true \
+ vendor.audio.feature.vbat.enabl=true \
+ vendor.audio.feature.fm.enable=true
# Bluetooth
PRODUCT_PROPERTY_OVERRIDES += \