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

NAME

6       snd_device_new - create an ALSA device component
7

SYNOPSIS

9       int snd_device_new(struct snd_card * card, snd_device_type_t type,
10                          void * device_data, struct snd_device_ops * ops);
11

ARGUMENTS

13       card
14           the card instance
15
16       type
17           the device type, SNDRV_DEV_XXX
18
19       device_data
20           the data pointer of this device
21
22       ops
23           the operator table
24

DESCRIPTION

26       Creates a new device component for the given data pointer. The device
27       will be assigned to the card and managed together by the card.
28
29       The data pointer plays a role as the identifier, too, so the pointer
30       address must be unique and unchanged.
31
32       Returns zero if successful, or a negative error code on failure.
33
35Kernel Hackers Manual 2.6.         June 2019                 SND_DEVICE_NEW(9)
Impressum