blob: cad6cdb752782594a1b27887d71dc0e840b57180 [file] [log] [blame]
Ramjee Singh75d7cba2017-03-27 14:55:32 +05301
2##AUDIO_FEATURE_FLAGS
3
Ramjee Singh29867652017-03-27 12:47:36 +05304BOARD_USES_ALSA_AUDIO := true
Ramjee Singh75d7cba2017-03-27 14:55:32 +05305
Ramjee Singh1e34df22017-04-04 16:00:02 +05306#TODO move this cchange to device/qcom/msm8909
Ramjee Singh1e34df22017-04-04 16:00:02 +05307
Ramjee Singh75d7cba2017-03-27 14:55:32 +05308ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
9USE_CUSTOM_AUDIO_POLICY := 1
Ramjee Singh29867652017-03-27 12:47:36 +053010AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
11AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
12AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true
13AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true
14AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
Ramjee Singh75d7cba2017-03-27 14:55:32 +053015AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
16#TODO Enable SSR
17#AUDIO_FEATURE_ENABLED_SSR := true
18AUDIO_FEATURE_ENABLED_VOICE_CONCURRENCY := true
19AUDIO_FEATURE_ENABLED_RECORD_PLAY_CONCURRENCY := true
20#TODO Enable PM
21#AUDIO_FEATURE_ENABLED_PM_SUPPORT := true
22AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true
23MM_AUDIO_ENABLED_SAFX := true
Divya Narayanan Poojary087fc042017-05-09 14:45:24 +053024DOLBY_ENABLE := false
Ramjee Singh75d7cba2017-03-27 14:55:32 +053025
26endif
27USE_XML_AUDIO_POLICY_CONF := 1
28BOARD_SUPPORTS_SOUND_TRIGGER := true
29AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
Ramjee Singh29867652017-03-27 12:47:36 +053030AUDIO_FEATURE_ENABLED_FLUENCE := true
31AUDIO_FEATURE_ENABLED_HFP := true
32AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
Ramjee Singh29867652017-03-27 12:47:36 +053033AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
Ramjee Singh29867652017-03-27 12:47:36 +053034AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
Revathi Uddaraju1eac8b02017-05-18 17:13:33 +053035AUDIO_FEATURE_ENABLED_DYNAMIC_LOG := true
Ramjee Singh29867652017-03-27 12:47:36 +053036MM_AUDIO_ENABLED_FTM := true
Ramjee Singh29867652017-03-27 12:47:36 +053037TARGET_USES_QCOM_MM_AUDIO := true
38
Ramjee Singh75d7cba2017-03-27 14:55:32 +053039##AUDIO_FEATURE_FLAGS
40
Ramjee Singh29867652017-03-27 12:47:36 +053041#Audio Specific device overlays
42DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay
43
Ramjee Singh29867652017-03-27 12:47:36 +053044
45# Audio configuration file
Ramjee Singh75d7cba2017-03-27 14:55:32 +053046ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Ramjee Singh29867652017-03-27 12:47:36 +053047PRODUCT_COPY_FILES += \
Ramjee Singh75d7cba2017-03-27 14:55:32 +053048 device/qcom/common/media/audio_policy.conf:system/etc/audio_policy.conf
Ramjee Singh29867652017-03-27 12:47:36 +053049else
50PRODUCT_COPY_FILES += \
51 hardware/qcom/audio/configs/msm8909/audio_policy.conf:system/etc/audio_policy.conf
52endif
53PRODUCT_COPY_FILES += \
54 hardware/qcom/audio/configs/msm8909/audio_policy.conf:system/etc/audio_policy.conf \
55 hardware/qcom/audio/configs/msm8909/audio_effects.conf:system/vendor/etc/audio_effects.conf \
56 hardware/qcom/audio/configs/msm8909/mixer_paths_qrd_skuh.xml:system/etc/mixer_paths_qrd_skuh.xml \
57 hardware/qcom/audio/configs/msm8909/mixer_paths_qrd_skui.xml:system/etc/mixer_paths_qrd_skui.xml \
58 hardware/qcom/audio/configs/msm8909/mixer_paths.xml:system/etc/mixer_paths.xml \
59 hardware/qcom/audio/configs/msm8909/mixer_paths_msm8909_pm8916.xml:system/etc/mixer_paths_msm8909_pm8916.xml \
60 hardware/qcom/audio/configs/msm8909/mixer_paths_wcd9326_i2s.xml:system/etc/mixer_paths_wcd9326_i2s.xml \
61 hardware/qcom/audio/configs/msm8909/mixer_paths_skua.xml:system/etc/mixer_paths_skua.xml \
62 hardware/qcom/audio/configs/msm8909/mixer_paths_skuc.xml:system/etc/mixer_paths_skuc.xml \
63 hardware/qcom/audio/configs/msm8909/mixer_paths_skue.xml:system/etc/mixer_paths_skue.xml \
64 hardware/qcom/audio/configs/msm8909/mixer_paths_qrd_skut.xml:system/etc/mixer_paths_qrd_skut.xml \
65 hardware/qcom/audio/configs/msm8909/sound_trigger_mixer_paths.xml:system/etc/sound_trigger_mixer_paths.xml \
66 hardware/qcom/audio/configs/msm8909/sound_trigger_mixer_paths_wcd9326.xml:system/etc/sound_trigger_mixer_paths_wcd9326.xml \
67 hardware/qcom/audio/configs/msm8909/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml \
68 hardware/qcom/audio/configs/msm8909/audio_platform_info.xml:system/etc/audio_platform_info.xml
69
70#XML Audio configuration files
71ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
Ramjee Singh75d7cba2017-03-27 14:55:32 +053072ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Ramjee Singh29867652017-03-27 12:47:36 +053073PRODUCT_COPY_FILES += \
74 $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:/system/etc/audio_policy_configuration.xml
75else
76PRODUCT_COPY_FILES += \
77 $(TOPDIR)hardware/qcom/audio/configs/msm8909/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml
78endif
79PRODUCT_COPY_FILES += \
80 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:/system/etc/a2dp_audio_policy_configuration.xml \
81 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:/system/etc/audio_policy_volumes.xml \
82 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:/system/etc/default_volume_tables.xml \
83 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:/system/etc/r_submix_audio_policy_configuration.xml \
84 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:/system/etc/usb_audio_policy_configuration.xml
85endif
Ramjee Singh1e34df22017-04-04 16:00:02 +053086
87PRODUCT_PACKAGES += \
88 android.hardware.audio@2.0-service \
89 android.hardware.audio@2.0-impl \
90 android.hardware.audio.effect@2.0-impl \
91 android.hardware.soundtrigger@2.0-impl