]> 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:43:15 +0000 (16:43 -0700)
commitf7b4b6402571031096dd9f6e21ffcf6780f8c887
treed118d740dbd0a8ebe105a5cc9b74fdbe35c3d0ca
parentc8217fce077b163d588ee658609a2704e7a13b6d
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