OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1faa9d3
)
ALSA: hda: Comment about snd_hdac_bus_update_rirb() and spinlock
author
Takashi Iwai
<tiwai@suse.de>
Fri, 13 Dec 2019 16:30:05 +0000
(17:30 +0100)
committer
Takashi 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
patch
|
blob
|
history
diff --git
a/sound/hda/hdac_controller.c
b/sound/hda/hdac_controller.c
index
0178708
..
b856184
100644
(file)
--- 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)
{