From 04419dcc814b912bb97e02f694370e9942b22f28 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Thu, 16 Nov 2023 16:51:29 +0000 Subject: [PATCH] sm8550-common: init: Override QTI audio rpc daemon service definition The rpc daemon doesn't support loading ADSP libs from odm partition, therefore locally set environment variable ADSP_LIBRARY_PATH to allow that to happen, just like stock does. Just as a sidenote, during early bringup phase the quick workaround was to move the relevant blobs from odm to vendor, but then ditched in favor of copying the stock script. Now, instead of copying it, simply override the service definition and avoid one duplicate copy rule. Change-Id: Ic78536afda4f86ea589e57adf496b4db8256aea1 --- init/init.target.rc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init/init.target.rc b/init/init.target.rc index 4d073e3..2199c0d 100644 --- a/init/init.target.rc +++ b/init/init.target.rc @@ -199,3 +199,10 @@ service vendor.audio-hal /vendor/bin/hw/android.hardware.audio.service ioprio rt 4 task_profiles ProcessCapacityHigh HighPerformance onrestart restart audioserver + +service vendor.audioadsprpcd_audiopd /vendor/bin/audioadsprpcd audiopd + override + class main + user media + group media + setenv ADSP_LIBRARY_PATH ";/system/lib/rfsa/adsp;/system/vendor/lib/rfsa/adsp;/dsp;/vendor/dsp;/odm/lib/rfsa/adsp;/vendor/lib/rfsa/adsp"