Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into...
[openembedded.git] / recipes / 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;