NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/56059: speaker(4): system hangs if tone < 100 Hz (_SC_CLK_TCK) is played



The following reply was made to PR kern/56059; it has been noted by GNATS.

From: RVP <rvp%SDF.ORG@localhost>
To: Tetsuya Isaki <isaki%pastel-flower.jp@localhost>
Cc: gnats-bugs%netbsd.org@localhost, kern-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
        netbsd-bugs%netbsd.org@localhost
Subject: Re: kern/56059: speaker(4): system hangs if tone < 100 Hz (_SC_CLK_TCK)
 is played
Date: Sat, 20 Mar 2021 07:34:56 +0000 (UTC)

 On Sat, 20 Mar 2021, Tetsuya Isaki wrote:
 
 > A trivial correction for just future reference.
 > tones < 100Hz is not related. (98Hz "O0G" worked).
 >
 
 Yes, I noticed that. But, the next one down F# (93Hz) definitely
 hung the system--I just assumed it was a due to rounding, somewhere.
 
 > The buffersize was calculated indirectly from the beep's frequency
 > and blk_ms.  I omit the details (since it is complicated), but if
 > the resulted size becomes less than 32 bytes, then rounding down it
 > by 32 bytes caused zero.
 >
 
 Thanks for that explanation: even abbreviated, it is quite clear.
 
 I'll try the fix out when the new images get built. Feel free to
 close this PR.
 
 -RVP
 


Home | Main Index | Thread Index | Old Index