audio_manager_snd_pcm_open_name()

Open a PCM channel with a given audio type and a given name of the audio path.

Synopsis:

#include <audio/audio_manager_routing.h>
 
int audio_manager_snd_pcm_open_name(audio_manager_audio_type_t type, snd_pcm_t **handle, unsigned int *audioman_handle, char *name, int mode)

Arguments:

type

The audio type of the PCM channel being allocated.

handle

The handle of the PCM channel opened.

audioman_handle

The audio manager handle allocated to the PCM channel.

name

The name of the audio path to be used to open the PCM channel.

mode

The PCM channel mode defined in asoundlib.h.

Library:

libaudio_manager

Description:

The audio_manager_snd_pcm_open_name() function combines the snd_pcm_open_name() and audio_manager_get_handle() functions and allows the allocation a specific audio type PCM channel in one step.

Returns:

EOK upon success, negative errno upon failure.