60 lines
1.9 KiB
Markdown
60 lines
1.9 KiB
Markdown
Xiaomi Dolby
|
|
==============
|
|
|
|
Getting Started
|
|
---------------
|
|
For dolby media codecs to work add this line in your media codecs config (should be in vendor partition) :-
|
|
|
|
```bash
|
|
<Include href="media_codecs_dolby_audio.xml" />
|
|
```
|
|
|
|
To build, add the dolby effects in your device's audio effects config then inherit the dolby config by adding this in your device's makefile :-
|
|
|
|
```bash
|
|
$(call inherit-product, hardware/dolby/dolby.mk)
|
|
```
|
|
|
|
Now, moving hidl definitions in manifest to device trees is completely absurd so stop overriding manifest in your device trees an example for such would be :-
|
|
|
|
Changing these in BoardConfig makefile of your device tree:-
|
|
|
|
```bash
|
|
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE :=
|
|
```
|
|
And
|
|
|
|
```bash
|
|
DEVICE_MANIFEST_FILE :=
|
|
```
|
|
|
|
To:-
|
|
|
|
```bash
|
|
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE +=
|
|
```
|
|
And
|
|
|
|
```bash
|
|
DEVICE_MANIFEST_FILE +=
|
|
```
|
|
|
|
The only change done above is changing := symbol to += so that manifest can't be overriden from device tree in BoardConfig makefile.
|
|
|
|
At the end an example commit to properly implement it in your device tree could be :-
|
|
|
|
[**1**] https://github.com/Spanish-or-Vanish/android_device_xiaomi_sm8350-common/commit/2295d515b2d24cb94cc0545b0f80c20ca93af761
|
|
|
|
[**2**] https://github.com/Spanish-or-Vanish/android_device_xiaomi_sm8350-common/commit/acbc197257083339b9d1b738c5b613f4a0feec7f
|
|
|
|
[**3**] https://github.com/Spanish-or-Vanish/android_device_xiaomi_sm8350-common/commit/e64cfcc3382ac6915d7d513ef7a69a64eb00659c
|
|
|
|
[**4**] https://github.com/Spanish-or-Vanish/android_device_xiaomi_sm8350-common/commit/463cd46921e1451c9b8315334f8cf01998469b6d
|
|
|
|
[**5**] https://github.com/Spanish-or-Vanish/android_device_xiaomi_sm8350-common/commit/17b01ad83900942eb78d51975cf8640676953b0e
|
|
|
|
# Credits:
|
|
* [**HELLBOY017**](https://github.com/HELLBOY017)
|
|
* [**adithya2306**](https://github.com/adithya2306)
|
|
* [**johnmart19**](https://github.com/johnmart19)
|
|
* [**userariii**](https://github.com/userariii)
|