Skip to content

Commit

Permalink
ALSA: hda: add polling mode in snd_hdac_bus_get_response
Browse files Browse the repository at this point in the history
Polling mode is useful if a machine somehow missed an expected IRQ.

Signed-off-by: Bard Liao <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
bardliao authored and tiwai committed May 28, 2019
1 parent 8af4213 commit 5e13cf6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/hda/hdac_controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5e13cf6

Please sign in to comment.