]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: Clear RIRB status before reading WP
authorMohan Kumar <mkumard@nvidia.com>
Thu, 6 Feb 2020 10:10:53 +0000 (15:40 +0530)
committerTakashi Iwai <tiwai@suse.de>
Thu, 6 Feb 2020 10:46:18 +0000 (11:46 +0100)
commit4462f88fd62b73cd6f1f2c2bbfc7a8ca6d9933d5
tree2b953164dce6f5f982dab4a2956e5a91029b4bcd
parent5572c9f615b55d6bdfcbb5ab8ce13a3363e412fc
ALSA: hda: Clear RIRB status before reading WP

RIRB interrupt status getting cleared after the write pointer is read
causes a race condition, where last response(s) into RIRB may remain
unserviced by IRQ, eventually causing azx_rirb_get_response to fall
back to polling mode. Clearing the RIRB interrupt status ahead of
write pointer access ensures that this condition is avoided.

Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Link: https://lore.kernel.org/r/1580983853-351-1-git-send-email-viswanathl@nvidia.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_controller.c