]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: PCM - Don't check DMA time-out too shortly
authorTakashi Iwai <tiwai@suse.de>
Thu, 26 May 2011 06:09:38 +0000 (08:09 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 26 May 2011 06:09:38 +0000 (08:09 +0200)
commita1b40eddf14dc296643a8288a829bafdf070da05
tree4e43feacc58c629919d09bc6fd200ac0892d2cca
parente72b2871477a458454ba1d53010204d57ba55e82
ALSA: PCM - Don't check DMA time-out too shortly

When the PCM period size is set larger than 10 seconds, currently the
PCM core may abort the operation with DMA-error due to the fixed timeout
for 10 seconds.  A similar problem is seen in the drain operation that
has a fixed timeout of 10 seconds, too.

This patch fixes the timeout length depending on the period size and
rate, also including the consideration of no_period_wakeup flag.

Reported-by: Raymond Yau <superquad.vortex2@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_lib.c
sound/core/pcm_native.c