snd_register_device — Register the ALSA device file for the card
int snd_register_device ( | int type, |
struct snd_card * card, | |
int dev, | |
const struct file_operations * f_ops, | |
void * private_data, | |
struct device * device) ; |
type
the device type, SNDRV_DEVICE_TYPE_XXX
card
the card instance
dev
the device index
f_ops
the file operations
private_data
user pointer for f_ops->open
device
the device to register