1 --- src/asus_osd/asusosd_orig.c 2009-01-08 17:15:59.000000000 -0500
2 +++ src/asus_osd/asusosd.c 2009-01-08 17:19:06.000000000 -0500
5 if(data == IMG_AUDIO_MUTE)
7 - sprintf(cmd, "%s off", VOLUME_CONTROL);
10 - else if(data == IMG_AUDIO_ON)
11 + if(getvol(1) == 0) //off
13 sprintf(cmd, "%s on", VOLUME_CONTROL);
16 + sprintf(cmd, "%s off", VOLUME_CONTROL);
24 - case 13:printf("@@ audio mute %d\n", hotkey);
26 - if(getvol(1)) //get volume status: 1=on 0=off
29 - printf("Volume on\n");
32 - printf("Volume off\n");
34 - printf("@@ audio mute %d\n", hotkey);
36 case 14: //volume down
40 else if ((img_data&IMAGE_MASK) == IMG_DISP_LCD_CRT)
41 sprintf(filename, "%s", "/usr/share/asus_osd/crt_lcd.png");
42 else if ((img_data&IMAGE_MASK) == IMG_AUDIO_MUTE)
43 - sprintf(filename, "%s", "/usr/share/asus_osd/VolumeMute.png");
44 - else if ((img_data&IMAGE_MASK) == IMG_AUDIO_ON)
46 + if(getvol(1) == 0) //off
47 sprintf(filename, "%s", "/usr/share/asus_osd/VolumeOn.png");
49 + sprintf(filename, "%s", "/usr/share/asus_osd/VolumeMute.png");
51 else if ((img_data&IMAGE_MASK) == IMG_BRN_DN)
52 sprintf(filename, "%s%d%s", "/usr/share/asus_osd/BrightnessDown",val,".png");
53 else if ((img_data&IMAGE_MASK) == IMG_BRN_UP)