Skip to content

Commit

Permalink
Revert "XiaomiParts: add separate microphone and noise control (works…
Browse files Browse the repository at this point in the history
… only with XiaomiParts)"

This reverts commit 106a6a5.
  • Loading branch information
Razziell committed Aug 1, 2019
1 parent 106a6a5 commit cc15eee
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 106 deletions.
1 change: 0 additions & 1 deletion XiaomiParts/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,4 @@
<string name="headphone_gain">Усиление наушников</string>
<string name="speaker_gain">Усиление динамика</string>
<string name="mic_gain">Усиление микрофона</string>
<string name="mic2_gain">Увеличение диапазона чувствительности шумодава</string>
</resources>
1 change: 0 additions & 1 deletion XiaomiParts/res/values-uk/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,4 @@
<string name="headphone_gain">Підсилення навушників</string>
<string name="speaker_gain">Підсилення динаміка</string>
<string name="mic_gain">Підсилення мікрофону</string>
<string name="mic2_gain">Збільшення діапазону чутливості шумодава</string>
</resources>
1 change: 0 additions & 1 deletion XiaomiParts/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,4 @@
<string name="headphone_gain">Headphone gain</string>
<string name="speaker_gain">Speaker gain</string>
<string name="mic_gain">Microphone gain</string>
<string name="mic2_gain">Increase the noise sensitivity range</string>
</resources>
3 changes: 0 additions & 3 deletions XiaomiParts/res/xml/sound_control.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,5 @@
<com.mdroid.settings.device.sound.MicGainPreference
android:key="mic_gain"
android:title="@string/mic_gain" />
<com.mdroid.settings.device.sound.Mic2GainPreference
android:key="mic2_gain"
android:title="@string/mic2_gain" />

</PreferenceScreen>
2 changes: 0 additions & 2 deletions XiaomiParts/src/com/mdroid/settings/device/Startup.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import com.mdroid.settings.device.sound.HeadphoneGainPreference;
import com.mdroid.settings.device.sound.SpeakerGainPreference;
import com.mdroid.settings.device.sound.MicGainPreference;
import com.mdroid.settings.device.sound.Mic2GainPreference;

public class Startup extends BroadcastReceiver {

Expand Down Expand Up @@ -59,6 +58,5 @@ public void onReceive(final Context context, final Intent bootintent) {
HeadphoneGainPreference.restore(context);
SpeakerGainPreference.restore(context);
MicGainPreference.restore(context);
Mic2GainPreference.restore(context);
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@ public class SoundControlSettings extends PreferenceFragment {
public static final String KEY_HEADPHONE_GAIN = "headphone_gain";
public static final String KEY_SPEAKER_GAIN = "speaker_gain";
public static final String KEY_MICROPHONE_GAIN = "mic_gain";
public static final String KEY_MICROPHONE2_GAIN = "mic2_gain";

private HeadphoneGainPreference mHeadphoneGain;
private SpeakerGainPreference mSpeakerGain;
private MicGainPreference mMicGain;
private Mic2GainPreference mMic2Gain;

@Override
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
Expand All @@ -53,10 +51,5 @@ public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
if (mMicGain != null) {
mMicGain.setEnabled(MicGainPreference.isSupported());
}

mMic2Gain = (Mic2GainPreference) findPreference(KEY_MICROPHONE2_GAIN);
if (mMic2Gain != null) {
mMic2Gain.setEnabled(Mic2GainPreference.isSupported());
}
}
}
1 change: 0 additions & 1 deletion rootdir/init.target.rc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ on property:sys.boot_completed=1
chown system system /sys/kernel/sound_control/headphone_gain
chown system system /sys/kernel/sound_control/speaker_gain
chown system system /sys/kernel/sound_control/mic_gain
chown system system /sys/kernel/sound_control/mic2_gain
restorecon_recursive /sys/kernel/sound_control

on post-fs-data
Expand Down

0 comments on commit cc15eee

Please sign in to comment.