.\" 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_FREE" "9" "09 October 2005" "" ""
.SH NAME
snd_device_free \- release the device from the card
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int snd_device_free (snd_card_t * \fIcard\fB, void * \fIdevice_data\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIcard\fB\fR
the card instance
.TP
\fB\fIdevice_data\fB\fR
the data pointer to release
.SH "DESCRIPTION"
.PP
Removes the device from the list on the card and invokes the
callback, dev_unregister or dev_free, corresponding to the state.
Then release the device.
.PP
Returns zero if successful, or a negative error code on failure or if the
device not found.