No description
Ref: https://github.com/Briclyaz/NLSound_module_QCom Applied with slight modification: sed -i 's/<mi-dv-leveler-steering-enable value="true"/<mi-dv-leveler-steering-enable value="false"/g' dax-default.xml sed -i 's/<mi-ieq-steering-enable value="true"/<mi-ieq-steering-enable value="false"/g' dax-default.xml sed -i 's/<mi-surround-compressor-steering-enable value="true"/<mi-surround-compressor-steering-enable value="false"/g' dax-default.xml sed -i 's/<mi-adaptive-virtualizer-steering-enable value="true"/<mi-adaptive-virtualizer-steering-enable value="false"/g' dax-default.xml sed -i 's/<reverb-suppression-enable value="true"/<reverb-suppression-enable value="false"/g' dax-default.xml sed -i 's/<mi-dialog-enhancer-steering-enable value="true"/<mi-dialog-enhancer-steering-enable value="false"/g' dax-default.xml sed -i 's/<dialog-enhancer-enable value="true"/<dialog-enhancer-enable value="false"/g' dax-default.xml sed -i 's/<mi-virtualizer-binaural-steering-enable value="true"/<mi-virtualizer-binaural-steering-enable value="false"/g' dax-default.xml sed -i 's/<peak-value value=".*"/<peak-value value="256"/g' dax-default.xml sed -i 's/<surround-decoder-enable value="true"/<surround-decoder-enable value="false"/g' dax-default.xml sed -i 's/<hearing-protection-enable value="true"/<hearing-protection-enable value="false"/g' dax-default.xml sed -i 's/<volume-leveler-enable value="true"/<volume-leveler-enable value="false"/g' dax-default.xml sed -i 's/<height-filter-mode value=".*"/<height-filter-mode value="0"/g' dax-default.xml sed -i 's/<volume-leveler-compressor-enable value="true"/<volume-leveler-compressor-enable value="false"/g' dax-default.xml sed -i 's/<complex-equalizer-enable value="true"/<complex-equalizer-enable value="false"/g' dax-default.xml sed -i 's/<regulator-enable value="true"/<volume-leveler-enable value="false"/g' dax-default.xml sed -i 's/<regulator-speaker-dist-enable value="true"/<regulator-speaker-dist-enable value="false"/g' dax-default.xml sed -i 's/<regulator-sibilance-suppress-enable value="true"/<regulator-sibilance-suppress-enable value="false"/g' dax-default.xml sed -i 's/bass-mbdrc-enable value="true"/bass-mbdrc-enable value="false"/g' dax-default.xml sed -i 's/threshold_low=".*" threshold_high=".*"/threshold_low="0" threshold_high="0"/g' dax-default.xml sed -i 's/isolated_band="true"/isolated_band="false"/g' dax-default.xml sed -i '/endpoint_type="headphone"/,/<\/tuning>/s/<audio-optimizer-enable value="true"/<audio-optimizer-enable value="false"/g' dax-default.xml sed -i '/<output-mode>/,/<\/output-mode>/d' dax-default.xml sed -i '/<mix_matrix>/,/<\/output-mode>/d' dax-default.xml Change-Id: I7d699d38d602abda322b414bdd718857a0bbaaa8 |
||
|---|---|---|
| configs | ||
| DSPVolumeSynchronizer | ||
| overlay/DolbyFrameworksResCommon | ||
| proprietary | ||
| RemovePackagesDolby | ||
| sepolicy/vendor | ||
| XiaomiDolby | ||
| Android.bp | ||
| dolby.mk | ||
| dolby_framework_matrix.xml | ||
| README.mkdn | ||
| vendor.dolby.hardware.dms@2.0-service.xml | ||
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/0182c5b44f0984845b8fb71a6006ecd4abffc9d3 [**4**] https://github.com/Spanish-or-Vanish/android_device_xiaomi_sm8350-common/commit/e64cfcc3382ac6915d7d513ef7a69a64eb00659c [**5**] https://github.com/Spanish-or-Vanish/android_device_xiaomi_sm8350-common/commit/463cd46921e1451c9b8315334f8cf01998469b6d # Credits: * [**HELLBOY017**](https://github.com/HELLBOY017) * [**adithya2306**](https://github.com/adithya2306) * [**johnmart19**](https://github.com/johnmart19) * [**userariii**](https://github.com/userariii)