.\" 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_HWDEP_NEW" "" "06 October 2005" "" "" .SH NAME snd_hwdep_new \- create a new hwdep instance .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int snd_hwdep_new (snd_card_t * \fIcard\fB, char * \fIid\fB, int \fIdevice\fB, snd_hwdep_t ** \fIrhwdep\fB); \fR .SH "ARGUMENTS" .TP \fB\fIcard\fB\fR the card instance .TP \fB\fIid\fB\fR the id string .TP \fB\fIdevice\fB\fR the device index (zero-based) .TP \fB\fIrhwdep\fB\fR the pointer to store the new hwdep instance .SH "DESCRIPTION" .PP Creates a new hwdep instance with the given index on the card. The callbacks (hwdep->ops) must be set on the returned instance after this call manually by the caller. .PP Returns zero if successful, or a negative error code on failure.