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

@@ -2185,6 +2185,8 @@ def append_modemlog(line):
try:
with open(MODEMLOG, "a", encoding="utf-8") as f:
f.write(line)
f.flush()
os.fsync(f.fileno())
except Exception:
return
chown_user(MODEMLOG)
@@ -2545,6 +2547,8 @@ def deliver_sms_to_sxmo(sender, iso_ts, text, sim_slot):
header = f"Received from {sender} [SIM {sim_slot}] at {now_str}:\n{text}\n\n"
with open(sms_file, "a", encoding="utf-8") as f:
f.write(header)
f.flush()
os.fsync(f.fileno())
append_modemlog(f"{now_str}\trecv_txt\t{sender}\t[SIM {sim_slot}] {tsv_text}\n")
chown_user(sms_file)
send_fifo("/tmp/dwm_plugin_sms.fifo", "REFRESH")