38 #ifndef __ALSA_USE_CASE_H 39 #define __ALSA_USE_CASE_H 45 #include <alsa/asoundlib.h> 100 #define SND_USE_CASE_VERB_INACTIVE "Inactive" 101 #define SND_USE_CASE_VERB_HIFI "HiFi" 102 #define SND_USE_CASE_VERB_HIFI_LOW_POWER "HiFi Low Power" 103 #define SND_USE_CASE_VERB_VOICE "Voice" 104 #define SND_USE_CASE_VERB_VOICE_LOW_POWER "Voice Low Power" 105 #define SND_USE_CASE_VERB_VOICECALL "Voice Call" 106 #define SND_USE_CASE_VERB_IP_VOICECALL "Voice Call IP" 107 #define SND_USE_CASE_VERB_ANALOG_RADIO "FM Analog Radio" 108 #define SND_USE_CASE_VERB_DIGITAL_RADIO "FM Digital Radio" 129 #define SND_USE_CASE_DEV_NONE "None" 130 #define SND_USE_CASE_DEV_SPEAKER "Speaker" 131 #define SND_USE_CASE_DEV_LINE "Line" 132 #define SND_USE_CASE_DEV_MIC "Mic" 133 #define SND_USE_CASE_DEV_HEADPHONES "Headphones" 134 #define SND_USE_CASE_DEV_HEADSET "Headset" 135 #define SND_USE_CASE_DEV_HANDSET "Handset" 136 #define SND_USE_CASE_DEV_BLUETOOTH "Bluetooth" 137 #define SND_USE_CASE_DEV_EARPIECE "Earpiece" 138 #define SND_USE_CASE_DEV_SPDIF "SPDIF" 139 #define SND_USE_CASE_DEV_HDMI "HDMI" 161 #define SND_USE_CASE_MOD_CAPTURE_VOICE "Capture Voice" 162 #define SND_USE_CASE_MOD_CAPTURE_MUSIC "Capture Music" 163 #define SND_USE_CASE_MOD_PLAY_MUSIC "Play Music" 164 #define SND_USE_CASE_MOD_PLAY_VOICE "Play Voice" 165 #define SND_USE_CASE_MOD_PLAY_TONE "Play Tone" 166 #define SND_USE_CASE_MOD_ECHO_REF "Echo Reference" 178 #define SND_USE_CASE_TQ_MUSIC "Music" 179 #define SND_USE_CASE_TQ_VOICE "Voice" 180 #define SND_USE_CASE_TQ_TONES "Tones" 183 typedef struct snd_use_case_mgr snd_use_case_mgr_t; 230 const char *identifier,
231 const char **list[]);
379 const char *identifier,
394 const char *identifier,
420 const char *identifier,
446 const char *card_name);
479 static __inline__
int snd_use_case_card_list(
const char **list[])
char * snd_use_case_identifier(const char *fmt,...)
Create an identifier.
Definition: main.c:108
int snd_use_case_free_list(const char *list[], int items)
Free a string list.
Definition: main.c:133
int snd_use_case_mgr_reload(snd_use_case_mgr_t *uc_mgr)
Reload and re-parse use case configuration files for sound card.
Definition: main.c:980
int snd_use_case_parse_selem_id(snd_mixer_selem_id_t *dst, const char *ucm_id, const char *value)
Parse mixer element identifier.
Definition: main.c:2114
struct _snd_ctl_elem_id snd_ctl_elem_id_t
Definition: control.h:57
int snd_use_case_mgr_reset(snd_use_case_mgr_t *uc_mgr)
Reset use case manager verb, device, modifier to deafult settings.
Definition: main.c:1058
int snd_use_case_geti(snd_use_case_mgr_t *uc_mgr, const char *identifier, long *value)
Get current - integer.
Definition: main.c:1769
int snd_use_case_mgr_open(snd_use_case_mgr_t **uc_mgr, const char *card_name)
Open and initialise use case core for sound card.
Definition: main.c:935
struct snd_use_case_mgr snd_use_case_mgr_t
Definition: use-case.h:183
int snd_use_case_set(snd_use_case_mgr_t *uc_mgr, const char *identifier, const char *value)
Set new.
Definition: main.c:2031
struct _snd_mixer_selem_id snd_mixer_selem_id_t
Definition: mixer.h:219
int snd_use_case_parse_ctl_elem_id(snd_ctl_elem_id_t *dst, const char *ucm_id, const char *value)
Parse control element identifier.
Definition: main.c:2082
int snd_use_case_mgr_close(snd_use_case_mgr_t *uc_mgr)
Close use case manager.
Definition: main.c:1005
int snd_use_case_get(snd_use_case_mgr_t *uc_mgr, const char *identifier, const char **value)
Get current - string.
Definition: main.c:1673
int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, const char *identifier, const char **list[])
Obtain a list of entries.
Definition: main.c:1501