sound/pcm: "play interrupt timeout, channel dead"
this fixes a "pcm0:virtual:0:dsp0.2: play interrupt timeout, channel dead" error
and sound breaking off after a few seconds of playback I encountered on my
Thinkpad X40. It was discussed on freebsd-current in 2004 but that code is no
longer present in FreeBSD while we still have it.
The patch removes a line fixing a channel timeout to 1 tick instead of the
value calculated immediately beforehand, thus restoring the calculation.
#3 Updated by dillon over 4 years ago
- Assignee deleted (
There are multiple problems here not the least of which being that a timeout of 1 tick is too low anyway, because it can wind up happening 1ns later (the next tick interrupt). So the minimum is 2 and the calculation also needs to average-up fractional results. I will commit a fix which calculates it properly.