diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2017-08-03 20:20:42 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-04 16:50:55 +0200 |
commit | 30d8340b5857550007ab6fe9744e4384dfa6e55c (patch) | |
tree | 40a7d3ae6e0f9fecb8a74d1b8fe73e2e2af6c96c /sound/core/init.c | |
parent | 4c8099e9cad5ba11c770042549f68e7687eaa72b (diff) | |
download | linux-30d8340b5857550007ab6fe9744e4384dfa6e55c.tar.bz2 |
ALSA: control: obsolete user_ctl_lock
At a previous commit, concurrent requests for TLV data are maintained
exclusively between read requests and write/command requests. TLV
callback handlers in each driver has no risk from concurrent access for
reference/change.
In current implementation, 'struct snd_card' has a mutex to control
concurrent accesses to user-defined element sets. This commit obsoletes it.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/init.c')
-rw-r--r-- | sound/core/init.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/core/init.c b/sound/core/init.c index b4365bcf28a7..6e219dc23f96 100644 --- a/sound/core/init.c +++ b/sound/core/init.c @@ -248,7 +248,6 @@ int snd_card_new(struct device *parent, int idx, const char *xid, INIT_LIST_HEAD(&card->devices); init_rwsem(&card->controls_rwsem); rwlock_init(&card->ctl_files_rwlock); - mutex_init(&card->user_ctl_lock); INIT_LIST_HEAD(&card->controls); INIT_LIST_HEAD(&card->ctl_files); spin_lock_init(&card->files_lock); |