From 48467d83951d36be659856b58c6c960efbd8dbd4 Mon Sep 17 00:00:00 2001 From: Jan Altensen Date: Thu, 1 Apr 2021 05:38:27 +0200 Subject: [PATCH] universal8895: copy media configs to device tree Change-Id: Ib438f3e31e4b77dcc3c6a40062115b7937dbd7ca --- configs/media/media_codecs.xml | 269 ++++++++ configs/media/media_codecs_ac4.xml | 26 + configs/media/media_codecs_ddp.xml | 37 + configs/media/media_codecs_performance.xml | 175 +++++ configs/media/media_codecs_sec_ape.xml | 25 + configs/media/media_codecs_sec_primary.xml | 73 ++ configs/media/media_codecs_sec_qcp.xml | 42 ++ configs/media/media_codecs_sec_secondary.xml | 31 + .../media/media_codecs_sec_video_primary.xml | 55 ++ configs/media/media_profiles.xml | 637 ++++++++++++++++++ device-common.mk | 10 + proprietary-files.txt | 13 - 12 files changed, 1380 insertions(+), 13 deletions(-) create mode 100644 configs/media/media_codecs.xml create mode 100644 configs/media/media_codecs_ac4.xml create mode 100644 configs/media/media_codecs_ddp.xml create mode 100644 configs/media/media_codecs_performance.xml create mode 100644 configs/media/media_codecs_sec_ape.xml create mode 100644 configs/media/media_codecs_sec_primary.xml create mode 100644 configs/media/media_codecs_sec_qcp.xml create mode 100644 configs/media/media_codecs_sec_secondary.xml create mode 100644 configs/media/media_codecs_sec_video_primary.xml create mode 100644 configs/media/media_profiles.xml diff --git a/configs/media/media_codecs.xml b/configs/media/media_codecs.xml new file mode 100644 index 0000000..f5f8957 --- /dev/null +++ b/configs/media/media_codecs.xml @@ -0,0 +1,269 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/media/media_codecs_ac4.xml b/configs/media/media_codecs_ac4.xml new file mode 100644 index 0000000..b25b4de --- /dev/null +++ b/configs/media/media_codecs_ac4.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + diff --git a/configs/media/media_codecs_ddp.xml b/configs/media/media_codecs_ddp.xml new file mode 100644 index 0000000..db3fbac --- /dev/null +++ b/configs/media/media_codecs_ddp.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/media/media_codecs_performance.xml b/configs/media/media_codecs_performance.xml new file mode 100644 index 0000000..e810034 --- /dev/null +++ b/configs/media/media_codecs_performance.xml @@ -0,0 +1,175 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/media/media_codecs_sec_ape.xml b/configs/media/media_codecs_sec_ape.xml new file mode 100644 index 0000000..6a5a6be --- /dev/null +++ b/configs/media/media_codecs_sec_ape.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + diff --git a/configs/media/media_codecs_sec_primary.xml b/configs/media/media_codecs_sec_primary.xml new file mode 100644 index 0000000..a6a88a9 --- /dev/null +++ b/configs/media/media_codecs_sec_primary.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/media/media_codecs_sec_qcp.xml b/configs/media/media_codecs_sec_qcp.xml new file mode 100644 index 0000000..e0d4ca7 --- /dev/null +++ b/configs/media/media_codecs_sec_qcp.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/media/media_codecs_sec_secondary.xml b/configs/media/media_codecs_sec_secondary.xml new file mode 100644 index 0000000..bfd5337 --- /dev/null +++ b/configs/media/media_codecs_sec_secondary.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + diff --git a/configs/media/media_codecs_sec_video_primary.xml b/configs/media/media_codecs_sec_video_primary.xml new file mode 100644 index 0000000..90f274b --- /dev/null +++ b/configs/media/media_codecs_sec_video_primary.xml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/media/media_profiles.xml b/configs/media/media_profiles.xml new file mode 100644 index 0000000..989d3dd --- /dev/null +++ b/configs/media/media_profiles.xml @@ -0,0 +1,637 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/device-common.mk b/device-common.mk index a78a3f4..d6a621c 100644 --- a/device-common.mk +++ b/device-common.mk @@ -156,6 +156,16 @@ PRODUCT_PACKAGES += \ # Media PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ + $(LOCAL_PATH)/configs/media/media_codecs_ac4.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_ac4.xml \ + $(LOCAL_PATH)/configs/media/media_codecs_ddp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_ddp.xml \ + $(LOCAL_PATH)/configs/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \ + $(LOCAL_PATH)/configs/media/media_codecs_sec_ape.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_sec_ape.xml \ + $(LOCAL_PATH)/configs/media/media_codecs_sec_primary.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_sec_primary.xml \ + $(LOCAL_PATH)/configs/media/media_codecs_sec_qcp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_sec_qcp.xml \ + $(LOCAL_PATH)/configs/media/media_codecs_sec_secondary.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_sec_secondary.xml \ + $(LOCAL_PATH)/configs/media/media_codecs_sec_video_primary.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_sec_video_primary.xml \ + $(LOCAL_PATH)/configs/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml diff --git a/proprietary-files.txt b/proprietary-files.txt index e08607a..e855f38 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -38,19 +38,6 @@ vendor/lib64/soundfx/libswdap.so # Audio/Media configs etc/audio_effects.conf -etc/media_codecs.xml -etc/media_codecs_ac4.xml -etc/media_codecs_ddp.xml -etc/media_codecs_google_audio.xml -etc/media_codecs_google_telephony.xml -etc/media_codecs_google_video.xml -etc/media_codecs_performance.xml -etc/media_codecs_sec_ape.xml -etc/media_codecs_sec_primary.xml -etc/media_codecs_sec_qcp.xml -etc/media_codecs_sec_secondary.xml -etc/media_codecs_sec_video_primary.xml -etc/media_profiles.xml vendor/etc/SoundBoosterParam.txt vendor/etc/abox_debug.xml vendor/etc/audio_effects.conf -- 2.20.1