blob: cfd71ef55c5cfe630a3d7df736f89e48536be4f4 [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
35MM_AUDIO_ENABLED_FTM := true
Ramjee Singh29867652017-03-27 12:47:36 +053036TARGET_USES_QCOM_MM_AUDIO := true
37
Ramjee Singh75d7cba2017-03-27 14:55:32 +053038##AUDIO_FEATURE_FLAGS
39
Ramjee Singh29867652017-03-27 12:47:36 +053040#Audio Specific device overlays
41DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay
42
Ramjee Singh29867652017-03-27 12:47:36 +053043
44# Audio configuration file
Ramjee Singh75d7cba2017-03-27 14:55:32 +053045ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Ramjee Singh29867652017-03-27 12:47:36 +053046PRODUCT_COPY_FILES += \
Ramjee Singh75d7cba2017-03-27 14:55:32 +053047 device/qcom/common/media/audio_policy.conf:system/etc/audio_policy.conf
Ramjee Singh29867652017-03-27 12:47:36 +053048else
49PRODUCT_COPY_FILES += \
50 hardware/qcom/audio/configs/msm8909/audio_policy.conf:system/etc/audio_policy.conf
51endif
52PRODUCT_COPY_FILES += \
53 hardware/qcom/audio/configs/msm8909/audio_policy.conf:system/etc/audio_policy.conf \
54 hardware/qcom/audio/configs/msm8909/audio_effects.conf:system/vendor/etc/audio_effects.conf \
55 hardware/qcom/audio/configs/msm8909/mixer_paths_qrd_skuh.xml:system/etc/mixer_paths_qrd_skuh.xml \
56 hardware/qcom/audio/configs/msm8909/mixer_paths_qrd_skui.xml:system/etc/mixer_paths_qrd_skui.xml \
57 hardware/qcom/audio/configs/msm8909/mixer_paths.xml:system/etc/mixer_paths.xml \
58 hardware/qcom/audio/configs/msm8909/mixer_paths_msm8909_pm8916.xml:system/etc/mixer_paths_msm8909_pm8916.xml \
59 hardware/qcom/audio/configs/msm8909/mixer_paths_wcd9326_i2s.xml:system/etc/mixer_paths_wcd9326_i2s.xml \
60 hardware/qcom/audio/configs/msm8909/mixer_paths_skua.xml:system/etc/mixer_paths_skua.xml \
61 hardware/qcom/audio/configs/msm8909/mixer_paths_skuc.xml:system/etc/mixer_paths_skuc.xml \
62 hardware/qcom/audio/configs/msm8909/mixer_paths_skue.xml:system/etc/mixer_paths_skue.xml \
63 hardware/qcom/audio/configs/msm8909/mixer_paths_qrd_skut.xml:system/etc/mixer_paths_qrd_skut.xml \
64 hardware/qcom/audio/configs/msm8909/sound_trigger_mixer_paths.xml:system/etc/sound_trigger_mixer_paths.xml \
65 hardware/qcom/audio/configs/msm8909/sound_trigger_mixer_paths_wcd9326.xml:system/etc/sound_trigger_mixer_paths_wcd9326.xml \
66 hardware/qcom/audio/configs/msm8909/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml \
67 hardware/qcom/audio/configs/msm8909/audio_platform_info.xml:system/etc/audio_platform_info.xml
68
69#XML Audio configuration files
70ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
Ramjee Singh75d7cba2017-03-27 14:55:32 +053071ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true)
Ramjee Singh29867652017-03-27 12:47:36 +053072PRODUCT_COPY_FILES += \
73 $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:/system/etc/audio_policy_configuration.xml
74else
75PRODUCT_COPY_FILES += \
76 $(TOPDIR)hardware/qcom/audio/configs/msm8909/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml
77endif
78PRODUCT_COPY_FILES += \
79 $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:/system/etc/a2dp_audio_policy_configuration.xml \
80 $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:/system/etc/audio_policy_volumes.xml \
81 $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:/system/etc/default_volume_tables.xml \
82 $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:/system/etc/r_submix_audio_policy_configuration.xml \
83 $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:/system/etc/usb_audio_policy_configuration.xml
84endif
Ramjee Singh1e34df22017-04-04 16:00:02 +053085
86PRODUCT_PACKAGES += \
87 android.hardware.audio@2.0-service \
88 android.hardware.audio@2.0-impl \
89 android.hardware.audio.effect@2.0-impl \
90 android.hardware.soundtrigger@2.0-impl