]> git.kernelconcepts.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:45:45 +0000 (16:45 -0700)
commit2f10b29273e6a54a870cd9c6cbaf7bd5326cb547
tree81d84d3ac9765cb82877aed60b08a63255950901
parent6c877dfbe9b81983e254bdd6aa8854fb2a288604
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