]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit682ae622b849461ba073ebb86ce9b5d6e7f905d6
treec6eee9f271d5b3ea7ca605f38ec7f8656e24e8ee
parentd2494e58cc80bacb51810227c83fc9de1b803e41
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