Optimize Bluetooth volume control latency and fix WirePlumber startup race

This commit is contained in:
Luxferre committed 2026-11-04 16:39:05 +02:00
1 parent 85bf18ec32
commit c7cdde6734
30 files changed
+514 -185

No files matched your search

+4 -4
View File
@@ -524,8 +524,8 @@ int callscreen_run_main(int argc, char** argv) {
alsa.setBoolean("VoiceMMode1 Capture Mixer TERT_MI2S_TX", !mute);
alsa.setBoolean("MultiMedia2 Mixer TERT_MI2S_TX", !mute);
}
runAsyncCmd(mute ? "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ 1 >/dev/null 2>&1"
: "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ 0 >/dev/null 2>&1");
runAsyncCmd(mute ? "pactl set-source-mute @DEFAULT_SOURCE@ 1 >/dev/null 2>&1"
: "pactl set-source-mute @DEFAULT_SOURCE@ 0 >/dev/null 2>&1");
statusNotice = mute ? "Microphone muted" : "Microphone unmuted";
statusNoticeUntilMs = nowMs() + 2000;
};
@@ -644,8 +644,8 @@ int callscreen_run_main(int argc, char** argv) {
statusNotice = "Audio routed to Earpiece";
}
if (voip) {
runAsyncCmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ 0 >/dev/null 2>&1; "
"wpctl set-volume @DEFAULT_AUDIO_SINK@ 100% >/dev/null 2>&1; "
runAsyncCmd("pactl set-sink-mute @DEFAULT_SINK@ 0 >/dev/null 2>&1; "
"pactl set-sink-volume @DEFAULT_SINK@ 100% >/dev/null 2>&1; "
"PATH=\"$HOME/.config/sxmo/hooks:/usr/share/sxmo/default_hooks:$PATH\" "
"sxmo_hook_statusbar.sh volume >/dev/null 2>&1");
} else {