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)
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>

No differences found