ALSA: hda: Comment about snd_hdac_bus_update_rirb() and spinlock
authorTakashi Iwai <tiwai@suse.de>
Fri, 13 Dec 2019 16:30:05 +0000 (17:30 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 14 Dec 2019 17:56:06 +0000 (18:56 +0100)
The call of snd_hdac_bus_update_rirb() needs the bus->reg_lock
spinlock protection for concurrency.  Comment about it more
explicitly.

Link: https://lore.kernel.org/r/20191213163005.19116-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/hdac_controller.c

index 01787081552de7ba6a943e95676d7236a6855732..b856184af37fb01cd566d6f59a4ae87ac3df2700 100644 (file)
@@ -181,6 +181,7 @@ EXPORT_SYMBOL_GPL(snd_hdac_bus_send_cmd);
  * @bus: HD-audio core bus
  *
  * Usually called from interrupt handler.
+ * The caller needs bus->reg_lock spinlock before calling this.
  */
 void snd_hdac_bus_update_rirb(struct hdac_bus *bus)
 {