]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: Use waitqueue for RIRB in HDA-core helper, too
authorTakashi Iwai <tiwai@suse.de>
Thu, 12 Dec 2019 19:11:00 +0000 (20:11 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 13 Dec 2019 13:36:44 +0000 (14:36 +0100)
commite7135b32fa9d054ad1bc031acfee0a91b45a654a
tree2d3217f19152cbeec9fa92f544ca555739e0f7e7
parent67a1d6d20d686400d38b5b7ab94ff7c04836a586
ALSA: hda: Use waitqueue for RIRB in HDA-core helper, too

This patch implements the same logic that was done for the legacy
HD-audio controller driver by the commit 2e83a9db16aa ("ALSA: hda: Use
standard waitqueue for RIRB wakeup") to the HDA-core helper code,
too.  This makes snd_hdac_bus_get_response() waiting for the response
with bus->rirb_wq instead of polling when bus->polling is false.
It'll save both CPU time and response latency.

Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20191212191101.19517-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/hdac_controller.c