SYNC cl:msm8953 @ cl#:12212299 PROJECT PATH://platform/n/nile/combination/msm8953 cross Reference:an Droid.mkxref:/android/vendor/samsung/variant/audio/hal/android.mk homehistoryannotateline#navigaterawdownload Only In/android/vendor/samsung/variant/audio/hal/1ifeq ($ (Strip $ (Board_uses_alsa_audio)), true) 23local_path: = $ ( Call My-dir) 45include $ (clear_vars) 67local_arm_mode: = Arm89audio_platform: = $ (Target_board_platform) 1011ifneq ($ ( Filter msm8974 msm8226 msm8610 apq8084 msm8994 msm8992 msm8996 msmcobalt,$ (target_board_platform)),) # b-family PLATF ORM uses msm8974 code base13 audio_platform = msm897414 multiple_hw_variants_enabled: = True15ifneq ($ (Filter msm861 0,$ (Target_board_platform)),) Local_cflags: =-dplatform_msm861017endif18ifneq ($ (Filter msm8226,$ (TARGET_BOARD_ PLATFORM)) Local_cflags: =-dplatform_msm8x2620endif21ifneq ($ (Filter apq8084,$ (target_board_platform)), LOCA L_cflags: =-dplatform_apq808423endif24ifneq ($ (filter msm8994,$ (Target_board_platform)),) Local_cflags: =-dplatform_msm899426endif27ifneq ($ (Filter msm8992,$ (TARGET_ Board_platform)) Local_cflags: =-dplatform_msm899429endif30ifneq ($ (Filter msm8996,$ (Target_board_platform)),) Local_cflags: =-dplatform_msm899632endif33ifneq ($ (Filter msmcobalt,$ (target_board_platform)), LOCAL_CFLAGS: =-dplatform_msmcobalt35endif36endif3738ifneq ($ (Filter msm8916 msm8909 msm8952 msm8937 thorium msm8953 msmgold msmfalcon,$ (Target_board_platform)),) Audio_platform = msm891640 multiple_hw_variants_enabled: = true41 Local_c FLAGS: =-dplatform_msm891642ifneq ($ (Filter msm8909,$ (target_board_platform)), local_cflags: =-dplatform_ Msm890944endif45ifneq ($ (Filter msm8937,$ (target_board_platform)), local_cflags: =-dplatform_ Msm893747endif48ifneq ($ (Filter msmfalcon,$ (Target_board_platform)),) Local_cflags: =-dplatform_ Msmfalcon50endif51endif5253local_src_files: = audio_hw.c voice.c Platform_infO.C $ (audio_platform)/platform.c5859#add for samsung60local_src_files + = Sec_audio/audio_hw_sec.c61local_src_ FILES + = Sec_audio/audio_hw_factory.c6263local_src_files + = Audio_extn/audio_extn.c audio_extn/utils. C65local_c_includes + = $ (target_out_intermediates)/kernel_obj/usr/include66local_additional_dependencies + = $ ( Target_out_intermediates)/kernel_obj/usr6768ifeq ($ ($ (strip $ (audio_feature_enabled_hdmi_edid)), true) LOCAL_ CFLAGS + =-dhdmi_edid70 Local_src_files + = Edid.c71endif7273ifeq ($ (Strip $ (audio_use_ll_as_primary_output)), true 74 Local_cflags + =-duse_ll_as_primary_output75endif7677ifeq ($ (Strip $ (audio_feature_enabled_pcm_offload)), true) 78 Local_cflags + =-dpcm_offload_enabled79endif8081ifeq ($ (Strip $ (audio_feature_enabled_anc_headset)), true) LOCAL_ CFLAGS + =-danc_headset_enabled83endif8485ifeq ($ (Strip $ (Audio_feature_enabled_hifi_audio)), true) Local_cflags + = -dhifi_audio_enabled87endif8889ifeq ($ (Strip $ (audio_feature_enablEd_vbat_monitor)), true) Local_cflags + =-dvbat_monitor_enabled91endif9293ifeq ($ (Strip $ (audio_feature_enabled_ Fluence)), true) 94 Local_cflags + =-dfluence_enabled95endif9697ifeq ($ (Strip $ (audio_feature_enabled_proxy_device)), true) 98 Local_cflags + =-dafe_proxy_enabled99endif100101ifeq ($ (Strip $ (audio_feature_enabled_kpi_optimize)), true) 102 Local_cflags + =-dkpi_optimize_enabled103endif104105ifeq (true,$ (Call Spf_check,sec_product_feature_audio_ fmradio,true)) 106ifeq ($ ($ (strip $ (audio_feature_enabled_fm_power_opt)), TRUE) 107 local_cflags + =-dfm_power_opt108 LOC Al_src_files + = Audio_extn/fm.c109endif110endif111112ifeq ($ (Strip $ (Audio_feature_enabled_usb_tunnel_audio)), True ) 113 Local_cflags + =-dusb_headset_enabled114 local_src_files + audio_extn/usb.c115endif116117ifeq ($ (Strip $ (audio _FEATURE_ENABLED_HFP)), true) 118 Local_cflags + =-dhfp_enabled119 Local_src_files + = audio_extn/hfp.c120endif121122if EQ ($ (Strip $ (Audio_feature_enabled_customstereo)), true)123 Local_cflags + =-dcustom_stereo_enabled124endif125126ifeq ($ (Strip $ (AUDIO_FEATURE_ENABLED_SSR)), true) 127 LOCAL_ CFLAGS + =-dssr_enabled128 Local_src_files + audio_extn/ssr.c129 Local_c_includes + $ (target_out_headers)/mm-audio /surround_sound_3mic/130 Local_c_includes + = $ (target_out_headers)/common/inc/131endif132133ifeq ($ (Strip $ (AUDIO_ feature_enabled_multi_voice_sessions)), true) 134 Local_cflags + =-dmulti_voice_session_enabled135 LOCAL_SRC_FILES + = Voice_extn/voice_extn.c136137ifeq ($ (Strip $ (audio_feature_enabled_incall_music)), true) 138 Local_cflags + =-DINCALL _music_enabled139endif140endif141142ifeq ($ (Strip $ (AUDIO_FEATURE_ENABLED_COMPRESS_VOIP)), true) 143 LOCAL_CFLAGS + = -dcompress_voip_enabled144 Local_src_files + = Voice_extn/compress_voip.c145endif146147ifeq ($ (Strip $ (AUDIO_FEATURE _enabled_extn_formats)), true) 148 Local_cflags + =-daudio_extn_formats_enabled149endif150151ifeq ($ (Strip $ (AUDIO_ feature_enabled_spkr_protection)), true) LOcal_cflags + =-dspkr_prot_enabled153 local_src_files + audio_extn/spkr_protection.c154endif155156ifdef MULTIPLE_HW _variants_enabled157 Local_cflags + =-dhw_variants_enabled158 local_src_files + $ (audio_platform)/hw_info.c159endif 160161ifeq ($ (Strip $ (audio_feature_enabled_compress_capture)), true) 162 local_cflags + =-dcompress_capture_ ENABLED163 Local_src_files + = Audio_extn/compress_capture.c164endif165166ifeq ($ (Strip $ (audio_feature_enabled_dts_ EAGLE)), true) 167 local_cflags + =-ddts_eagle168 Local_src_files + = Audio_extn/dts_eagle.c169endif170171ifeq ($ (strip $ (DOLBY_DDP)), true) 172 local_cflags + =-dds1_dolby_ddp_enabled173 Local_src_files + = audio_extn/dolby.c174endif1751 76ifeq ($ (Strip $ (DS1_DOLBY_DAP)), true) 177 local_cflags + =-DDS1_DOLBY_DAP_ENABLED178IFNEQ ($ (Strip $ (DOLBY_DDP)), true) 179 Local_src_files + = Audio_extn/dolby.c180endif181endif182183ifeq ($ (Strip $ (Audio_feature_enabled_extn_flac _decoder)), true) 184 local_cflags + =-dflac_offload_enabled185 Local_cflags + =-dcompress_metadata_needed186endif187188ifeq ($ (Strip $ (audio_feature_enabled_vorbis_ Offload)), true) 189 local_cflags + =-dvorbis_offload_enabled190 Local_cflags + =-dcompress_metadata_needed191endif192 193ifeq ($ (Strip $ (audio_feature_enabled_wma_offload)), true) 194 local_cflags + =-dwma_offload_enabled195 Local_cflag S + =-dcompress_metadata_needed196endif197198ifeq ($ (Strip $ (audio_feature_enabled_alac_offload)), true) 199 LOCAL_ CFLAGS + =-dalac_offload_enabled200 Local_cflags + =-dcompress_metadata_needed201endif202203ifeq ($ (Strip $ (AUDIO_ Feature_enabled_ape_offload)), true) 204 local_cflags + =-dape_offload_enabled205 Local_cflags + =-DCOMPRESS_METADATA_ Needed206endif207208ifeq ($ (Strip $ (audio_feature_enabled_pcm_offload_24)), true) 209 Local_cflags + =-DPCM_OFFLOAD_E Nabled_24210endif211212ifeq ($ (Strip $ (audio_feature_enabled_aac_adts_offload)), true) 213 local_cflags + =-DAAC_ADTS _offload_enabled214endif215216ifeq ($ (Strip $(Audio_feature_enabled_dev_arbi)), true) 217 local_cflags + =-ddev_arbi_enabled218 Local_src_files + = audio_extn/dev_a Rbi.c219endif220221ifeq ($ (Strip $ (audio_feature_enabled_record_play_concurrency)), true) 222 Local_cflags + =- Drecord_play_concurrency223endif224225ifeq ($ (Strip $ (audio_feature_enabled_acdb_license)), true) 226 LOCAL_CFLAGS + =-ddolby_acdb_license227endif228229ifeq ($ (Strip $ (AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP)), true) Local_cflags + =- dds2_dolby_dap_enabled231 Local_cflags + =-DDS1_DOLBY_DDP_ENABLED232IFNEQ ($ (Strip $ (DOLBY_DDP)), true) 233 Ifneq ($ (s Trip $ (DS1_DOLBY_DAP)), true) 234 local_src_files + = audio_extn/dolby.c235 endif236endif237endif238239ifeq ($ (stri P $ (Audio_feature_enabled_hdmi_passthrough)), true) Local_cflags + =-dhdmi_passthrough_enabled241 LOCAL_SRC_FILES + = Audio_extn/passthru.c242endif243244ifeq ($ (Strip $ (audio_feature_enabled_keep_alive)), true) 245 local_cflags + =- dkeep_alive_enabled246 Local_src_files + =Audio_extn/keep_alive.c247endif248249ifeq ($ (Strip $ (audio_feature_enabled_source_tracking)), true) LOCAL_ CFLAGS + =-dsource_tracking_enabled251 Local_src_files + = Audio_extn/source_track.c252endif253254ifeq ($ (Strip $ ( AUDIO_FEATURE_ENABLED_SPLIT_A2DP)), true) 255 local_cflags + =-dsplit_a2dp_enabled256 Local_src_files + = Audio_extn/a2 Dp.c257endif258259local_shared_libraries: = 260 libpower 261 liblog 262 libcutils 263 Libtinyalsa Nycompress 265 libaudioroute 266 LIBDL 267 libaudioutils 268 libhardware 269 libexpat270271ifneq (, $ (filter $ (call Spf_get,sec_product_feature_audio_config_speaker_amp), 9890 9895 9896 9897) 272ifeq (true,$ (Call spf_check,sec _product_feature_audio_config_speaker_amp,9896)) 273 Local_cflags + =-duse_tfa9896274endif275ifeq (true,$ (Call spf_ check,sec_product_feature_audio_config_speaker_amp,9890)) 276 local_cflags + =-duse_tfa9890277endif278 LOCAL_SRC_ FILES + = audio_extn/tfa98xx_amp.c279 local_cflags+ =-dsec_audio_speaker_amp_nxp280281 local_shared_libraries + 282 libtfa98xx283284 local_c_includes + = 285 Vendor/samsung/frameworks/audio/tfa_amp286endif287288local_c_includes + = 289 External/tinyalsa/include 290 ext Ernal/tinycompress/include 291 system/media/audio_utils/include 292 External/expat/lib 293 $ (Call Include-path-fo R, Audio-route) 294 $ (call include-path-for, audio-effects) 295 $ (Local_path)/$ (audio_platform) 296 $ (LOCAL_PATH) /audio_extn 297 $ (Local_path)/voice_extn298299ifeq ($ (Strip $ (Audio_feature_enabled_listen)), true) + Local_cflags + =-daudio_listen_enabled301 Local_c_includes + = $ (target_out_headers)/mm-audio/audio-listen302 LOCAL_SRC_FILES + = au Dio_extn/listen.c303endif304305ifeq ($ (Strip $ (AUDIO_FEATURE_ENABLED_EXT_HDMI)), true) 306 local_cflags + =-DAUDIO_ External_hdmi_enabled307ifeq ($ (Strip $ (Audio_feature_enabled_hdmi_passthrough)), true) 308 Local_c_includes + = $ ( Target_out_headers)/mm-audio/audio-parsers309 local_shared_libraries + = Libaudioparsers310endif311endif312313ifeq ($ (Strip $ (board_supports_sound_ TRIGGER)), true) 314 local_cflags + =-dsound_trigger_enabled315 Local_cflags + =-dsound_trigger_platform_name=$ (TARGET _board_platform) Local_c_includes + + $ (target_out_headers)/mm-audio/sound_trigger317 LOCAL_SRC_FILES + = Audio_ext N/soundtrigger.c318endif319320ifeq ($ (Strip $ (AUDIO_FEATURE_ENABLED_AUXPCM_BT)), true) 321 local_cflags + =-DAUXPCM_ Bt_enabled322endif323324ifeq ($ (Strip $ (audio_feature_enabled_pm_support)), true) 325 local_cflags + =-DPM_SUPPORT_ ENABLED326 Local_src_files + = audio_extn/pm.c327 local_c_includes + $ (target_out_headers)/LIBPERIPHERALCLIENT/INC32 8 local_shared_libraries + = Libperipheral_client329endif330331ifeq (true,$ (Call Spf_check,sec_product_feature_audio _CONFIG_SEAMLESS_CHIPSET_VERSION,DBMD2)) 332 Local_src_files + = voice_seamless/cvq_stream.c333 LOCAL_C_INCLUDES + = $ ( Local_path)/voice_seamless334endif335336#libaudio_soundtrigger337local_c_includes + = Vendor/samsung/frameworks/audio/soundtrigger_hal/audio_soundtrigger338local_ Shared_libraries + = LIBAUDIO_SOUNDTRIGGER339340IFNEQ (true,$ (Call Spf_check,sec_product_feature_audio_config_ Recordalive_lib_version,)) 341 Local_c_includes + = vendor/samsung/frameworks/audio/recordalive342 LOCAL_SHARED_ LIBRARIES + = librecordalive343else344 local_c_includes + vendor/samsung/frameworks/audio/preprocess345 LOCAL_SHARED _libraries + = Libsamsungpreprocess346endif347348ifeq (true,$ (Call Spf_check,sec_product_feature_audio_soundbooster , TRUE)) 349 local_c_includes + = vendor/samsung/frameworks/audio/postprocess350 Local_shared_libraries + = LibSamsungPo Stprocess351endif352353ifeq (true,$ (call spf_check,sec_product_feature_audio_voice_note_pcm_recording,true)) 354 Local_shared_libraries + = libSamsungPostProcessConvertor355 Local_c_includes + = vendor/samsung/frameworks/audio/ Postprocessconvertor356endif357358#samsung Resampler359local_c_includes + =Sec_audio/voipresampler360local_shared_libraries + = Libsamsungvoipresampler361362ifeq (true,$ (Call spf_check,SEC_ PRODUCT_FEATURE_AUDIO_CONFIG_EXTERNAL_MODEM_TYPE,MSM8937LA30)) 363 Local_cflags + =-DMODEM_ Msm8937la30364endif365366ifeq ($ (findstring dualcp,$ (call Spf_get,sec_product_feature_audio_config_type_multi_sim ), DUALCP) 367ifeq ($ (Filter mdm%,$ (call Spf_get,sec_product_feature_audio_config_external_modem_type)), 368 LOCAL_ C_includes + = $ (TOP)/hardware/ril/libsecril-client369 local_shared_libraries + = libsecril-client370 LOCAL_SHARED_LIB Raries + = libaudio-ril371 local_c_includes + $ (TOP)/vendor/samsung/frameworks/audio/audioril372endif373endif374375 #add for csc feature376local_c_includes + = Vendor/samsung/configs/feature/cscfeature/libsecnativefeature377local_ Shared_libraries + = libsecnativefeature378379# [SAMSUNG] to support the effects for the Offload380local_c_includes + = Vend Or/samsung/frameworks/audio/audioeffect_offload381382ifeq ($ (sec_product_ship), false) 383 Local_cflags + =-daudio_core_utils384 Local_c_includes + = vendor/samsung/frameworks/audio/audiocoreutils385 LOCAL _shared_libraries + = Libsecaudiocoreutils386else ifeq ($ (target_build_variant), Eng) 387 local_cflags + =-DAUDIO_CORE_U TILS388 Local_c_includes + = vendor/samsung/frameworks/audio/audiocoreutils389 Local_shared_libraries + = Libsecaudioc Oreutils390endif391ifeq (true,$ (call spf_check,sec_product_feature_audio_config_core_fx_framework_version,3.0)) 392 Local_cflags + =-daudiocore_fx_framework_v3393endif394395local_cflags +-wall-werror- Wno-unused-function396local_copy_headers_to: = mm-audio397local_copy_headers: = audio_extn/audio_defs.h398399local _module: = audio.primary.$ (target_board_platform) 400401local_module_relative_path: = Hw402403LOCAL_MULTILIB: = 32404405local_module_tags: = Optional406407include $ (build_shared_library) 408409endif410last source parsed Date: 2017-07-06 PM 04:56:44
Go back to the Linux instructions.