ALSA: Core - add snd_card_set_id() function
authorJaroslav Kysela <perex@perex.cz>
Tue, 2 Jun 2009 10:02:38 +0000 (12:02 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 2 Jun 2009 10:47:46 +0000 (12:47 +0200)
commit10a8ebbb08c4b08292598947bbe534e04d6ee705
tree520419b15c64e249106d7642004c898d6d75ba63
parent3218911f839b6c85acbf872ad264ea69aa4d89ad
ALSA: Core - add snd_card_set_id() function

Introduce snd_card_set_id() function to allow lowlevel drivers to set
default identification name for card slot. The function checks also
for identification name collisions and tries to create unique name.

Also, the snd_card_create() function is simplified, because this new
function is used. As bonus, proper name collision checks are evaluated
at the card create time.

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