博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
回去看linux的指令
阅读量:5283 次
发布时间:2019-06-14

本文共 14014 字,大约阅读时间需要 46 分钟。

SYNC CL : MSM8953 @ CL#:12212299     PROJECT PATH : // Platform / N / NILE / COMBINATION / MSM8953 Cross Reference: Android.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)),)12    # B-family platform uses msm8974 code base13    AUDIO_PLATFORM = msm897414    MULTIPLE_HW_VARIANTS_ENABLED := true15ifneq ($(filter msm8610,$(TARGET_BOARD_PLATFORM)),)16    LOCAL_CFLAGS := -DPLATFORM_MSM861017endif18ifneq ($(filter msm8226,$(TARGET_BOARD_PLATFORM)),)19    LOCAL_CFLAGS := -DPLATFORM_MSM8x2620endif21ifneq ($(filter apq8084,$(TARGET_BOARD_PLATFORM)),)22    LOCAL_CFLAGS := -DPLATFORM_APQ808423endif24ifneq ($(filter msm8994,$(TARGET_BOARD_PLATFORM)),)25    LOCAL_CFLAGS := -DPLATFORM_MSM899426endif27ifneq ($(filter msm8992,$(TARGET_BOARD_PLATFORM)),)28    LOCAL_CFLAGS := -DPLATFORM_MSM899429endif30ifneq ($(filter msm8996,$(TARGET_BOARD_PLATFORM)),)31    LOCAL_CFLAGS := -DPLATFORM_MSM899632endif33ifneq ($(filter msmcobalt,$(TARGET_BOARD_PLATFORM)),)34    LOCAL_CFLAGS := -DPLATFORM_MSMCOBALT35endif36endif3738ifneq ($(filter msm8916 msm8909 msm8952 msm8937 thorium msm8953 msmgold msmfalcon,$(TARGET_BOARD_PLATFORM)),)39    AUDIO_PLATFORM = msm891640    MULTIPLE_HW_VARIANTS_ENABLED := true41    LOCAL_CFLAGS := -DPLATFORM_MSM891642ifneq ($(filter msm8909,$(TARGET_BOARD_PLATFORM)),)43    LOCAL_CFLAGS := -DPLATFORM_MSM890944endif45ifneq ($(filter msm8937,$(TARGET_BOARD_PLATFORM)),)46  LOCAL_CFLAGS := -DPLATFORM_MSM893747endif48ifneq ($(filter msmfalcon,$(TARGET_BOARD_PLATFORM)),)49    LOCAL_CFLAGS := -DPLATFORM_MSMFALCON50endif51endif5253LOCAL_SRC_FILES := \54    audio_hw.c \55    voice.c \56    platform_info.c \57    $(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 \64                   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)69    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)82    LOCAL_CFLAGS += -DANC_HEADSET_ENABLED83endif8485ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HIFI_AUDIO)),true)86    LOCAL_CFLAGS += -DHIFI_AUDIO_ENABLED87endif8889ifeq ($(strip $(AUDIO_FEATURE_ENABLED_VBAT_MONITOR)),true)90    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    LOCAL_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.c120endif121122ifeq ($(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)152    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.c159endif160161ifeq ($(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.c174endif175176ifeq ($(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_NEEDED191endif192193ifeq ($(strip $(AUDIO_FEATURE_ENABLED_WMA_OFFLOAD)),true)194    LOCAL_CFLAGS += -DWMA_OFFLOAD_ENABLED195    LOCAL_CFLAGS += -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_ENABLED_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_arbi.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)230    LOCAL_CFLAGS += -DDS2_DOLBY_DAP_ENABLED231    LOCAL_CFLAGS += -DDS1_DOLBY_DDP_ENABLED232ifneq ($(strip $(DOLBY_DDP)),true)233    ifneq ($(strip $(DS1_DOLBY_DAP)),true)234        LOCAL_SRC_FILES += audio_extn/dolby.c235    endif236endif237endif238239ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH)),true)240    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)250    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/a2dp.c257endif258259LOCAL_SHARED_LIBRARIES := \260    libpower \261    liblog \262    libcutils \263    libtinyalsa \264    libtinycompress \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    external/tinycompress/include \291    system/media/audio_utils/include \292    external/expat/lib \293    $(call include-path-for, 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)300    LOCAL_CFLAGS += -DAUDIO_LISTEN_ENABLED301    LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-listen302    LOCAL_SRC_FILES += audio_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)316    LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/sound_trigger317    LOCAL_SRC_FILES += audio_extn/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/inc328    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 += libSamsungPostProcess351endif352353ifeq (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_LIBRARIES += 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 += vendor/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_UTILS388    LOCAL_C_INCLUDES += vendor/samsung/frameworks/audio/audiocoreutils389    LOCAL_SHARED_LIBRARIES += libsecaudiocoreutils390endif391ifeq (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

 

转载于:https://www.cnblogs.com/liunx1109/p/7474362.html

你可能感兴趣的文章
Android异步加载网络图片
查看>>
python学习之 - XML
查看>>
css问题小计
查看>>
Laravel学习笔记(三)数据库 数据库迁移
查看>>
ORACLE查看并修改最大连接数
查看>>
box-flex不均分问题
查看>>
Python--GIL 详解
查看>>
Oracle数据导入Mysql中
查看>>
BZOJ-4424 &&CodeForces-19E Fairy DP+dfs (Link-Cut-Tree可A)
查看>>
MongoDB学习笔记——聚合操作之group,distinct,count
查看>>
大道至简读后感(第四章)
查看>>
IDA IDC Tutorials: Additional Auto-Commenting
查看>>
k8s-存储卷1-十二
查看>>
在Android中Intent的概念及应用(二)——Intent过滤器相关选项
查看>>
前端面试题(4)iframe有哪些优点?iframe缺点是什么?
查看>>
第十六章 多态性(一)
查看>>
INSERT IGNORE INTO / REPLACE INTO
查看>>
Python数据类型-布尔/数字/字符串/列表/元组/字典/集合
查看>>
MFC中theApp
查看>>
类的无参方法
查看>>