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

NAME

6       snd_register_device - Register the ALSA device file for the card
7

SYNOPSIS

9       int snd_register_device(int type, struct snd_card * card, int dev,
10                               const struct file_operations * f_ops,
11                               void * private_data, struct device * device);
12

ARGUMENTS

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       device
30           the device to register
31

DESCRIPTION

33       Registers an ALSA device file for the given card. The operators have to
34       be set in reg parameter.
35

RETURN

37       Zero if successful, or a negative error code on failure.
38
40Kernel Hackers Manual 3.10         June 2019            SND_REGISTER_DEVICE(9)
Impressum