snd_card_new — create and initialize a soundcard structure
int snd_card_new ( | struct device * parent, |
| int idx, | |
| const char * xid, | |
| struct module * module, | |
| int extra_size, | |
struct snd_card ** card_ret); |
parentthe parent device object
idxcard index (address) [0 ... (SNDRV_CARDS-1)]
xidcard identification (ASCII string)
moduletop level module for locking
extra_sizeallocate this extra size after the main soundcard structure
card_retthe pointer to store the created card instance