sound/pcm: fix calculation of PCM channel timeout soundfix
authorMatthias Rampke <matthias@rampke.de>
Sat, 7 May 2011 22:18:41 +0000 (00:18 +0200)
committerMatthias Rampke <matthias@rampke.de>
Sat, 7 May 2011 22:18:41 +0000 (00:18 +0200)
commit4d3f6d0ed343546cbd7c8cfeaf0cce3f449122b6
tree66cfa92108b67d2363955710f841e6a033fe73ce
parent0f48763dbd130d0bba01d80faa720b92cb1257c5
sound/pcm: fix calculation of PCM channel timeout

this fixes a "pcm0:virtual:0:dsp0.2: play interrupt timeout, channel dead" error
and sound dying after a few seconds of playback.
I encountered on my Thinkpad X40. It was discussed on freebsd-current in 2004[1] but that code is no longer present in FBSD 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.

[1] http://lists.freebsd.org/pipermail/freebsd-current/2004-September/036805.html
sys/dev/sound/pcm/channel.c