Banajit Goswami | 8b11ffe | 2016-04-07 01:56:17 -0700 | [diff] [blame] | 1 | #BOARD_USES_GENERIC_AUDIO := true |
| 2 | # |
| 3 | #AUDIO_FEATURE_FLAGS |
| 4 | BOARD_USES_ALSA_AUDIO := true |
| 5 | USE_CUSTOM_AUDIO_POLICY := 1 |
Satya Krishna Pindiproli | 013c3e4 | 2016-04-13 17:41:15 +0530 | [diff] [blame] | 6 | USE_XML_AUDIO_POLICY_CONF := 0 |
Banajit Goswami | 8b11ffe | 2016-04-07 01:56:17 -0700 | [diff] [blame] | 7 | BOARD_SUPPORTS_SOUND_TRIGGER := true |
| 8 | AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true |
| 9 | |
| 10 | AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true |
| 11 | AUDIO_FEATURE_ENABLED_ANC_HEADSET := true |
| 12 | AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE := false |
| 13 | AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true |
| 14 | AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true |
| 15 | AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true |
| 16 | AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true |
| 17 | AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true |
| 18 | AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true |
| 19 | AUDIO_FEATURE_ENABLED_FLUENCE := true |
| 20 | AUDIO_FEATURE_ENABLED_HDMI_SPK := true |
| 21 | AUDIO_FEATURE_ENABLED_HDMI_EDID := true |
Satish Babu Patakokila | 50949a6 | 2016-06-13 16:53:58 +0530 | [diff] [blame] | 22 | #AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH := true |
| 23 | #AUDIO_FEATURE_ENABLED_KEEP_ALIVE := true |
| 24 | #AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true |
| 25 | #DOLBY_DDP := true |
Banajit Goswami | 8b11ffe | 2016-04-07 01:56:17 -0700 | [diff] [blame] | 26 | AUDIO_FEATURE_ENABLED_HFP := true |
| 27 | AUDIO_FEATURE_ENABLED_INCALL_MUSIC := false |
| 28 | AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true |
| 29 | AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true |
| 30 | AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true |
| 31 | AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true |
| 32 | AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true |
| 33 | AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true |
| 34 | AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true |
| 35 | AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true |
| 36 | AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true |
| 37 | #AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true |
| 38 | AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true |
| 39 | AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true |
| 40 | AUDIO_FEATURE_ENABLED_SSR := true |
| 41 | AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true |
| 42 | |
| 43 | AUDIO_FEATURE_ENABLED_DTS_EAGLE := false |
Banajit Goswami | 254b104 | 2016-04-07 12:50:21 -0700 | [diff] [blame] | 44 | BOARD_USES_SRS_TRUEMEDIA := false |
| 45 | DTS_CODEC_M_ := false |
Banajit Goswami | 8b11ffe | 2016-04-07 01:56:17 -0700 | [diff] [blame] | 46 | AUDIO_FEATURE_ENABLED_DEV_ARBI := true |
| 47 | MM_AUDIO_ENABLED_FTM := true |
| 48 | MM_AUDIO_ENABLED_SAFX := true |
| 49 | TARGET_USES_QCOM_MM_AUDIO := true |
| 50 | AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false |
| 51 | |
| 52 | AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true |
| 53 | AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true |
Kuirong Wang | 357e0b1 | 2016-07-06 00:29:15 -0700 | [diff] [blame] | 54 | AUDIO_FEATURE_ENABLED_USB_TUNNEL_AUDIO := true |
Banajit Goswami | 8b11ffe | 2016-04-07 01:56:17 -0700 | [diff] [blame] | 55 | ##AUDIO_FEATURE_FLAGS |
Garmond Leung | 29861ff | 2016-05-09 15:37:55 -0700 | [diff] [blame] | 56 | |
| 57 | #Audio Specific device overlays |
| 58 | DEVICE_PACKAGE_OVERLAYS += hardware/qcom/audio/configs/common/overlay |
Banajit Goswami | 8b11ffe | 2016-04-07 01:56:17 -0700 | [diff] [blame] | 59 | |
| 60 | # Audio configuration file |
| 61 | ifeq ($(TARGET_USES_AOSP), true) |
| 62 | PRODUCT_COPY_FILES += \ |
| 63 | device/qcom/common/media/audio_policy.conf:system/etc/audio_policy.conf |
| 64 | else |
| 65 | PRODUCT_COPY_FILES += \ |
| 66 | hardware/qcom/audio/configs/msmcobalt/audio_policy.conf:system/etc/audio_policy.conf |
| 67 | endif |
| 68 | |
| 69 | PRODUCT_COPY_FILES += \ |
| 70 | hardware/qcom/audio/configs/msmcobalt/audio_output_policy.conf:system/vendor/etc/audio_output_policy.conf \ |
| 71 | hardware/qcom/audio/configs/msmcobalt/audio_effects.conf:system/vendor/etc/audio_effects.conf \ |
| 72 | hardware/qcom/audio/configs/msmcobalt/mixer_paths.xml:system/etc/mixer_paths.xml \ |
| 73 | hardware/qcom/audio/configs/msmcobalt/mixer_paths_tasha.xml:system/etc/mixer_paths_tasha.xml \ |
Shiv Maliyappanahalli | d4cf30c | 2016-07-12 15:05:31 -0700 | [diff] [blame^] | 74 | hardware/qcom/audio/configs/msmcobalt/mixer_paths_tavil.xml:system/etc/mixer_paths_tavil.xml \ |
Banajit Goswami | 8b11ffe | 2016-04-07 01:56:17 -0700 | [diff] [blame] | 75 | hardware/qcom/audio/configs/msmcobalt/mixer_paths_dtp.xml:system/etc/mixer_paths_dtp.xml \ |
| 76 | hardware/qcom/audio/configs/msmcobalt/mixer_paths_i2s.xml:system/etc/mixer_paths_i2s.xml \ |
| 77 | hardware/qcom/audio/configs/msmcobalt/aanc_tuning_mixer.txt:system/etc/aanc_tuning_mixer.txt \ |
| 78 | hardware/qcom/audio/configs/msmcobalt/audio_platform_info_i2s.xml:system/etc/audio_platform_info_i2s.xml \ |
| 79 | hardware/qcom/audio/configs/msmcobalt/sound_trigger_mixer_paths.xml:system/etc/sound_trigger_mixer_paths.xml \ |
| 80 | hardware/qcom/audio/configs/msmcobalt/sound_trigger_mixer_paths_wcd9330.xml:system/etc/sound_trigger_mixer_paths_wcd9330.xml \ |
| 81 | hardware/qcom/audio/configs/msmcobalt/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml \ |
| 82 | hardware/qcom/audio/configs/msmcobalt/audio_platform_info.xml:system/etc/audio_platform_info.xml |
| 83 | |
Satya Krishna Pindiproli | 013c3e4 | 2016-04-13 17:41:15 +0530 | [diff] [blame] | 84 | #XML Audio configuration files |
| 85 | ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1) |
Satya Krishna Pindiproli | 87a95f9 | 2016-05-09 19:58:33 +0530 | [diff] [blame] | 86 | ifeq ($(TARGET_USES_AOSP), true) |
Satya Krishna Pindiproli | 013c3e4 | 2016-04-13 17:41:15 +0530 | [diff] [blame] | 87 | PRODUCT_COPY_FILES += \ |
Satya Krishna Pindiproli | 87a95f9 | 2016-05-09 19:58:33 +0530 | [diff] [blame] | 88 | $(TOPDIR)hardware/qcom/audio/configs/common/audio_policy_configuration.xml:/system/etc/audio_policy_configuration.xml |
| 89 | else |
| 90 | PRODUCT_COPY_FILES += \ |
| 91 | $(TOPDIR)hardware/qcom/audio/configs/msmcobalt/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml |
| 92 | endif |
| 93 | PRODUCT_COPY_FILES += \ |
Satya Krishna Pindiproli | 013c3e4 | 2016-04-13 17:41:15 +0530 | [diff] [blame] | 94 | $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:/system/etc/a2dp_audio_policy_configuration.xml \ |
| 95 | $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:/system/etc/audio_policy_volumes.xml \ |
| 96 | $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:/system/etc/default_volume_tables.xml \ |
| 97 | $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:/system/etc/r_submix_audio_policy_configuration.xml \ |
| 98 | $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:/system/etc/usb_audio_policy_configuration.xml |
| 99 | endif |
| 100 | |
Banajit Goswami | 8b11ffe | 2016-04-07 01:56:17 -0700 | [diff] [blame] | 101 | # Listen configuration file |
| 102 | PRODUCT_COPY_FILES += \ |
| 103 | hardware/qcom/audio/configs/msmcobalt/listen_platform_info.xml:system/etc/listen_platform_info.xml |
| 104 | |
| 105 | # Reduce client buffer size for fast audio output tracks |
| 106 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 107 | af.fast_track_multiplier=1 |
| 108 | |
| 109 | # Low latency audio buffer size in frames |
| 110 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 111 | audio_hal.period_size=192 |
| 112 | |
| 113 | ##fluencetype can be "fluence" or "fluencepro" or "none" |
| 114 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 115 | ro.qc.sdk.audio.fluencetype=none\ |
| 116 | persist.audio.fluence.voicecall=true\ |
| 117 | persist.audio.fluence.voicerec=false\ |
| 118 | persist.audio.fluence.speaker=true |
| 119 | |
| 120 | #disable tunnel encoding |
| 121 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 122 | tunnel.audio.encode=false |
| 123 | |
| 124 | #Buffer size in kbytes for compress offload playback |
| 125 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 126 | audio.offload.buffer.size.kb=32 |
| 127 | |
| 128 | #Enable offload audio video playback by default |
| 129 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 130 | audio.offload.video=true |
| 131 | |
| 132 | #Enable 16 bit PCM offload by default |
| 133 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 134 | audio.offload.pcm.16bit.enable=true |
| 135 | |
| 136 | #Enable 24 bit PCM offload by default |
| 137 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 138 | audio.offload.pcm.24bit.enable=true |
| 139 | |
| 140 | #Enable audio track offload by default |
| 141 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 142 | audio.offload.track.enable=true |
| 143 | |
| 144 | #Enable music through deep buffer |
| 145 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 146 | audio.deep_buffer.media=true |
| 147 | |
Dhanalakshmi Siddani | 6faf8fa | 2016-05-12 10:08:25 +0530 | [diff] [blame] | 148 | #Default pcm audio sink buffer size in msec. This is used in calculating framecount |
| 149 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 150 | media.stagefright.audio.sink=280 |
| 151 | |
Banajit Goswami | 8b11ffe | 2016-04-07 01:56:17 -0700 | [diff] [blame] | 152 | #enable voice path for PCM VoIP by default |
| 153 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 154 | use.voice.path.for.pcm.voip=true |
| 155 | |
| 156 | #Enable multi channel aac through offload |
| 157 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 158 | audio.offload.multiaac.enable=true |
| 159 | |
| 160 | #Enable DS2, Hardbypass feature for Dolby |
| 161 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 162 | audio.dolby.ds2.enabled=true\ |
| 163 | audio.dolby.ds2.hardbypass=true |
| 164 | |
| 165 | #Disable Multiple offload sesison |
| 166 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 167 | audio.offload.multiple.enabled=false |
| 168 | |
| 169 | #Disable Compress passthrough playback |
| 170 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 171 | audio.offload.passthrough=false |
| 172 | |
| 173 | #Disable surround sound recording |
| 174 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 175 | ro.qc.sdk.audio.ssr=false |
| 176 | |
| 177 | #enable dsp gapless mode by default |
| 178 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 179 | audio.offload.gapless.enabled=true |
| 180 | |
| 181 | #enable pbe effects |
| 182 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 183 | audio.safx.pbe.enabled=true |
| 184 | |
| 185 | #parser input buffer size(256kb) in byte stream mode |
| 186 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 187 | audio.parser.ip.buffer.size=262144 |
| 188 | |