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
At Thu, 18 Mar 2021 08:07:39 +0000 (UTC),
RVP wrote:
> Poking around in the sources a bit led me to wonder if generating
> (small) samples for tones < 100Hz was leading to a buffer underrun
> somewhere. And, it seems this is so: raising the hw.audio0.blk_ms
> value "fixes" the kernel hang for me. A value of 15 ms suffices,
> but, then the generated tones seemed "off tune", so I've raised it to
> the max. it will go to on my HW (8KB -- ~42 secs):
Thank you. I've just fixed it.
A trivial correction for just future reference.
tones < 100Hz is not related. (98Hz "O0G" worked).
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.
> Maybe this will help narrow down what needs to be fixed in the
> code.
Anyway, thank you for your report!
---
Tetsuya Isaki <isaki%pastel-flower.jp@localhost / isaki%NetBSD.org@localhost>
Home |
Main Index |
Thread Index |
Old Index