Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6de3427d authored by codeworkx's avatar codeworkx
Browse files

implement noise suppression for phone calls (1/2)

Change-Id: Ie67f15fd154dd0e64b6f3a007c938bf162e25e77
parent e0a8c35c
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -1911,6 +1911,13 @@ public final class Settings {
         */
         */
        public static final String TTY_MODE = "tty_mode";
        public static final String TTY_MODE = "tty_mode";


        /**
         * Whether noise suppression is enabled. The value is
         * boolean (1 or 0).
         * @hide
         */
        public static final String NOISE_SUPPRESSION = "noise_suppression";

        /**
        /**
         * Whether the sounds effects (key clicks, lid open ...) are enabled. The value is
         * Whether the sounds effects (key clicks, lid open ...) are enabled. The value is
         * boolean (1 or 0).
         * boolean (1 or 0).
@@ -2618,6 +2625,7 @@ public final class Settings {
            CALL_AUTO_RETRY,
            CALL_AUTO_RETRY,
            HEARING_AID,
            HEARING_AID,
            TTY_MODE,
            TTY_MODE,
            NOISE_SUPPRESSION,
            SOUND_EFFECTS_ENABLED,
            SOUND_EFFECTS_ENABLED,
            HAPTIC_FEEDBACK_ENABLED,
            HAPTIC_FEEDBACK_ENABLED,
            POWER_SOUNDS_ENABLED,
            POWER_SOUNDS_ENABLED,
+3 −0
Original line number Original line Diff line number Diff line
@@ -1356,6 +1356,9 @@ public class DatabaseHelper extends SQLiteOpenHelper {
            // Set default tty mode
            // Set default tty mode
            loadSetting(stmt, Settings.System.TTY_MODE, 0);
            loadSetting(stmt, Settings.System.TTY_MODE, 0);


            // Set default noise suppression value
            loadSetting(stmt, Settings.System.NOISE_SUPPRESSION, 0);
    
            loadBooleanSetting(stmt, Settings.System.AIRPLANE_MODE_ON,
            loadBooleanSetting(stmt, Settings.System.AIRPLANE_MODE_ON,
                    R.bool.def_airplane_mode_on);
                    R.bool.def_airplane_mode_on);