Bug #2067
opensound/pcm: "play interrupt timeout, channel dead"
0%
Description
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 20041 but that code is no
longer present in FreeBSD while we still have it.
The patch2 removes a line fixing a channel timeout to 1 tick instead of the
value calculated immediately beforehand, thus restoring the calculation.
[1] http://lists.freebsd.org/pipermail/freebsd-current/2004-
September/036805.html
[2]
http://gitweb.dragonflybsd.org/~matthiasr/dragonfly.git/commitdiff/4d3f6d0ed3435
46cbd7c8cfeaf0cce3f449122b6
Updated by matthiasr over 13 years ago
Interestingly, this problem is gone for me on master even with the forced timeout.
Updated by cnb about 10 years ago
- Description updated (diff)
- Category set to Driver
- Target version set to 3.8
This error has reappeared in 3.8
Updated by dillon about 10 years ago
- Assignee deleted (
0)
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.
-Matt
Updated by dillon about 10 years ago
I've committed 29ca9567 to master and cherry-pick'd it over to the 4.0 release. Please test.
-Matt
Updated by cnb about 10 years ago
I just upgraded to 4.0 release, the error is still present.
pcm0:virtual:1:dsp0.3: play interrupt timeout, channel dead
Bests