Rechercher une page de manuel
snd_register_device
Langue: en
Version: June 2009 (debian - 07/07/09)
Section: 9 (Appels noyau Linux)
NAME
snd_register_device - Register the ALSA device file for the cardSYNOPSIS
- int snd_register_device(int type, struct snd_card * card, int dev, const struct file_operations * f_ops, void * private_data, const char * name);
ARGUMENTS
type
- the device type, SNDRV_DEVICE_TYPE_XXX
card
- the card instance
dev
- the device index
f_ops
- the file operations
private_data
- user pointer for f_ops->open
name
- the device file name
DESCRIPTION
Registers an ALSA device file for the given card. The operators have to be set in reg parameter.
This function uses the card's device pointer to link to the correct struct device.
Returns zero if successful, or a negative error code on failure.
COPYRIGHT
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre