FreeBSD Bugzilla – Attachment 13179 Details for
Bug 25201
pccard event and syscons beep duration depend on HZ
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 3.85 KB, created by
amorita
on 2001-02-19 12:50:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
amorita
Created:
2001-02-19 12:50:02 UTC
Size:
3.85 KB
patch
obsolete
>Index: sys/pc98/pc98/sc_machdep.h >=================================================================== >RCS file: /CVSrepository/FreeBSD/src/sys/pc98/pc98/sc_machdep.h,v >retrieving revision 1.4 >diff -d -u -r1.4 sc_machdep.h >--- sys/pc98/pc98/sc_machdep.h 2000/01/20 15:16:26 1.4 >+++ sys/pc98/pc98/sc_machdep.h 2001/02/18 09:19:49 >@@ -44,7 +44,7 @@ > > #define KANJI 1 > >-#define BELL_DURATION 5 >+#define BELL_DURATION ((5 * hz + 99) / 100) > #define BELL_PITCH_8M 1339 > #define BELL_PITCH_5M 1678 > >Index: sys/pc98/pc98/scterm-sck.c >=================================================================== >RCS file: /CVSrepository/FreeBSD/src/sys/pc98/pc98/scterm-sck.c,v >retrieving revision 1.2.2.5 >diff -d -u -r1.2.2.5 scterm-sck.c >--- sys/pc98/pc98/scterm-sck.c 2000/07/30 08:12:41 1.2.2.5 >+++ sys/pc98/pc98/scterm-sck.c 2001/02/18 09:19:49 >@@ -628,7 +628,7 @@ > case 'B': /* set bell pitch and duration */ > if (tcp->num_param == 2) { > scp->bell_pitch = tcp->param[0]; >- scp->bell_duration = tcp->param[1]; >+ scp->bell_duration = (tcp->param[1] * hz + 99) / 100; > } > break; > >Index: sys/dev/syscons/scterm-sc.c >=================================================================== >RCS file: /CVSrepository/FreeBSD/src/sys/dev/syscons/scterm-sc.c,v >retrieving revision 1.4.2.7 >diff -d -u -r1.4.2.7 scterm-sc.c >--- sys/dev/syscons/scterm-sc.c 2000/07/27 20:31:14 1.4.2.7 >+++ sys/dev/syscons/scterm-sc.c 2001/02/18 09:19:49 >@@ -545,7 +545,7 @@ > case 'B': /* set bell pitch and duration */ > if (tcp->num_param == 2) { > scp->bell_pitch = tcp->param[0]; >- scp->bell_duration = tcp->param[1]; >+ scp->bell_duration = (tcp->param[1] * hz + 99) / 100; > } > break; > >Index: sys/dev/syscons/syscons.h >=================================================================== >RCS file: /CVSrepository/FreeBSD/src/sys/dev/syscons/syscons.h,v >retrieving revision 1.60.2.1 >diff -d -u -r1.60.2.1 syscons.h >--- sys/dev/syscons/syscons.h 2000/04/03 13:03:32 1.60.2.1 >+++ sys/dev/syscons/syscons.h 2001/02/18 09:19:49 >@@ -120,7 +120,7 @@ > #define PCBURST 128 > > #ifndef BELL_DURATION >-#define BELL_DURATION 5 >+#define BELL_DURATION ((5 * hz + 99) / 100) > #define BELL_PITCH 800 > #endif > >Index: sys/i386/isa/pcvt/pcvt_kbd.c >=================================================================== >RCS file: /CVSrepository/FreeBSD/src/sys/i386/isa/pcvt/pcvt_kbd.c,v >retrieving revision 1.32.2.1 >diff -d -u -r1.32.2.1 pcvt_kbd.c >--- sys/i386/isa/pcvt/pcvt_kbd.c 2000/10/29 16:59:06 1.32.2.1 >+++ sys/i386/isa/pcvt/pcvt_kbd.c 2001/02/18 09:19:49 >@@ -1342,8 +1342,8 @@ > * pulates the spl mask - jw > */ > >-# define PLING sysbeep(PCVT_SYSBEEPF / 1500, 2) >-# define PLONG sysbeep(PCVT_SYSBEEPF / 1200, 2) >+# define PLING sysbeep(PCVT_SYSBEEPF / 1500, (2 * hz + 99) / 100) >+# define PLONG sysbeep(PCVT_SYSBEEPF / 1200, (2 * hz + 99) / 100) > > if(mousedef.stickybuttons) > { >Index: sys/pccard/pccard_beep.c >=================================================================== >RCS file: /CVSrepository/FreeBSD/src/sys/pccard/pccard_beep.c,v >retrieving revision 1.3.2.1 >diff -d -u -r1.3.2.1 pccard_beep.c >--- sys/pccard/pccard_beep.c 2000/12/02 12:49:34 1.3.2.1 >+++ sys/pccard/pccard_beep.c 2001/02/18 09:19:49 >@@ -74,8 +74,8 @@ > melody = (struct tone *)arg; > > if (melody->pitch != NULL) { >- sysbeep(melody->pitch, melody->duration); >- timeout(pccard_beep_sub, ++melody, melody->duration); >+ sysbeep(melody->pitch, (melody->duration * hz + 99) / 100); >+ timeout(pccard_beep_sub, ++melody, (melody->duration * hz + 99) / 100); > } else > allow_beep = BEEP_ON; > } >@@ -88,8 +88,8 @@ > > if (allow_beep == BEEP_ON && melody->pitch != NULL) { > allow_beep = BEEP_OFF; >- sysbeep(melody->pitch, melody->duration); >- timeout(pccard_beep_sub, ++melody, melody->duration); >+ sysbeep(melody->pitch, (melody->duration * hz + 99) / 100); >+ timeout(pccard_beep_sub, ++melody, (melody->duration * hz + 99) / 100); > } > } > >----
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 25201
: 13179