FreeBSD Bugzilla – Attachment 16712 Details for
Bug 30541
[PATCH] old pccard beep depends on value of HZ
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.01 KB, created by
Tony Finch
on 2001-09-13 00:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Tony Finch
Created:
2001-09-13 00:50:01 UTC
Size:
1.01 KB
patch
obsolete
>Index: sys/pccard/pccard_beep.c >=================================================================== >RCS file: /home/ncvs/src/sys/pccard/pccard_beep.c,v >retrieving revision 1.3.2.3 >diff -u -r1.3.2.3 pccard_beep.c >--- sys/pccard/pccard_beep.c 2001/06/05 19:11:34 1.3.2.3 >+++ sys/pccard/pccard_beep.c 2001/08/28 22:22:10 >@@ -73,8 +73,10 @@ > melody = (struct tone *)arg; > > if (melody->pitch != 0) { >- sysbeep(melody->pitch, melody->duration); >- timeout(pccard_beep_sub, melody + 1, melody->duration); >+ sysbeep(melody->pitch, >+ melody->duration * hz / 100); >+ timeout(pccard_beep_sub, melody + 1, >+ melody->duration * hz / 100); > } else > allow_beep = BEEP_ON; > } >@@ -87,8 +89,10 @@ > > if (allow_beep == BEEP_ON && melody->pitch != 0) { > allow_beep = BEEP_OFF; >- sysbeep(melody->pitch, melody->duration); >- timeout(pccard_beep_sub, melody + 1, melody->duration); >+ sysbeep(melody->pitch, >+ melody->duration * hz / 100); >+ timeout(pccard_beep_sub, melody + 1, >+ melody->duration * hz / 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 30541
: 16712