other versions
- stretch 4.9.168-1
SND_REGISTER_DEVICE(9) | Management of Cards and Device | SND_REGISTER_DEVICE(9) |
NAME¶
snd_register_device - Register the ALSA device file for the cardSYNOPSIS¶
int snd_register_device(int type, struct snd_card * card, int dev, const struct file_operations * f_ops, void * private_data, struct device * device);
ARGUMENTS¶
typethe 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
DESCRIPTION¶
Registers an ALSA device file for the given card. The operators have to be set in reg parameter.RETURN¶
Zero if successful, or a negative error code on failure.COPYRIGHT¶
April 2019 | Kernel Hackers Manual 4.9. |