summaryrefslogtreecommitdiffstats
path: root/sound/hda
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-12-13 17:30:05 +0100
committerTakashi Iwai <tiwai@suse.de>2019-12-14 18:56:06 +0100
commit651bbb9d5161ae7170bc19fec893b8bf05fc590f (patch)
tree5ecda3ce5f33ec56d809099e36b56a1320a72d02 /sound/hda
parent1faa9d3a3ea7852761ff403f5a9d4a409c0bb199 (diff)
downloadlinux-651bbb9d5161ae7170bc19fec893b8bf05fc590f.tar.bz2
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. Link: https://lore.kernel.org/r/20191213163005.19116-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/hda')
-rw-r--r--sound/hda/hdac_controller.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/hda/hdac_controller.c b/sound/hda/hdac_controller.c
index 01787081552d..b856184af37f 100644
--- a/sound/hda/hdac_controller.c
+++ b/sound/hda/hdac_controller.c
@@ -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)
{