Fix msm8916-wcd-digital ASoC DAPM teardown crash after notification audio

This commit is contained in:
Luxferre committed 2026-11-03 13:40:42 +02:00
1 parent 06d991d4fa
commit b9e7c6847b
13 files changed
+15 -119

No files matched your search

+6 -1
View File
@@ -30,6 +30,9 @@ clear_all() {
_handle_new_notif_file() {
file="$1"
mode="$2"
case "${file##*/}" in
.*) return 0 ;;
esac
[ -f "$file" ] || return 0
if [ "$(wc -l < "$file" 2>/dev/null || echo 0)" -lt 3 ]; then
@@ -193,7 +196,9 @@ new() {
msg="$2"
mkdir -p "$SXMO_NOTIFDIR"
printf "%s\n%s\n%b\n" "$group" "$action" "$msg" > "$SXMO_NOTIFDIR/$id"
tmp_notif="$SXMO_NOTIFDIR/.tmp.$id.$$"
printf "%s\n%s\n%b\n" "$group" "$action" "$msg" > "$tmp_notif"
mv -f "$tmp_notif" "$SXMO_NOTIFDIR/$id"
if ! pgrep -f "sxmo_notifs.sh monitor" >/dev/null 2>&1; then
sxmo_hook_notification.sh "$SXMO_NOTIFDIR/$id" &