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 |
Satya Krishna Pindiproli | 4a72ae6 | 2017-07-02 16:08:11 +0530 | [diff] [blame] | 22 | AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false |
Ramjee Singh | 75d7cba | 2017-03-27 14:55:32 +0530 | [diff] [blame] | 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 |
Revathi Uddaraju | 1eac8b0 | 2017-05-18 17:13:33 +0530 | [diff] [blame] | 35 | AUDIO_FEATURE_ENABLED_DYNAMIC_LOG := true |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 36 | MM_AUDIO_ENABLED_FTM := true |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 37 | TARGET_USES_QCOM_MM_AUDIO := true |
Dhananjay Kumar | e6293dd | 2017-05-25 17:25:30 +0530 | [diff] [blame] | 38 | AUDIO_FEATURE_ENABLED_SND_MONITOR := true |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 39 | |
Ramjee Singh | 75d7cba | 2017-03-27 14:55:32 +0530 | [diff] [blame] | 40 | ##AUDIO_FEATURE_FLAGS |
| 41 | |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 42 | #Audio Specific device overlays |
| 43 | DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay |
| 44 | |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 45 | |
| 46 | # Audio configuration file |
Ramjee Singh | 75d7cba | 2017-03-27 14:55:32 +0530 | [diff] [blame] | 47 | ifeq ($(TARGET_USES_AOSP_FOR_AUDIO), true) |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 48 | PRODUCT_COPY_FILES += \ |
Divya Narayanan Poojary | 2c5f13a | 2017-07-05 16:54:41 +0530 | [diff] [blame] | 49 | device/qcom/common/media/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 50 | else |
| 51 | PRODUCT_COPY_FILES += \ |
Ramjee Singh | 2fe702d | 2017-05-19 18:57:37 +0530 | [diff] [blame] | 52 | hardware/qcom/audio/configs/msm8909/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 53 | endif |
| 54 | PRODUCT_COPY_FILES += \ |
Ramjee Singh | 2fe702d | 2017-05-19 18:57:37 +0530 | [diff] [blame] | 55 | hardware/qcom/audio/configs/msm8909/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \ |
Lakshman Chaluvaraju | c57b29c | 2018-05-08 19:42:03 +0530 | [diff] [blame] | 56 | hardware/qcom/audio/configs/msm8909/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ |
Divya Narayanan Poojary | 2c5f13a | 2017-07-05 16:54:41 +0530 | [diff] [blame] | 57 | hardware/qcom/audio/configs/msm8909/mixer_paths_qrd_skuh.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_qrd_skuh.xml \ |
| 58 | hardware/qcom/audio/configs/msm8909/mixer_paths_qrd_skui.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_qrd_skui.xml \ |
| 59 | hardware/qcom/audio/configs/msm8909/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \ |
| 60 | hardware/qcom/audio/configs/msm8909/mixer_paths_msm8909_pm8916.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_msm8909_pm8916.xml \ |
| 61 | hardware/qcom/audio/configs/msm8909/mixer_paths_wcd9326_i2s.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_wcd9326_i2s.xml \ |
| 62 | hardware/qcom/audio/configs/msm8909/mixer_paths_skua.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_skua.xml \ |
| 63 | hardware/qcom/audio/configs/msm8909/mixer_paths_skuc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_skuc.xml \ |
| 64 | hardware/qcom/audio/configs/msm8909/mixer_paths_skue.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_skue.xml \ |
| 65 | hardware/qcom/audio/configs/msm8909/mixer_paths_qrd_skut.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_qrd_skut.xml \ |
| 66 | hardware/qcom/audio/configs/msm8909/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \ |
| 67 | hardware/qcom/audio/configs/msm8909/sound_trigger_mixer_paths_wcd9326.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9326.xml \ |
| 68 | hardware/qcom/audio/configs/msm8909/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \ |
Revathi Uddaraju | fdaeee2 | 2017-10-20 12:29:32 +0530 | [diff] [blame] | 69 | hardware/qcom/audio/configs/msm8909/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 70 | |
| 71 | #XML Audio configuration files |
| 72 | ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1) |
Dhananjay Kumar | aeb58fd | 2017-07-14 22:45:34 +0530 | [diff] [blame] | 73 | ifneq ($(TARGET_USES_AOSP_FOR_AUDIO), true) |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 74 | PRODUCT_COPY_FILES += \ |
Dhananjay Kumar | aeb58fd | 2017-07-14 22:45:34 +0530 | [diff] [blame] | 75 | $(TOPDIR)hardware/qcom/audio/configs/msm8909/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 76 | endif |
| 77 | PRODUCT_COPY_FILES += \ |
Dhananjay Kumar | aeb58fd | 2017-07-14 22:45:34 +0530 | [diff] [blame] | 78 | $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ |
Divya Narayanan Poojary | 2c5f13a | 2017-07-05 16:54:41 +0530 | [diff] [blame] | 79 | $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \ |
| 80 | $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ |
| 81 | $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ |
| 82 | $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ |
| 83 | $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml |
Ramjee Singh | 2986765 | 2017-03-27 12:47:36 +0530 | [diff] [blame] | 84 | endif |
Ramjee Singh | 1e34df2 | 2017-04-04 16:00:02 +0530 | [diff] [blame] | 85 | |
Ramjee Singh | 6383966 | 2017-05-10 15:27:22 +0530 | [diff] [blame] | 86 | |
| 87 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 88 | ro.vendor.audio.sdk.ssr=false |
| 89 | |
| 90 | ##fluencetype can be "fluence" or "fluencepro" or "none" |
| 91 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 92 | ro.vendor.audio.sdk.fluencetype=none\ |
| 93 | persist.vendor.audio.fluence.voicecall=true\ |
| 94 | persist.vendor.audio.fluence.voicerec=false\ |
| 95 | persist.vendor.audio.fluence.speaker=true |
| 96 | |
| 97 | #disable tunnel encoding |
| 98 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 99 | vendor.audio.tunnel.encode=false |
| 100 | |
| 101 | #Buffer size in kbytes for compress offload playback |
| 102 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 103 | vendor.audio.offload.buffer.size.kb=64 |
| 104 | |
| 105 | #Minimum duration for offload playback in secs |
| 106 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 107 | audio.offload.min.duration.secs=30 |
| 108 | |
| 109 | #Enable offload audio video playback by default |
| 110 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 111 | audio.offload.video=true |
| 112 | |
| 113 | #enable voice path for PCM VoIP by default |
| 114 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 115 | vendor.voice.path.for.pcm.voip=true |
| 116 | |
| 117 | #enable dsp gapless mode by default |
| 118 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 119 | vendor.audio.offload.gapless.enabled=true |
| 120 | |
| 121 | #Audio voice concurrency related flags |
| 122 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 123 | vendor.voice.playback.conc.disabled=true\ |
| 124 | vendor.voice.record.conc.disabled=true\ |
| 125 | vendor.voice.voip.conc.disabled=true |
| 126 | |
| 127 | #Audio VoIP / playback record concurrency flags |
| 128 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 129 | vendor.audio.rec.playback.conc.disabled=true |
| 130 | |
| 131 | #property to enable image unload by audio HAL |
| 132 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 133 | vendor.audio.sys.init=false |
| 134 | |
| 135 | #Enable DS2 feature for Dolby |
| 136 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 137 | vendor.audio.dolby.ds2.enabled=true |
| 138 | |
Ramjee Singh | 43d58b2 | 2018-07-26 14:59:19 +0530 | [diff] [blame^] | 139 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 140 | persist.vendor.audio.hw.binder.size_kbyte=1024 |
| 141 | |
Ramjee Singh | 1e34df2 | 2017-04-04 16:00:02 +0530 | [diff] [blame] | 142 | PRODUCT_PACKAGES += \ |
Rajshekar Eashwarappa | f010749 | 2018-05-29 12:22:35 +0530 | [diff] [blame] | 143 | android.hardware.audio@2.0-service \ |
Ramjee Singh | 1e34df2 | 2017-04-04 16:00:02 +0530 | [diff] [blame] | 144 | android.hardware.audio@2.0-impl \ |
| 145 | android.hardware.audio.effect@2.0-impl \ |
| 146 | android.hardware.soundtrigger@2.0-impl |