]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: Core - clean up snd_card_set_id* calls and remove possible id collision
authorJaroslav Kysela <perex@perex.cz>
Wed, 3 Jun 2009 22:12:18 +0000 (00:12 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 3 Jun 2009 23:22:07 +0000 (01:22 +0200)
commit4474b46171d21a2f1876c78c9143aaff5d849f8c
tree1fb20990d3d6e784f4394d762e87f6322ca1cd72
parent7344e555a23ade166eda2f5fe2ed5361bb5b61aa
ALSA: Core - clean up snd_card_set_id* calls and remove possible id collision

Move locking outside snd_card_set_id_internal() function and rename it
to snd_card_set_id_no_lock() for better function description.

User defined id is just copied to card structure at allocation time.
The real unique id procedure is called in snd_card_register() to
ensure real atomicity.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/init.c