modem, callscreen, ring: fix DSDS incoming ring hangup/volume and add Primary/Secondary GW SIM swap UI
This commit is contained in:
1 parent
9a079e1068
commit
7927bacb67
18 files changed
+280
-84
No files matched your search
@@ -354,7 +354,7 @@ int runRingtonesApp(int argc, char** argv) {
|
||||
stopPreview();
|
||||
settings = loadRingSettings();
|
||||
int rvol = std::clamp(settings.ringVol, 0, 100);
|
||||
int rx3 = (rvol <= 0) ? 0 : (60 + rvol * 34 / 100);
|
||||
int rx3 = (rvol <= 0) ? 0 : (60 + rvol * 24 / 100);
|
||||
int mpvVol = rvol;
|
||||
std::string volArg = "--volume=" + std::to_string(mpvVol);
|
||||
runAsyncCmd("amixer -c 0 cset \"name='EAR_S'\" 0 >/dev/null 2>&1; "
|
||||
|
||||
Reference in new issue
Block a user