From 8fb1b55e5709be9cd48299f2d0e768884f2e4374 Mon Sep 17 00:00:00 2001 From: George Yang Date: Thu, 22 May 2025 10:37:45 +0200 Subject: [PATCH] libvoice-airoha: update uci-defaults to apply DECT RFPI from prodution data Set the hw.board.dect_rfpi with value of USP 'DectRfpi'. --- libvoice-airoha/files/etc/uci-defaults/991-libvoice-airoha | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libvoice-airoha/files/etc/uci-defaults/991-libvoice-airoha b/libvoice-airoha/files/etc/uci-defaults/991-libvoice-airoha index d09f7824c..2d7b91a07 100644 --- a/libvoice-airoha/files/etc/uci-defaults/991-libvoice-airoha +++ b/libvoice-airoha/files/etc/uci-defaults/991-libvoice-airoha @@ -17,6 +17,11 @@ SLIC=$(cat /proc/device-tree/airoha-voice/slic-type) hasDect=$(db -q get hw.board.hasDect) [ "$hasDect" = "1" ] || exit 0 +# Set the DECT RFPI +. /lib/functions/iopsys-environment.sh +db set hw.board.dect_rfpi=$(get_dect_rfpi) +db commit + # configure the PCM for DECT/DCX81 [ -f "/proc/device-tree/aliases/dcx81-uart" ] && { uci set dect.global.pcm_fsync='SHORT_LF'