]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ALSA: emu10k1 - delay the PCM interrupts (add pcm_irq_delay parameter)
authorJaroslav Kysela <perex@perex.cz>
Wed, 18 Aug 2010 12:08:17 +0000 (14:08 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Aug 2010 23:41:34 +0000 (16:41 -0700)
commit359789e0a8fb95dca2cf755e16ba8af1a20d41cf
tree1db5485259940d599fbfd0c990910a0c0ca0e4c0
parentc70da408d154be79d120fdca8aeb567b56f7f370
ALSA: emu10k1 - delay the PCM interrupts (add pcm_irq_delay parameter)

commit 56385a12d9bb9e173751f74b6c430742018cafc0 upstream.

With some hardware combinations, the PCM interrupts are acknowledged
before the period boundary from the emu10k1 chip. The midlevel PCM code
gets confused and the playback stream is interrupted.

It seems that the interrupt processing shift by 2 samples is enough
to fix this issue. This default value does not harm other,
non-affected hardware.

More information: Kernel bugzilla bug#16300

[A copmile warning fixed by tiwai]

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/sound/emu10k1.h
sound/core/pcm_native.c
sound/pci/emu10k1/emu10k1.c
sound/pci/emu10k1/emupcm.c
sound/pci/emu10k1/memory.c