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: Tetsuya Isaki <isaki%pastel-flower.jp@localhost>
To: RVP <rvp%SDF.ORG@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 14:54:33 +0900
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