diff --git a/device.mk b/device.mk index d8d5ac5d..a5fa593b 100755 --- a/device.mk +++ b/device.mk @@ -568,6 +568,23 @@ PRODUCT_COPY_FILES += \ frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \ $(LOCAL_PATH)/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \ +# Codec2 modules +PRODUCT_PACKAGES += \ + com.android.media.swcodec \ + libsfplugin_ccodec \ + +# Codec2 files +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/media_codecs_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_c2.xml \ + $(LOCAL_PATH)/media_codecs_performance_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_c2.xml \ + frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \ + frameworks/av/media/libstagefright/data/media_codecs_google_c2_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_telephony.xml \ + frameworks/av/media/libstagefright/data/media_codecs_google_c2_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_video.xml \ + +# Codec2 switch +PRODUCT_PROPERTY_OVERRIDES += \ + debug.media.codec2=2 \ + PRODUCT_PROPERTY_OVERRIDES += \ audio.snd_card.open.retries=50 diff --git a/framework_manifest.xml b/framework_manifest.xml index c82d51c8..c270eb5c 100644 --- a/framework_manifest.xml +++ b/framework_manifest.xml @@ -1,4 +1,13 @@ + + android.hardware.media.c2 + hwbinder + 1.0 + + IComponentStore + software + + vendor.qti.atcmdfwd hwbinder diff --git a/media_codecs_c2.xml b/media_codecs_c2.xml new file mode 100644 index 00000000..68393069 --- /dev/null +++ b/media_codecs_c2.xml @@ -0,0 +1,113 @@ + + + + + + + + + + + + diff --git a/media_codecs_performance_c2.xml b/media_codecs_performance_c2.xml new file mode 100644 index 00000000..5916caa3 --- /dev/null +++ b/media_codecs_performance_c2.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +