libvoice-airoha: update uci-defaults to apply DECT RFPI from prodution data

Set the hw.board.dect_rfpi with value of USP 'DectRfpi'.
This commit is contained in:
George Yang 2025-05-22 10:37:45 +02:00
parent c5e79244c7
commit 8fb1b55e57

View file

@ -17,6 +17,11 @@ SLIC=$(cat /proc/device-tree/airoha-voice/slic-type)
hasDect=$(db -q get hw.board.hasDect) hasDect=$(db -q get hw.board.hasDect)
[ "$hasDect" = "1" ] || exit 0 [ "$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 # configure the PCM for DECT/DCX81
[ -f "/proc/device-tree/aliases/dcx81-uart" ] && { [ -f "/proc/device-tree/aliases/dcx81-uart" ] && {
uci set dect.global.pcm_fsync='SHORT_LF' uci set dect.global.pcm_fsync='SHORT_LF'