[Previous] [Contents] [Next]

snd_ctl_hw_info()

Get information about a soundcard

Synopsis:

#include <sys/asoundlib.h>

int snd_ctl_hw_info( snd_ctl_t * handle, 
                     struct snd_ctl_hw_info * info );

Library:

libasound.so

Description:

The snd_ctl_hw_info() function fills the info structure with data about the soundcard selected by handle.

Returns:

Zero on success, or a negative value if an error occurs.

Errors:

-EINVAL
Invalid handle argument.

Examples:

See the example in Opening the mixer in the Controlling volume and balance chapter.

Classification:

ALSA

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

[Previous] [Contents] [Next]