ALSA: hda_intel: fix handling of non-completion stream interrupts
authorClemens Ladisch <clemens@ladisch.de>
Tue, 25 May 2010 07:03:40 +0000 (09:03 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 May 2010 18:23:15 +0000 (20:23 +0200)
commit9ef04066b3e7c51ed7edc6010ac039f18f9f3617
tree7581d83c1f06f56f47f461e85ef181e3d3878921
parent66668b6fb6861fad7f6bfef6646ac84693474c9a
ALSA: hda_intel: fix handling of non-completion stream interrupts

Check that the interrupt raised for a stream is actually a buffer
completion interrupt before handling it as one.  Otherwise, memory
errors or FIFO xruns would be interpreted as a pointer update and could
break the stream timing.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c