]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/linux/opensimpad/sound-volume-reversed.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / linux / opensimpad / sound-volume-reversed.patch
1
2 #
3 # Patch managed by http://www.holgerschurig.de/patcher.html
4 #
5
6 --- linux-2.4.27/drivers/misc/ucb1x00-audio.c~sound-volume-reversed
7 +++ linux-2.4.27/drivers/misc/ucb1x00-audio.c
8 @@ -97,7 +97,7 @@
9                                 ucba->output_level = gain | gain << 8;
10                                 ucba->mod_cnt++;
11                                 ucba->ctrl_b = (ucba->ctrl_b & 0xff00) |
12 -                                              ((gain * 31) / 100);
13 +                                              (((100-gain) * 31) / 100);
14                                 ucb1x00_reg_write(ucba->ucb, UCB_AC_B,
15                                                   ucba->ctrl_b);
16                                 ret = 0;