summaryrefslogtreecommitdiff
path: root/packages/linux/opensimpad/sound-volume-reversed.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/linux/opensimpad/sound-volume-reversed.patch')
-rw-r--r--packages/linux/opensimpad/sound-volume-reversed.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/linux/opensimpad/sound-volume-reversed.patch b/packages/linux/opensimpad/sound-volume-reversed.patch
new file mode 100644
index 0000000000..495d8f9404
--- /dev/null
+++ b/packages/linux/opensimpad/sound-volume-reversed.patch
@@ -0,0 +1,16 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- linux-2.4.27/drivers/misc/ucb1x00-audio.c~sound-volume-reversed
++++ linux-2.4.27/drivers/misc/ucb1x00-audio.c
+@@ -97,7 +97,7 @@
+ ucba->output_level = gain | gain << 8;
+ ucba->mod_cnt++;
+ ucba->ctrl_b = (ucba->ctrl_b & 0xff00) |
+- ((gain * 31) / 100);
++ (((100-gain) * 31) / 100);
+ ucb1x00_reg_write(ucba->ucb, UCB_AC_B,
+ ucba->ctrl_b);
+ ret = 0;