From 8074cbccb4dd0c0ffe4a6424f65b362014c80ed6 Mon Sep 17 00:00:00 2001 From: Jean-Michel Trivi Date: Mon, 7 Mar 2022 11:20:40 -0800 Subject: [PATCH] Oriole/Raven: enable Dolby DD+ decoder Bug: 225220771 Bug: 198197610 Test: playback of EAC-3 file makes air vibrate Change-Id: I88f2bc9fae6eb8a5e76156bc640045679d1d749a --- device-oriole.mk | 10 ++++++ device-raven.mk | 10 ++++++ media_codecs_dolby_c2.xml | 66 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 86 insertions(+) create mode 100644 media_codecs_dolby_c2.xml diff --git a/device-oriole.mk b/device-oriole.mk index 575ed1b..7bde14e 100644 --- a/device-oriole.mk +++ b/device-oriole.mk @@ -242,3 +242,13 @@ endif # Device features PRODUCT_COPY_FILES += \ frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml + +# Dolby integration +-include vendor/dolby/ds/dolby-buildspec.mk +$(call inherit-product-if-exists, vendor/dolby/ds/dolby-product.mk) +# overwrite file coming from device/google/gs101/media_codecs_bo_c2.xml +PRODUCT_COPY_FILES := \ + device/google/raviole/media_codecs_dolby_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_c2.xml \ + $(PRODUCT_COPY_FILES) + +PRODUCT_RESTRICT_VENDOR_FILES := false diff --git a/device-raven.mk b/device-raven.mk index 9522635..91c6ea8 100644 --- a/device-raven.mk +++ b/device-raven.mk @@ -259,3 +259,13 @@ endif # Device features PRODUCT_COPY_FILES += \ frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml + +# Dolby integration +-include vendor/dolby/ds/dolby-buildspec.mk +$(call inherit-product-if-exists, vendor/dolby/ds/dolby-product.mk) +# overwrite file coming from device/google/gs101/media_codecs_bo_c2.xml +PRODUCT_COPY_FILES := \ + device/google/raviole/media_codecs_dolby_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_c2.xml \ + $(PRODUCT_COPY_FILES) + +PRODUCT_RESTRICT_VENDOR_FILES := false diff --git a/media_codecs_dolby_c2.xml b/media_codecs_dolby_c2.xml new file mode 100644 index 0000000..e7ecfd9 --- /dev/null +++ b/media_codecs_dolby_c2.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +