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



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