106 lines
4.6 KiB
Makefile
106 lines
4.6 KiB
Makefile
### Start - AUDIO_FEATURE_FLAGS
|
|
BOARD_USES_ALSA_AUDIO := true
|
|
USE_CUSTOM_AUDIO_POLICY := 1
|
|
BOARD_SUPPORTS_SOUND_TRIGGER := true
|
|
AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
|
|
|
|
AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
|
|
AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false
|
|
AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
|
|
AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
|
|
AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
|
|
AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true
|
|
AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := false
|
|
AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
|
|
AUDIO_FEATURE_ENABLED_FLUENCE := true
|
|
AUDIO_FEATURE_ENABLED_HDMI_SPK := true
|
|
AUDIO_FEATURE_ENABLED_HDMI_EDID := true
|
|
AUDIO_FEATURE_ENABLED_HFP := true
|
|
AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false
|
|
#AUDIO_FEATURE_ENABLED_LISTEN := true
|
|
AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
|
|
AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
|
|
AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
|
|
AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
|
|
AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
|
|
AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
|
|
AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
|
|
AUDIO_FEATURE_ENABLED_SSR := true
|
|
AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
|
|
AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false
|
|
AUDIO_FEATURE_ENABLED_NT_PAUSE_TIMEOUT := true
|
|
AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
|
|
BOARD_USES_SRS_TRUEMEDIA := true
|
|
DTS_CODEC_M_ := true
|
|
#DOLBY_DAP := true
|
|
#DOLBY_DDP := true
|
|
#DOLBY_UDC := true
|
|
#DOLBY_UDC_MULTICHANNEL := true
|
|
#DOLBY_UDC_STREAMING_HLS := true
|
|
AUDIO_FEATURE_ENABLED_MULTIPLE_TUNNEL := true
|
|
#AUDIO_FEATURE_ENABLED_DEV_ARBI := true
|
|
MM_AUDIO_ENABLED_FTM := true
|
|
MM_AUDIO_ENABLED_SAFX := true
|
|
TARGET_USES_QCOM_MM_AUDIO := true
|
|
AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true
|
|
### End - AUDIO_FEATURE_FLAGS
|
|
|
|
|
|
#Audio Specific device overlays
|
|
DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay
|
|
|
|
USE_XML_AUDIO_POLICY_CONF := 1
|
|
|
|
# Audio configuration file
|
|
ifeq ($(TARGET_USES_AOSP), true)
|
|
PRODUCT_COPY_FILES += \
|
|
device/qcom/common/media/audio_policy.conf:system/etc/audio_policy.conf
|
|
else
|
|
PRODUCT_COPY_FILES += \
|
|
hardware/qcom/audio/configs/msm8992/audio_policy.conf:system/etc/audio_policy.conf
|
|
endif
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
hardware/qcom/audio/configs/msm8992/audio_output_policy.conf:system/vendor/etc/audio_output_policy.conf \
|
|
hardware/qcom/audio/configs/msm8992/audio_effects.conf:system/vendor/etc/audio_effects.conf \
|
|
hardware/qcom/audio/configs/msm8992/mixer_paths.xml:system/etc/mixer_paths.xml \
|
|
hardware/qcom/audio/configs/msm8992/mixer_paths_i2s.xml:system/etc/mixer_paths_i2s.xml \
|
|
hardware/qcom/audio/configs/msm8992/audio_platform_info.xml:system/etc/audio_platform_info.xml \
|
|
hardware/qcom/audio/configs/msm8992/audio_platform_info_i2s.xml:system/etc/audio_platform_info_i2s.xml \
|
|
hardware/qcom/audio/configs/msm8992/sound_trigger_mixer_paths.xml:system/etc/sound_trigger_mixer_paths.xml \
|
|
hardware/qcom/audio/configs/msm8992/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml \
|
|
hardware/qcom/audio/configs/msm8992/aanc_tuning_mixer.txt:system/etc/aanc_tuning_mixer.txt
|
|
|
|
#XML Audio configuration files
|
|
ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
|
|
ifeq ($(TARGET_USES_AOSP), true)
|
|
PRODUCT_COPY_FILES += \
|
|
$(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:/system/etc/audio_policy_configuration.xml
|
|
else
|
|
PRODUCT_COPY_FILES += \
|
|
$(TOPDIR)hardware/qcom/audio/configs/msm8992/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml
|
|
endif
|
|
PRODUCT_COPY_FILES += \
|
|
$(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:/system/etc/a2dp_audio_policy_configuration.xml \
|
|
$(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:/system/etc/audio_policy_volumes.xml \
|
|
$(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:/system/etc/default_volume_tables.xml \
|
|
$(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:/system/etc/r_submix_audio_policy_configuration.xml \
|
|
$(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:/system/etc/usb_audio_policy_configuration.xml
|
|
endif
|
|
|
|
# Listen configuration file
|
|
PRODUCT_COPY_FILES += \
|
|
$(TOPDIR)hardware/qcom/audio/configs/msm8992/listen_platform_info.xml:system/etc/listen_platform_info.xml
|
|
|
|
PRODUCT_PACKAGES += \
|
|
libqcomvisualizer \
|
|
libqcomvoiceprocessing \
|
|
libqcompostprocbundle
|
|
|
|
# Reduce client buffer size for fast audio output tracks
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
af.fast_track_multiplier=1
|
|
|
|
# Low latency audio buffer size in frames
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
audio_hal.period_size=192
|