diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2009-08-17 12:27:22 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-08-17 12:48:15 +0200 |
commit | f217ac59b6dd73105abc13da3fe656391fa6d135 (patch) | |
tree | d0ff4a0dec41b603df76baec15ec51bf62146ee6 /fs | |
parent | 317b80817fcaeac7ae7e062fcccef0d2aba38a78 (diff) | |
download | blackbird-op-linux-f217ac59b6dd73105abc13da3fe656391fa6d135.tar.gz blackbird-op-linux-f217ac59b6dd73105abc13da3fe656391fa6d135.zip |
sound: snd_ctl_remove_unlocked_id: simplify user control counting
Move the decrementing of the user controls counter from
snd_ctl_elem_remove to snd_ctl_remove_unlocked_id; this saves the
separate locking of the controls semaphore, and therefore removes
a harmless race.
Since the purpose of the function is to operate on user controls (the
control being unlocked is just a prerequisite), rename it to
snd_ctl_remove_user_ctl.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions