sm6225-common: Use the right media_codecs on khaje devices

Moto khaje devices are SoC ID 518, which use the v3 configs
according to init.qcom.early_boot.sh.

Use the AOSP SKU mechanism to load the right codecs, since we lack the
qcom framework changes to load the custom configs.

Change-Id: I4b53bf586b5d9160a1e4af2271c8ea9e2915b1ef
This commit is contained in:
Michael Bestas 2024-07-08 08:22:02 +03:00
parent 95237aab19
commit 00ea12a98a
2 changed files with 3 additions and 2 deletions

View file

@ -251,9 +251,9 @@ PRODUCT_PACKAGES += \
# Media - Configs # Media - Configs
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \ $(LOCAL_PATH)/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
$(LOCAL_PATH)/media/media_codecs_performance_v3.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v3.xml \ $(LOCAL_PATH)/media/media_codecs_performance_v3.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_khaje.xml \
$(LOCAL_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ $(LOCAL_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
$(LOCAL_PATH)/media/media_codecs_vendor_v3.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v3.xml \ $(LOCAL_PATH)/media/media_codecs_vendor_v3.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_khaje.xml \
$(LOCAL_PATH)/media/media_profiles_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml $(LOCAL_PATH)/media/media_profiles_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \

View file

@ -376,6 +376,7 @@ case "$target" in
;; ;;
518|561|586) 518|561|586)
setprop vendor.media.target.version 3 setprop vendor.media.target.version 3
setprop vendor.media.target_variant "_khaje"
;; ;;
585) 585)
setprop vendor.media.target.version 4 setprop vendor.media.target.version 4