回去看linux的指令
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了回去看linux的指令相关的知识,希望对你有一定的参考价值。
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) 2 3LOCAL_PATH := $(call my-dir) 4 5include $(CLEAR_VARS) 6 7LOCAL_ARM_MODE := arm 8 9AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) 10 11ifneq ($(filter msm8974 msm8226 msm8610 apq8084 msm8994 msm8992 msm8996 msmcobalt,$(TARGET_BOARD_PLATFORM)),) 12 # B-family platform uses msm8974 code base 13 AUDIO_PLATFORM = msm8974 14 MULTIPLE_HW_VARIANTS_ENABLED := true 15ifneq ($(filter msm8610,$(TARGET_BOARD_PLATFORM)),) 16 LOCAL_CFLAGS := -DPLATFORM_MSM8610 17endif 18ifneq ($(filter msm8226,$(TARGET_BOARD_PLATFORM)),) 19 LOCAL_CFLAGS := -DPLATFORM_MSM8x26 20endif 21ifneq ($(filter apq8084,$(TARGET_BOARD_PLATFORM)),) 22 LOCAL_CFLAGS := -DPLATFORM_APQ8084 23endif 24ifneq ($(filter msm8994,$(TARGET_BOARD_PLATFORM)),) 25 LOCAL_CFLAGS := -DPLATFORM_MSM8994 26endif 27ifneq ($(filter msm8992,$(TARGET_BOARD_PLATFORM)),) 28 LOCAL_CFLAGS := -DPLATFORM_MSM8994 29endif 30ifneq ($(filter msm8996,$(TARGET_BOARD_PLATFORM)),) 31 LOCAL_CFLAGS := -DPLATFORM_MSM8996 32endif 33ifneq ($(filter msmcobalt,$(TARGET_BOARD_PLATFORM)),) 34 LOCAL_CFLAGS := -DPLATFORM_MSMCOBALT 35endif 36endif 37 38ifneq ($(filter msm8916 msm8909 msm8952 msm8937 thorium msm8953 msmgold msmfalcon,$(TARGET_BOARD_PLATFORM)),) 39 AUDIO_PLATFORM = msm8916 40 MULTIPLE_HW_VARIANTS_ENABLED := true 41 LOCAL_CFLAGS := -DPLATFORM_MSM8916 42ifneq ($(filter msm8909,$(TARGET_BOARD_PLATFORM)),) 43 LOCAL_CFLAGS := -DPLATFORM_MSM8909 44endif 45ifneq ($(filter msm8937,$(TARGET_BOARD_PLATFORM)),) 46 LOCAL_CFLAGS := -DPLATFORM_MSM8937 47endif 48ifneq ($(filter msmfalcon,$(TARGET_BOARD_PLATFORM)),) 49 LOCAL_CFLAGS := -DPLATFORM_MSMFALCON 50endif 51endif 52 53LOCAL_SRC_FILES := 54 audio_hw.c 55 voice.c 56 platform_info.c 57 $(AUDIO_PLATFORM)/platform.c 58 59#add for samsung 60LOCAL_SRC_FILES += sec_audio/audio_hw_sec.c 61LOCAL_SRC_FILES += sec_audio/audio_hw_factory.c 62 63LOCAL_SRC_FILES += audio_extn/audio_extn.c 64 audio_extn/utils.c 65LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include 66LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr 67 68ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_EDID)),true) 69 LOCAL_CFLAGS += -DHDMI_EDID 70 LOCAL_SRC_FILES += edid.c 71endif 72 73ifeq ($(strip $(AUDIO_USE_LL_AS_PRIMARY_OUTPUT)),true) 74 LOCAL_CFLAGS += -DUSE_LL_AS_PRIMARY_OUTPUT 75endif 76 77ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD)),true) 78 LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED 79endif 80 81ifeq ($(strip $(AUDIO_FEATURE_ENABLED_ANC_HEADSET)),true) 82 LOCAL_CFLAGS += -DANC_HEADSET_ENABLED 83endif 84 85ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HIFI_AUDIO)),true) 86 LOCAL_CFLAGS += -DHIFI_AUDIO_ENABLED 87endif 88 89ifeq ($(strip $(AUDIO_FEATURE_ENABLED_VBAT_MONITOR)),true) 90 LOCAL_CFLAGS += -DVBAT_MONITOR_ENABLED 91endif 92 93ifeq ($(strip $(AUDIO_FEATURE_ENABLED_FLUENCE)),true) 94 LOCAL_CFLAGS += -DFLUENCE_ENABLED 95endif 96 97ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true) 98 LOCAL_CFLAGS += -DAFE_PROXY_ENABLED 99endif 100 101ifeq ($(strip $(AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE)),true) 102 LOCAL_CFLAGS += -DKPI_OPTIMIZE_ENABLED 103endif 104 105ifeq (true,$(call spf_check,SEC_PRODUCT_FEATURE_AUDIO_FMRADIO,TRUE)) 106ifeq ($(strip $(AUDIO_FEATURE_ENABLED_FM_POWER_OPT)),true) 107 LOCAL_CFLAGS += -DFM_POWER_OPT 108 LOCAL_SRC_FILES += audio_extn/fm.c 109endif 110endif 111 112ifeq ($(strip $(AUDIO_FEATURE_ENABLED_USB_TUNNEL_AUDIO)),true) 113 LOCAL_CFLAGS += -DUSB_HEADSET_ENABLED 114 LOCAL_SRC_FILES += audio_extn/usb.c 115endif 116 117ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HFP)),true) 118 LOCAL_CFLAGS += -DHFP_ENABLED 119 LOCAL_SRC_FILES += audio_extn/hfp.c 120endif 121 122ifeq ($(strip $(AUDIO_FEATURE_ENABLED_CUSTOMSTEREO)),true) 123 LOCAL_CFLAGS += -DCUSTOM_STEREO_ENABLED 124endif 125 126ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SSR)),true) 127 LOCAL_CFLAGS += -DSSR_ENABLED 128 LOCAL_SRC_FILES += audio_extn/ssr.c 129 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/surround_sound_3mic/ 130 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/common/inc/ 131endif 132 133ifeq ($(strip $(AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS)),true) 134 LOCAL_CFLAGS += -DMULTI_VOICE_SESSION_ENABLED 135 LOCAL_SRC_FILES += voice_extn/voice_extn.c 136 137ifeq ($(strip $(AUDIO_FEATURE_ENABLED_INCALL_MUSIC)),true) 138 LOCAL_CFLAGS += -DINCALL_MUSIC_ENABLED 139endif 140endif 141 142ifeq ($(strip $(AUDIO_FEATURE_ENABLED_COMPRESS_VOIP)),true) 143 LOCAL_CFLAGS += -DCOMPRESS_VOIP_ENABLED 144 LOCAL_SRC_FILES += voice_extn/compress_voip.c 145endif 146 147ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FORMATS)),true) 148 LOCAL_CFLAGS += -DAUDIO_EXTN_FORMATS_ENABLED 149endif 150 151ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SPKR_PROTECTION)),true) 152 LOCAL_CFLAGS += -DSPKR_PROT_ENABLED 153 LOCAL_SRC_FILES += audio_extn/spkr_protection.c 154endif 155 156ifdef MULTIPLE_HW_VARIANTS_ENABLED 157 LOCAL_CFLAGS += -DHW_VARIANTS_ENABLED 158 LOCAL_SRC_FILES += $(AUDIO_PLATFORM)/hw_info.c 159endif 160 161ifeq ($(strip $(AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE)),true) 162 LOCAL_CFLAGS += -DCOMPRESS_CAPTURE_ENABLED 163 LOCAL_SRC_FILES += audio_extn/compress_capture.c 164endif 165 166ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DTS_EAGLE)),true) 167 LOCAL_CFLAGS += -DDTS_EAGLE 168 LOCAL_SRC_FILES += audio_extn/dts_eagle.c 169endif 170 171ifeq ($(strip $(DOLBY_DDP)),true) 172 LOCAL_CFLAGS += -DDS1_DOLBY_DDP_ENABLED 173 LOCAL_SRC_FILES += audio_extn/dolby.c 174endif 175 176ifeq ($(strip $(DS1_DOLBY_DAP)),true) 177 LOCAL_CFLAGS += -DDS1_DOLBY_DAP_ENABLED 178ifneq ($(strip $(DOLBY_DDP)),true) 179 LOCAL_SRC_FILES += audio_extn/dolby.c 180endif 181endif 182 183ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER)),true) 184 LOCAL_CFLAGS += -DFLAC_OFFLOAD_ENABLED 185 LOCAL_CFLAGS += -DCOMPRESS_METADATA_NEEDED 186endif 187 188ifeq ($(strip $(AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD)),true) 189 LOCAL_CFLAGS += -DVORBIS_OFFLOAD_ENABLED 190 LOCAL_CFLAGS += -DCOMPRESS_METADATA_NEEDED 191endif 192 193ifeq ($(strip $(AUDIO_FEATURE_ENABLED_WMA_OFFLOAD)),true) 194 LOCAL_CFLAGS += -DWMA_OFFLOAD_ENABLED 195 LOCAL_CFLAGS += -DCOMPRESS_METADATA_NEEDED 196endif 197 198ifeq ($(strip $(AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD)),true) 199 LOCAL_CFLAGS += -DALAC_OFFLOAD_ENABLED 200 LOCAL_CFLAGS += -DCOMPRESS_METADATA_NEEDED 201endif 202 203ifeq ($(strip $(AUDIO_FEATURE_ENABLED_APE_OFFLOAD)),true) 204 LOCAL_CFLAGS += -DAPE_OFFLOAD_ENABLED 205 LOCAL_CFLAGS += -DCOMPRESS_METADATA_NEEDED 206endif 207 208ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24)),true) 209 LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED_24 210endif 211 212ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD)),true) 213 LOCAL_CFLAGS += -DAAC_ADTS_OFFLOAD_ENABLED 214endif 215 216ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DEV_ARBI)),true) 217 LOCAL_CFLAGS += -DDEV_ARBI_ENABLED 218 LOCAL_SRC_FILES += audio_extn/dev_arbi.c 219endif 220 221ifeq ($(strip $(AUDIO_FEATURE_ENABLED_RECORD_PLAY_CONCURRENCY)),true) 222 LOCAL_CFLAGS += -DRECORD_PLAY_CONCURRENCY 223endif 224 225ifeq ($(strip $(AUDIO_FEATURE_ENABLED_ACDB_LICENSE)), true) 226 LOCAL_CFLAGS += -DDOLBY_ACDB_LICENSE 227endif 228 229ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP)),true) 230 LOCAL_CFLAGS += -DDS2_DOLBY_DAP_ENABLED 231 LOCAL_CFLAGS += -DDS1_DOLBY_DDP_ENABLED 232ifneq ($(strip $(DOLBY_DDP)),true) 233 ifneq ($(strip $(DS1_DOLBY_DAP)),true) 234 LOCAL_SRC_FILES += audio_extn/dolby.c 235 endif 236endif 237endif 238 239ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH)),true) 240 LOCAL_CFLAGS += -DHDMI_PASSTHROUGH_ENABLED 241 LOCAL_SRC_FILES += audio_extn/passthru.c 242endif 243 244ifeq ($(strip $(AUDIO_FEATURE_ENABLED_KEEP_ALIVE)),true) 245 LOCAL_CFLAGS += -DKEEP_ALIVE_ENABLED 246 LOCAL_SRC_FILES += audio_extn/keep_alive.c 247endif 248 249ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SOURCE_TRACKING)),true) 250 LOCAL_CFLAGS += -DSOURCE_TRACKING_ENABLED 251 LOCAL_SRC_FILES += audio_extn/source_track.c 252endif 253 254ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SPLIT_A2DP)),true) 255 LOCAL_CFLAGS += -DSPLIT_A2DP_ENABLED 256 LOCAL_SRC_FILES += audio_extn/a2dp.c 257endif 258 259LOCAL_SHARED_LIBRARIES := 260 libpower 261 liblog 262 libcutils 263 libtinyalsa 264 libtinycompress 265 libaudioroute 266 libdl 267 libaudioutils 268 libhardware 269 libexpat 270 271ifneq (,$(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_TFA9896 274endif 275ifeq (true,$(call spf_check,SEC_PRODUCT_FEATURE_AUDIO_CONFIG_SPEAKER_AMP,9890)) 276 LOCAL_CFLAGS += -DUSE_TFA9890 277endif 278 LOCAL_SRC_FILES += audio_extn/tfa98xx_amp.c 279 LOCAL_CFLAGS += -DSEC_AUDIO_SPEAKER_AMP_NXP 280 281 LOCAL_SHARED_LIBRARIES += 282 libtfa98xx 283 284 LOCAL_C_INCLUDES += 285 vendor/samsung/frameworks/audio/tfa_amp 286endif 287 288LOCAL_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_extn 298 299ifeq ($(strip $(AUDIO_FEATURE_ENABLED_LISTEN)),true) 300 LOCAL_CFLAGS += -DAUDIO_LISTEN_ENABLED 301 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-listen 302 LOCAL_SRC_FILES += audio_extn/listen.c 303endif 304 305ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXT_HDMI)),true) 306 LOCAL_CFLAGS += -DAUDIO_EXTERNAL_HDMI_ENABLED 307ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH)),true) 308 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-parsers 309 LOCAL_SHARED_LIBRARIES += libaudioparsers 310endif 311endif 312 313ifeq ($(strip $(BOARD_SUPPORTS_SOUND_TRIGGER)),true) 314 LOCAL_CFLAGS += -DSOUND_TRIGGER_ENABLED 315 LOCAL_CFLAGS += -DSOUND_TRIGGER_PLATFORM_NAME=$(TARGET_BOARD_PLATFORM) 316 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/sound_trigger 317 LOCAL_SRC_FILES += audio_extn/soundtrigger.c 318endif 319 320ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AUXPCM_BT)),true) 321 LOCAL_CFLAGS += -DAUXPCM_BT_ENABLED 322endif 323 324ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PM_SUPPORT)),true) 325 LOCAL_CFLAGS += -DPM_SUPPORT_ENABLED 326 LOCAL_SRC_FILES += audio_extn/pm.c 327 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/libperipheralclient/inc 328 LOCAL_SHARED_LIBRARIES += libperipheral_client 329endif 330 331ifeq (true,$(call spf_check,SEC_PRODUCT_FEATURE_AUDIO_CONFIG_SEAMLESS_CHIPSET_VERSION,DBMD2)) 332 LOCAL_SRC_FILES += voice_seamless/cvq_stream.c 333 LOCAL_C_INCLUDES += $(LOCAL_PATH)/voice_seamless 334endif 335 336#libaudio_soundtrigger 337LOCAL_C_INCLUDES += vendor/samsung/frameworks/audio/soundtrigger_hal/audio_soundtrigger 338LOCAL_SHARED_LIBRARIES += libaudio_soundtrigger 339 340ifneq (true,$(call spf_check,SEC_PRODUCT_FEATURE_AUDIO_CONFIG_RECORDALIVE_LIB_VERSION,)) 341 LOCAL_C_INCLUDES += vendor/samsung/frameworks/audio/recordalive 342 LOCAL_SHARED_LIBRARIES += librecordalive 343else 344 LOCAL_C_INCLUDES += vendor/samsung/frameworks/audio/preprocess 345 LOCAL_SHARED_LIBRARIES += libSamsungPreProcess 346endif 347 348ifeq (true,$(call spf_check,SEC_PRODUCT_FEATURE_AUDIO_SOUNDBOOSTER,TRUE)) 349 LOCAL_C_INCLUDES += vendor/samsung/frameworks/audio/postprocess 350 LOCAL_SHARED_LIBRARIES += libSamsungPostProcess 351endif 352 353ifeq (true,$(call spf_check,SEC_PRODUCT_FEATURE_AUDIO_VOICE_NOTE_PCM_RECORDING,TRUE)) 354 LOCAL_SHARED_LIBRARIES += libSamsungPostProcessConvertor 355 LOCAL_C_INCLUDES += vendor/samsung/frameworks/audio/postprocessconvertor 356endif 357 358#samsung resampler 359LOCAL_C_INCLUDES += sec_audio/voipresampler 360LOCAL_SHARED_LIBRARIES += libsamsungVoipResampler 361 362ifeq (true,$(call spf_check,SEC_PRODUCT_FEATURE_AUDIO_CONFIG_EXTERNAL_MODEM_TYPE,MSM8937LA30)) 363 LOCAL_CFLAGS += -DMODEM_MSM8937LA30 364endif 365 366ifeq ($(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-client 369 LOCAL_SHARED_LIBRARIES += libsecril-client 370 LOCAL_SHARED_LIBRARIES += libaudio-ril 371 LOCAL_C_INCLUDES += $(TOP)/vendor/samsung/frameworks/audio/audioril 372endif 373endif 374 375#add for csc feature 376LOCAL_C_INCLUDES += vendor/samsung/configs/feature/CscFeature/libsecnativefeature 377LOCAL_SHARED_LIBRARIES += libsecnativefeature 378 379# [SAMSUNG] To support the effects for the offload 380LOCAL_C_INCLUDES += vendor/samsung/frameworks/audio/audioeffect_offload 381 382ifeq ($(SEC_PRODUCT_SHIP),false) 383 LOCAL_CFLAGS += -DAUDIO_CORE_UTILS 384 LOCAL_C_INCLUDES += vendor/samsung/frameworks/audio/audiocoreutils 385 LOCAL_SHARED_LIBRARIES += libsecaudiocoreutils 386else ifeq ($(TARGET_BUILD_VARIANT), eng) 387 LOCAL_CFLAGS += -DAUDIO_CORE_UTILS 388 LOCAL_C_INCLUDES += vendor/samsung/frameworks/audio/audiocoreutils 389 LOCAL_SHARED_LIBRARIES += libsecaudiocoreutils 390endif 391ifeq (true,$(call spf_check,SEC_PRODUCT_FEATURE_AUDIO_CONFIG_CORE_FX_FRAMEWORK_VERSION,3.0)) 392 LOCAL_CFLAGS += -DAUDIOCORE_FX_FRAMEWORK_V3 393endif 394 395LOCAL_CFLAGS += -Wall -Werror -Wno-unused-function 396LOCAL_COPY_HEADERS_TO := mm-audio 397LOCAL_COPY_HEADERS := audio_extn/audio_defs.h 398 399LOCAL_MODULE := audio.primary.$(TARGET_BOARD_PLATFORM) 400 401LOCAL_MODULE_RELATIVE_PATH := hw 402 403LOCAL_MULTILIB := 32 404 405LOCAL_MODULE_TAGS := optional 406 407include $(BUILD_SHARED_LIBRARY) 408 409endif 410Last source parsed date : 2017-07-06 PM 04:56:44
以上是关于回去看linux的指令的主要内容,如果未能解决你的问题,请参考以下文章