patch-2.1.49 linux/drivers/char/vt.c
Next file: linux/drivers/isdn/avmb1/capi.c
Previous file: linux/drivers/char/serial.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Wed Aug 6 13:10:58 1997
- Orig file:
v2.1.48/linux/drivers/char/vt.c
- Orig date:
Mon Jun 16 16:35:55 1997
diff -u --recursive --new-file v2.1.48/linux/drivers/char/vt.c linux/drivers/char/vt.c
@@ -490,8 +490,6 @@
case KIOCSOUND:
if (!perm)
return -EPERM;
- if (arg)
- arg = 1193180 / arg;
kd_mksound(arg, 0);
return 0;
@@ -506,8 +504,7 @@
* If the time is zero, turn off sound ourselves.
*/
ticks = HZ * ((arg >> 16) & 0xffff) / 1000;
- if ((arg & 0xffff) == 0 ) arg |= 1; /* jp: huh? */
- count = ticks ? (1193180 / (arg & 0xffff)) : 0;
+ count = ticks ? arg : 0;
kd_mksound(count, ticks);
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov