# OnePlus Dolby ## Getting Started For dolby media codecs to work, add this line in your media codecs xml (should be in vendor partition) :- ``` ``` Add the dolby effects in your device's audio_effects.xml :- ``` ``` ``` ``` Inherit the dolby makefile by adding this in your device's makefile (device.mk) :- ```makefile $(call inherit-product, hardware/dolby/dolby.mk) ``` Add this line in your BoardConfig.mk in device tree :- ``` AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := true ``` Remove these properties from vendor.prop in device tree :- ``` vendor.audio.dolby.ds2.enabled=false vendor.audio.dolby.ds2.hardbypass=false ``` Add this hal in your device's hidl framework compatibility matrix xml :- ``` vendor.dolby.hardware.dms 2.0 IDms default ``` Add this hal in your device's hidl manifest xml :- ``` vendor.dolby.hardware.dms hwbinder @2.0::IDms/default ``` At the end an example commit to properly implement it in your device tree could be :- Device Tree :- https://github.com/narikootam-dev/device_xiaomi_sweet/commit/b36211a352897afedd35feabffa12af54f21716c