Ramjee Singh | 75d7cba | 2017-03-27 14:55:32 +0530 | [diff] [blame] | 1 | |
| 2 | ##AUDIO_FEATURE_FLAGS |
| 3 | |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 4 | BOARD_USES_ALSA_AUDIO := true |
Ramjee Singh | 75d7cba | 2017-03-27 14:55:32 +0530 | [diff] [blame] | 5 | |
Ramjee Singh | 1e34df2 | 2017-04-04 16:00:02 +0530 | [diff] [blame] | 6 | #TODO move this cchange to device/qcom/msm8909 |
Ramjee Singh | 1e34df2 | 2017-04-04 16:00:02 +0530 | [diff] [blame] | 7 | |
Ramjee Singh | 75d7cba | 2017-03-27 14:55:32 +0530 | [diff] [blame] | 8 | ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true) |
| 9 | USE_CUSTOM_AUDIO_POLICY := 1 |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 10 | AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true |
| 11 | AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true |
| 12 | AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true |
| 13 | AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true |
| 14 | AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true |
Ramjee Singh | 75d7cba | 2017-03-27 14:55:32 +0530 | [diff] [blame] | 15 | AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true |
| 16 | #TODO Enable SSR |
| 17 | #AUDIO_FEATURE_ENABLED_SSR := true |
| 18 | AUDIO_FEATURE_ENABLED_VOICE_CONCURRENCY := true |
| 19 | AUDIO_FEATURE_ENABLED_RECORD_PLAY_CONCURRENCY := true |
| 20 | #TODO Enable PM |
| 21 | #AUDIO_FEATURE_ENABLED_PM_SUPPORT := true |
| 22 | AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true |
| 23 | MM_AUDIO_ENABLED_SAFX := true |
Divya Narayanan Poojary | 087fc04 | 2017-05-09 14:45:24 +0530 | [diff] [blame^] | 24 | DOLBY_ENABLE := false |
Ramjee Singh | 75d7cba | 2017-03-27 14:55:32 +0530 | [diff] [blame] | 25 | |
| 26 | endif |
| 27 | USE_XML_AUDIO_POLICY_CONF := 1 |
| 28 | BOARD_SUPPORTS_SOUND_TRIGGER := true |
| 29 | AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 30 | AUDIO_FEATURE_ENABLED_FLUENCE := true |
| 31 | AUDIO_FEATURE_ENABLED_HFP := true |
| 32 | AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 33 | AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 34 | AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true |
| 35 | MM_AUDIO_ENABLED_FTM := true |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 36 | TARGET_USES_QCOM_MM_AUDIO := true |
| 37 | |
Ramjee Singh | 75d7cba | 2017-03-27 14:55:32 +0530 | [diff] [blame] | 38 | ##AUDIO_FEATURE_FLAGS |
| 39 | |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 40 | #Audio Specific device overlays |
| 41 | DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay |
| 42 | |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 43 | |
| 44 | # Audio configuration file |
Ramjee Singh | 75d7cba | 2017-03-27 14:55:32 +0530 | [diff] [blame] | 45 | ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true) |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 46 | PRODUCT_COPY_FILES += \ |
Ramjee Singh | 75d7cba | 2017-03-27 14:55:32 +0530 | [diff] [blame] | 47 | device/qcom/common/media/audio_policy.conf:system/etc/audio_policy.conf |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 48 | else |
| 49 | PRODUCT_COPY_FILES += \ |
| 50 | hardware/qcom/audio/configs/msm8909/audio_policy.conf:system/etc/audio_policy.conf |
| 51 | endif |
| 52 | PRODUCT_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 |
| 70 | ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1) |
Ramjee Singh | 75d7cba | 2017-03-27 14:55:32 +0530 | [diff] [blame] | 71 | ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true) |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 72 | PRODUCT_COPY_FILES += \ |
| 73 | $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:/system/etc/audio_policy_configuration.xml |
| 74 | else |
| 75 | PRODUCT_COPY_FILES += \ |
| 76 | $(TOPDIR)hardware/qcom/audio/configs/msm8909/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml |
| 77 | endif |
| 78 | PRODUCT_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 |
| 84 | endif |
Ramjee Singh | 1e34df2 | 2017-04-04 16:00:02 +0530 | [diff] [blame] | 85 | |
| 86 | PRODUCT_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 |