Skip to contentSkip to conversation

ALSA: hda: Comment about snd_hdac_bus_update_rirb() and spinlock

PATCH New Takashi Iwai 1 participant 1 message Dec 13, 2019 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: hda: Comment about snd_hdac_bus_update_rirb() and spinlock

The call of snd_hdac_bus_update_rirb() needs the bus->reg_lock spinlock protection for concurrency. Comment about it more explicitly.

---
 sound/hda/hdac_controller.c | 1 +
 1 file changed, 1 insertion(+)
sound/hda/hdac_controller.c +1 -0
index 01787081552d..b856184af37f 100644
@@ -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)
 {
Signature · 6 lines
2.16.4

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel