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) ; |
parent
the parent device object
idx
card index (address) [0 ... (SNDRV_CARDS-1)]
xid
card identification (ASCII string)
module
top level module for locking
extra_size
allocate this extra size after the main soundcard structure
card_ret
the pointer to store the created card instance