Create a handle and open a connection to an AMP functional module specified by name
#include <sys/asoundlib.h> int snd_afm_open_name( snd_afm_t **handle, char *filename );
(QNX Software Development Platform 6.6 io-audio patch [patch ID 4510] or later) The snd_afm_open_name() function creates a handle and opens a connection to the named AMP Functional Module (AFM). AFMs are installed in /dev/snd and their names are in the form afmCxDy, where x is the card number, and y is the device number. The card number depends on the order in which the cards are specified in the io-audio .conf file. Each AFM also has a symbolic name associated with (e.g., icc, voice, anc, and ese).
Using names for AFMs (snd_afm_open_name()) is preferred to using numbers (snd_afm_open()).
EOK on success, or a negative errno upon failure. The errno values are available in the errno.h file.
This function can also return the negative of the values that open() can assign to errno.
QNX Neutrino
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | No |