mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
8af42130b5
commit
5e13cf6cd6
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue