summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--GNexusParts/src/com/cyanogenmod/settings/device/VibratorTuningPreference.java6
-rwxr-xr-xaudio/audio_hw.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/GNexusParts/src/com/cyanogenmod/settings/device/VibratorTuningPreference.java b/GNexusParts/src/com/cyanogenmod/settings/device/VibratorTuningPreference.java
index 217ffec..af2824c 100644
--- a/GNexusParts/src/com/cyanogenmod/settings/device/VibratorTuningPreference.java
+++ b/GNexusParts/src/com/cyanogenmod/settings/device/VibratorTuningPreference.java
@@ -122,7 +122,7 @@ public class VibratorTuningPreference extends DialogPreference implements OnClic
String sDefaultValue = Utils.readOneLine(filePath);
int iValue = sharedPrefs.getInt(filePath, Integer.valueOf(sDefaultValue));
if (bFirstTime)
- Utils.writeValue(filePath, "127");
+ Utils.writeValue(filePath, "100");
else
Utils.writeValue(filePath, String.valueOf((long) iValue));
}
@@ -246,7 +246,7 @@ public class VibratorTuningPreference extends DialogPreference implements OnClic
int averageValue;
averageValue = (resultVibrator * 100) / 127;
- return resultVibrator;
+ return averageValue;
}
}
@@ -260,7 +260,7 @@ public class VibratorTuningPreference extends DialogPreference implements OnClic
}
private void setDefaultSettings() {
- mSeekBars[0].setNewValue(127);
+ mSeekBars[0].setNewValue(100);
}
}
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 310bce7..bb2235c 100755
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -577,7 +577,7 @@ static int is_device_toro(void)
property_get(PRODUCT_DEVICE_PROPERTY, property, PRODUCT_DEVICE_TORO);
/* return true if the property matches the given value */
- return strcmp(property, PRODUCT_DEVICE_TORO) == 0;
+ return strncmp(property, PRODUCT_DEVICE_TORO, 4) == 0;
}
/* The enable flag when 0 makes the assumption that enums are disabled by