diff options
Diffstat (limited to 'conf_files/sm6150/sm6150.mk')
-rw-r--r-- | conf_files/sm6150/sm6150.mk | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/conf_files/sm6150/sm6150.mk b/conf_files/sm6150/sm6150.mk index 547951e8..1f8af106 100644 --- a/conf_files/sm6150/sm6150.mk +++ b/conf_files/sm6150/sm6150.mk @@ -31,7 +31,17 @@ endif # Vendor property overrides # Enable Codec2.0 HAL for pure AOSP variants. -ifeq ($(GENERIC_ODM_IMAGE),true) +# Enable OMX for pure AOSP AUTO variants. +ifeq ($(GENERIC_ODM_IMAGE)$(TARGET_BOARD_AUTO),truetrue) + $(warning "Forcing OMX for Generic auto build variant") + DEVICE_MANIFEST_FILE += hardware/qcom/media/conf_files/sm6150/c2_manifest_vendor.xml + PRODUCT_ODM_PROPERTIES += debug.media.codec2=0 + PRODUCT_ODM_PROPERTIES += debug.stagefright.ccodec=0 + PRODUCT_ODM_PROPERTIES += debug.stagefright.omx_default_rank=1000 + PRODUCT_COPY_FILES += \ + device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_ODM)/etc/media_profiles_V1_0.xml \ + device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml +else ifeq ($(GENERIC_ODM_IMAGE),true) $(warning "Forcing codec2.0 HW for generic odm build variant") DEVICE_MANIFEST_FILE += hardware/qcom/media/conf_files/sm6150/c2_manifest_vendor.xml #Set default ranks and rank Codec 2.0 over OMX codecs @@ -40,14 +50,18 @@ ifeq ($(GENERIC_ODM_IMAGE),true) PRODUCT_COPY_FILES += \ device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_ODM)/etc/media_profiles_V1_0.xml \ device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml -else - $(warning "Enabling codec2.0 SW only for non-generic odm build variant") +else ifneq ($(TARGET_FWK_SUPPORTS_AV_VALUEADDS),false) + $(warning "Enabling codec2.0 non-audio SW only for non-generic odm build variant") DEVICE_MANIFEST_FILE += hardware/qcom/media/conf_files/sm6150/c2_manifest.xml - #Rank OMX SW codecs lower than OMX HW codecs - PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank.sw-audio=1 PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0 PRODUCT_PROPERTY_OVERRIDES += media.settings.xml=/vendor/etc/media_profiles_vendor.xml PRODUCT_COPY_FILES += \ device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_ODM)/etc/media_profiles_V1_0.xml \ $(CONFIG_PATH)/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml +else + $(warning "Compiling without value-added features") + DEVICE_MANIFEST_FILE += hardware/qcom/media/conf_files/msmnile/c2_manifest.xml + PRODUCT_COPY_FILES += \ + device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_ODM)/etc/media_profiles_V1_0.xml \ + device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml endif |