.\" 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_DEVICE_NEW" "9" "09 October 2005" "" "" .SH NAME snd_device_new \- create an ALSA device component .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int snd_device_new (snd_card_t * \fIcard\fB, snd_device_type_t \fItype\fB, void * \fIdevice_data\fB, snd_device_ops_t * \fIops\fB); \fR .SH "ARGUMENTS" .TP \fB\fIcard\fB\fR the card instance .TP \fB\fItype\fB\fR the device type, SNDRV_DEV_XXX .TP \fB\fIdevice_data\fB\fR the data pointer of this device .TP \fB\fIops\fB\fR the operator table .SH "DESCRIPTION" .PP Creates a new device component for the given data pointer. The device will be assigned to the card and managed together by the card. .PP The data pointer plays a role as the identifier, too, so the pointer address must be unique and unchanged. .PP Returns zero if successful, or a negative error code on failure.