snd_register_device_for_dev - Register the ALSA device file for the card
2. SYNOPSIS ▲
int snd_register_device_for_dev(int type , struct snd_card * card , int dev , const struct file_operations * f_ops , void * private_data , const char * name , struct device * device );
3. ARGUMENTS ▲
the device type, SNDRV_DEVICE_TYPE_XXX
the card instance
the device index
the file operations
user pointer for f_ops->open
the device file name
the struct device to link this new device to
4. DESCRIPTION ▲
Registers an ALSA device file for the given card. The operators have to be set in reg parameter.
5. RETURN ▲
Zero if successful, or a negative error code on failure.
6. COPYRIGHT ▲