ALSA: hda - Delay switching to polling mode if an interrupt was missing
authorMaxim Levitsky <maximlevitsky@gmail.com>
Thu, 4 Feb 2010 20:21:47 +0000 (22:21 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 5 Feb 2010 08:07:21 +0000 (09:07 +0100)
commit1eb6dc7dabcb4aa762d96f4f6978f3ef86321d68
treec6eee9f271d5b3ea7ca605f38ec7f8656e24e8ee
parent8ce28d6abff34886d3797b25324c940471b99164
ALSA: hda - Delay switching to polling mode if an interrupt was missing

My sound codec seems sometimes (very rarely) to omit interrupts (ALC268)
However, interrupt mode still works.
Thus if we get timeout, poll the codec once.

If we get 3 such polls in a row, then switch to polling mode.

This patch is maybe an bandaid, but this might be a workaround for hardware bug.

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c