1SND_REGISTER_DEVICE_(9) Management of Cards and Device SND_REGISTER_DEVICE_(9)
2
3
4

NAME

6       snd_register_device_for_dev - Register the ALSA device file for the
7       card
8

SYNOPSIS

10       int snd_register_device_for_dev(int type, struct snd_card * card,
11                                       int dev,
12                                       const struct file_operations * f_ops,
13                                       void * private_data, const char * name,
14                                       struct device * device);
15

ARGUMENTS

17       type
18           the device type, SNDRV_DEVICE_TYPE_XXX
19
20       card
21           the card instance
22
23       dev
24           the device index
25
26       f_ops
27           the file operations
28
29       private_data
30           user pointer for f_ops->open
31
32       name
33           the device file name
34
35       device
36           the struct device to link this new device to
37

DESCRIPTION

39       Registers an ALSA device file for the given card. The operators have to
40       be set in reg parameter.
41
42       Returns zero if successful, or a negative error code on failure.
43
45Kernel Hackers Manual 2.6.         June 2019           SND_REGISTER_DEVICE_(9)
Impressum