Add Webarchy WPE/WebKit browser, SIP ZRTP/SRTP & codecs, xirc buffer fixes, and Noto web fonts

This commit is contained in:
Luxferre committed 2026-10-31 17:34:43 +02:00
1 parent 61768fa88e
commit d7335b5ebe
81 files changed
+3822 -248

No files matched your search

+19 -8
View File
@@ -498,6 +498,7 @@ int callscreen_run_main(int argc, char** argv) {
alsa.setInteger("ADC3 Volume", mute ? 0 : 8);
alsa.setInteger("TX1 Digital Volume", mute ? 0 : 88);
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");
statusNotice = mute ? "Microphone muted" : "Microphone unmuted";
@@ -516,6 +517,9 @@ int callscreen_run_main(int argc, char** argv) {
if (!voip) {
alsa.setBoolean("PRI_MI2S_RX Voice Mixer VoiceMMode1", true);
alsa.setBoolean("VoiceMMode1 Capture Mixer TERT_MI2S_TX", !micMuted);
} else {
alsa.setBoolean("PRI_MI2S_RX Audio Mixer MultiMedia1", true);
alsa.setBoolean("MultiMedia2 Mixer TERT_MI2S_TX", !micMuted);
}
alsa.setEnum("CIC1 MUX", 0);
if (!micMuted) {
@@ -523,6 +527,10 @@ int callscreen_run_main(int argc, char** argv) {
alsa.setInteger("ADC1 Volume", 8);
alsa.setInteger("TX1 Digital Volume", 88);
}
auto setOutDevFile = [](const char* devName) {
std::ofstream out("/tmp/sxmo_audio_out_device", std::ios::trunc);
if (out.is_open()) out << devName << "\n";
};
if (toSpeaker) {
alsa.setEnum("EAR_S", 0);
alsa.setEnum("HPHL", 0);
@@ -532,7 +540,7 @@ int callscreen_run_main(int argc, char** argv) {
alsa.setBoolean("SPK DAC Switch", true);
alsa.setEnum("RX3 MIX1 INP1", 3);
alsa.setInteger("RX3 Digital Volume", hwVol);
runAsyncCmd("sxmo_audio.sh device set Speaker >/dev/null 2>&1");
setOutDevFile("Speaker");
statusNotice = "Audio routed to Speaker";
} else if (jackPlugged) {
alsa.setBoolean("SPK DAC Switch", false);
@@ -547,7 +555,7 @@ int callscreen_run_main(int argc, char** argv) {
alsa.setBoolean("RX1 Mute Switch", false);
alsa.setInteger("RX1 Digital Volume", hwVol);
alsa.setInteger("RX2 Digital Volume", hwVol);
runAsyncCmd("sxmo_audio.sh device set Headphones >/dev/null 2>&1");
setOutDevFile("Headphones");
statusNotice = "Audio routed to Headphones";
} else {
alsa.setBoolean("SPK DAC Switch", false);
@@ -561,9 +569,11 @@ int callscreen_run_main(int argc, char** argv) {
alsa.setEnum("EAR_S", 1);
alsa.setBoolean("RX1 Mute Switch", false);
alsa.setInteger("RX1 Digital Volume", hwVol);
runAsyncCmd("sxmo_audio.sh device set Earpiece >/dev/null 2>&1");
setOutDevFile("Earpiece");
statusNotice = "Audio routed to Earpiece";
}
runAsyncCmd("PATH=\"$HOME/.config/sxmo/hooks:/usr/share/sxmo/default_hooks:$PATH\" "
"sxmo_hook_statusbar.sh volume >/dev/null 2>&1");
statusNoticeUntilMs = nowMs() + 2000;
};
@@ -588,7 +598,7 @@ int callscreen_run_main(int argc, char** argv) {
};
auto finishRecordingFile = [&]() {
alsa.setBoolean("MultiMedia2 Mixer TERT_MI2S_TX", false);
alsa.setBoolean("MultiMedia2 Mixer TERT_MI2S_TX", !micMuted);
finalizeWavHeader(recordFilePath);
struct stat st {};
if (!recordFilePath.empty() && ::stat(recordFilePath.c_str(), &st) == 0 &&
@@ -1726,11 +1736,12 @@ int callscreen_run_main(int argc, char** argv) {
auto parseSimTag = [&](const std::string& cidStr, const std::string& tagStr) {
if (tagStr == "SIP" || tagStr.rfind("SIP:", 0) == 0 ||
cidStr.rfind("sip:", 0) == 0) {
tagStr.rfind("SIP/", 0) == 0 || cidStr.rfind("sip:", 0) == 0) {
activeSimSlot = 3;
if (tagStr.rfind("SIP:", 0) == 0 && tagStr.size() > 4) {
sipZrtpSas = tagStr.substr(4);
} else if (tagStr == "SIP") {
size_t colonPos = tagStr.find(':');
if (colonPos != std::string::npos && colonPos + 1 < tagStr.size()) {
sipZrtpSas = tagStr.substr(colonPos + 1);
} else if (tagStr == "SIP" || tagStr.rfind("SIP/", 0) == 0) {
sipZrtpSas.clear();
}
return;