Эх сурвалжийг харах

sm8450-common: Set ro.media.xml_variant.profiles to choose media profiles

This was introduced with [1] and allows to choose target specific media
profiles without caf changes to frameworks/av. Unset media.settings.xml
so that the new property gets respected.

[1]: https://github.com/LineageOS/android_frameworks_av/commit/eaac82f33f2a064c6ae1a5f1791bb13669820687#

Change-Id: I7ec306bf3dd595c09308ed26c9d3a6db8490c7f0
Arian 3 жил өмнө
parent
commit
431ecb8674

+ 1 - 0
media/init.qti.media.rc

@@ -46,6 +46,7 @@ on early-init
 on post-fs-data
     setprop ro.media.xml_variant.codecs ${vendor.media.target_variant}
     setprop ro.media.xml_variant.codecs_performance ${vendor.media.target_variant}
+    setprop ro.media.xml_variant.profiles ${vendor.media.target_variant}
 
 on property:vendor.netflix.bsp_rev=*
     setprop ro.netflix.bsp_rev ${vendor.netflix.bsp_rev}

+ 0 - 1
properties/system.prop

@@ -6,7 +6,6 @@ debug.sf.disable_backpressure=1
 
 # Media
 media.aac_51_output_enabled=true
-media.settings.xml=/vendor/etc/media_profiles_vendor.xml
 media.stagefright.enable-aac=true
 media.stagefright.enable-fma2dp=true
 media.stagefright.enable-http=true