snd_ctl_close()

Close a control handle

Synopsis:

#include <sys/asoundlib.h>

int snd_ctl_close( snd_ctl_t *handle );

Arguments:

handle
The handle for the control connection to the card. This must be a handle created by snd_ctl_open().

Library:

libasound.so

Description:

The snd_ctl_close() function frees all the resources allocated with the control handle and closes the connection to the control interface.

Returns:

Zero on success, or a negative value on error.

Errors:

-EBADF
Invalid file descriptor. Your handle may be corrupt.
-EINTR
The close() call was interrupted by a signal.
-EINVAL
Invalid handle argument.
-EIO
An I/O error occurred while updating the directory information.
-ENOSPC
A previous buffered write call has failed.

Classification:

QNX Neutrino

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

snd_ctl_open()