From e9d152e759073a5cae84c848e6babc020ed76d64 Mon Sep 17 00:00:00 2001 From: Sairamreddy Bojja Date: Mon, 5 Jan 2026 12:46:46 +0530 Subject: [PATCH] Add systemd unit file for audiopd aDSP RPC daemon This service should ensure that the audiopd instance of adsprpcd starts automatically at boot and is restarted if it fails. The audiopd process will be responsible for loading dynamic modules on the aDSP at runtime. Signed-off-by: Sairamreddy Bojja --- files/Makefile.am | 1 + files/adsprpcd_audiopd.service | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 files/adsprpcd_audiopd.service diff --git a/files/Makefile.am b/files/Makefile.am index dac901f8..5bf13071 100644 --- a/files/Makefile.am +++ b/files/Makefile.am @@ -6,6 +6,7 @@ systemdsystemunitdir = @systemdsystemunitdir@ # List of systemd service files to install dist_systemdsystemunit_DATA = \ adsprpcd.service \ + adsprpcd_audiopd.service \ cdsprpcd.service \ cdsp1rpcd.service \ gdsp0rpcd.service \ diff --git a/files/adsprpcd_audiopd.service b/files/adsprpcd_audiopd.service new file mode 100644 index 00000000..99bdf1aa --- /dev/null +++ b/files/adsprpcd_audiopd.service @@ -0,0 +1,14 @@ +[Unit] +Description=audiopd aDSP RPC daemon +After=dev-fastrpc-adsp.device dev-fastrpc-adsp-secure.device +ConditionPathExists=|/dev/fastrpc-adsp +ConditionPathExists=|/dev/fastrpc-adsp-secure + +[Service] +Type=exec +ExecStart=/usr/bin/adsprpcd audiopd +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target