home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1999 May / pcp151c.iso / misc / src / install / modutils / kerneld / GOODIES / kdsound_patch < prev    next >
Encoding:
Text File  |  1998-01-06  |  615 b   |  24 lines

  1. --- linux/drivers/char/vt.c.org    Tue Mar  5 12:14:45 1996
  2. +++ linux/drivers/char/vt.c    Tue Mar  5 18:53:13 1996
  3. @@ -160,12 +160,18 @@
  4.  {
  5.      static struct timer_list sound_timer = { NULL, NULL, 0, 0,
  6.                           kd_nosound };
  7. -
  8.      unsigned int count = 0;
  9. +    char kdmsg[80];
  10. +    extern int kerneld_send(int msgtype, int ret_size, int msgsz,
  11. +        const char *text, const char *ret_val);
  12.  
  13.      if (hz > 20 && hz < 32767)
  14.          count = 1193180 / hz;
  15. -    
  16. +
  17. +    sprintf(kdmsg, "%d %d %d", current->pid, count, ticks);
  18. +    if (kerneld_send(300, 0, strlen(kdmsg), kdmsg, NULL) >= 0)
  19. +        return;
  20. +
  21.      cli();
  22.      del_timer(&sound_timer);
  23.      if (count) {
  24.