snd_card_new — create and initialize a soundcard structure
struct snd_card * snd_card_new
(int idx, const char * xid, struct module * module, int extra_size);
card index (address) [0 ... (SNDRV_CARDS-1)]
card identification (ASCII string)
top level module for locking
allocate this extra size after the main soundcard structure
Creates and initializes a soundcard structure.
Returns kmallocated snd_card structure. Creates the ALSA control interface (which is blocked until snd_card_register function is called).