.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "SND_REGISTER_DEVICE" "" "06 October 2005" "" "" .SH NAME snd_register_device \- Register the ALSA device file for the card .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int snd_register_device (int \fItype\fB, snd_card_t * \fIcard\fB, int \fIdev\fB, snd_minor_t * \fIreg\fB, const char * \fIname\fB); \fR .SH "ARGUMENTS" .TP \fB\fItype\fB\fR the device type, SNDRV_DEVICE_TYPE_XXX .TP \fB\fIcard\fB\fR the card instance .TP \fB\fIdev\fB\fR the device index .TP \fB\fIreg\fB\fR the snd_minor_t record .TP \fB\fIname\fB\fR the device file name .SH "DESCRIPTION" .PP Registers an ALSA device file for the given card. The operators have to be set in reg parameter. .PP Retrurns zero if successful, or a negative error code on failure.