Merge tag 'tags/ctl-lock-fixes-6.6' into for-next
authorTakashi Iwai <tiwai@suse.de>
Thu, 20 Jul 2023 08:05:19 +0000 (10:05 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 20 Jul 2023 08:05:19 +0000 (10:05 +0200)
ALSA: Make control API taking controls_rwsem consistently

A few ALSA control API helpers like snd_ctl_rename(), snd_ctl_remove()
and snd_ctl_find_*() suppose the callers taking card->controls_rwsem.
But it's error-prone and fragile.  This patch set tries to change
those API functions to take the card->controls>rwsem internally by
themselves, so that the drivers don't need to take care of lockings.

After applying this patch set, only a couple of places still touch
card->controls_rwsem (which are OK-ish as they need for traversing the
control linked list).

Link: https://lore.kernel.org/r/20230718141304.1032-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
1  2 
sound/pci/emu10k1/emufx.c

Simple merge