]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: control: add snd_ctl_rename()
authorMaciej S. Szmigiero <maciej.szmigiero@oracle.com>
Thu, 20 Oct 2022 20:46:21 +0000 (22:46 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 21 Oct 2022 06:17:08 +0000 (08:17 +0200)
commit25eaabd9944a3a37f39e81cf1b1c02aa4ec4bc1d
treeb2385617043d48f185a0047e9333f8aff20cddfb
parent8ed87fa4c88cd47303e3ab605612087557ea330e
ALSA: control: add snd_ctl_rename()

Add a snd_ctl_rename() function that takes care of updating the control
hash entries for callers that already have the relevant struct snd_kcontrol
at hand and hold the control write lock (or simply haven't registered the
card yet).

Fixes: 3e73e2b3c134 ("ALSA: control: Use xarray for faster lookups")
Cc: stable@vger.kernel.org
Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Link: https://lore.kernel.org/r/4170b71117ea81357a4f7eb8410f7cde20836c70.1666296963.git.maciej.szmigiero@oracle.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/control.h
sound/core/control.c