summaryrefslogtreecommitdiffstats
path: root/sound/hda
diff options
context:
space:
mode:
authorBard Liao <yung-chuan.liao@linux.intel.com>2019-05-27 00:58:35 +0800
committerTakashi Iwai <tiwai@suse.de>2019-05-28 07:52:02 +0200
commit5e13cf6cd64c6a4c15a4426e6f1683093a495d9a (patch)
tree644dda75ab513b3aa84a15d64f7a2d7e4adfa0be /sound/hda
parent8af42130b50c4d38f48fa82f3f7be4606d01f595 (diff)
downloadlinux-5e13cf6cd64c6a4c15a4426e6f1683093a495d9a.tar.bz2
ALSA: hda: add polling mode in snd_hdac_bus_get_response
Polling mode is useful if a machine somehow missed an expected IRQ. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/hda')
-rw-r--r--sound/hda/hdac_controller.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/hda/hdac_controller.c b/sound/hda/hdac_controller.c
index b2e9454f5816..a16ac31bda83 100644
--- a/sound/hda/hdac_controller.c
+++ b/sound/hda/hdac_controller.c
@@ -239,6 +239,8 @@ int snd_hdac_bus_get_response(struct hdac_bus *bus, unsigned int addr,
timeout = jiffies + msecs_to_jiffies(1000);
for (loopcounter = 0;; loopcounter++) {
+ if (bus->polling_mode)
+ snd_hdac_bus_update_rirb(bus);
spin_lock_irq(&bus->reg_lock);
if (!bus->rirb.cmds[addr]) {
if (res)