1SND_REGISTER_DEVICE(9) Miscellaneous Functions SND_REGISTER_DEVICE(9)
2
3
4
6 snd_register_device - Register the ALSA device file for the card
7
9 int snd_register_device(int type, struct snd_card * card, int dev,
10 const struct file_operations * f_ops,
11 void * private_data, const char * name);
12
14 type
15 the device type, SNDRV_DEVICE_TYPE_XXX
16
17 card
18 the card instance
19
20 dev
21 the device index
22
23 f_ops
24 the file operations
25
26 private_data
27 user pointer for f_ops->open
28
29 name
30 the device file name
31
33 Registers an ALSA device file for the given card. The operators have to
34 be set in reg parameter.
35
36 This function uses the card´s device pointer to link to the correct
37 struct device.
38
39 Returns zero if successful, or a negative error code on failure.
40
42Kernel Hackers Manual 2.6. June 2019 SND_REGISTER_DEVICE(9)