other versions
- jessie 3.16.56-1+deb8u1
SND_DEVICE_NEW(9) | Sound Devices | SND_DEVICE_NEW(9) |
NAME¶
snd_device_new - create an ALSA device componentSYNOPSIS¶
int
snd_device_new(struct snd_card * card,
enum snd_device_type type,
void * device_data,
struct snd_device_ops * ops);
ARGUMENTS¶
cardthe card instance
type
the device type, SNDRV_DEV_XXX
device_data
the data pointer of this device
ops
the operator table
DESCRIPTION¶
Creates a new device component for the given data pointer. The device will be assigned to the card and managed together by the card. The data pointer plays a role as the identifier, too, so the pointer address must be unique and unchanged.RETURN¶
Zero if successful, or a negative error code on failure.COPYRIGHT¶
May 2018 | Kernel Hackers Manual 3.16 |