projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35d1d58
)
ALSA: core: update comment on snd_card.controls_rwsem
author
Oswald Buddenhagen
<oswald.buddenhagen@gmx.de>
Fri, 28 Apr 2023 09:59:40 +0000
(11:59 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 8 May 2023 07:25:48 +0000
(09:25 +0200)
Since commit
5bbb1ab5bd
("control: use counting semaphore as write lock
for ELEM_WRITE operation"), this has been locking the controls including
their values, not just the list of controls.
Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Link:
https://lore.kernel.org/r/20230428095941.1706278-6-oswald.buddenhagen@gmx.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/core.h
patch
|
blob
|
history
diff --git
a/include/sound/core.h
b/include/sound/core.h
index
3edc4ab
..
4ea5f66
100644
(file)
--- a/
include/sound/core.h
+++ b/
include/sound/core.h
@@
-98,7
+98,7
@@
struct snd_card {
struct device ctl_dev; /* control device */
unsigned int last_numid; /* last used numeric ID */
- struct rw_semaphore controls_rwsem; /* controls l
ist lock
*/
+ struct rw_semaphore controls_rwsem; /* controls l
ock (list and values)
*/
rwlock_t ctl_files_rwlock; /* ctl_files list lock */
int controls_count; /* count of all controls */
size_t user_ctl_alloc_size; // current memory allocation by user controls.