diff options
author | Jaroslav Kysela <perex@perex.cz> | 2009-06-02 12:02:38 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-06-02 12:47:46 +0200 |
commit | 10a8ebbb08c4b08292598947bbe534e04d6ee705 (patch) | |
tree | 520419b15c64e249106d7642004c898d6d75ba63 /include/sound | |
parent | Merge git://git.infradead.org/~dwmw2/mtd-2.6.30 (diff) | |
download | linux-10a8ebbb08c4b08292598947bbe534e04d6ee705.tar.xz linux-10a8ebbb08c4b08292598947bbe534e04d6ee705.zip |
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>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/core.h b/include/sound/core.h index 3dea79829acc..0e8ae10155ab 100644 --- a/include/sound/core.h +++ b/include/sound/core.h @@ -313,6 +313,7 @@ struct snd_card *snd_card_new(int idx, const char *id, int snd_card_disconnect(struct snd_card *card); int snd_card_free(struct snd_card *card); int snd_card_free_when_closed(struct snd_card *card); +void snd_card_set_id(struct snd_card *card, const char *id); int snd_card_register(struct snd_card *card); int snd_card_info_init(void); int snd_card_info_done(void); |