updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / acpi-eee / asusosd-volume_toggle_fix.patch
blob91969bd22758ac13ecb996f11fd49ed543a34519
1 # Make the asusosd mixer volume toggle work as it should have already been.
2 # by Mika Hynnä <igheax@gmail.com>
3 --- src/asus_osd/asusosd.c 2008-03-11 23:50:57.000000000 +0200
4 +++ asusosd.c 2008-03-11 23:47:15.000000000 +0200
5 @@ -261,8 +261,14 @@
7 case 13:printf("@@ audio mute %d\n", hotkey);
8 //audio mute
9 - if(!getvol(1)) //off
10 - hotkey = 16;//then on
11 + if(getvol(1)) //get volume status: 1=on 0=off
12 + {
13 + hotkey = 16;
14 + printf("Volume on\n");
15 + }else{
16 + hotkey = 13;
17 + printf("Volume off\n");
18 + }
19 printf("@@ audio mute %d\n", hotkey);
20 break;
21 case 14: //volume down