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"
132 #define SND_USE_CASE_DEV_NONE "None"
133 #define SND_USE_CASE_DEV_SPEAKER "Speaker"
134 #define SND_USE_CASE_DEV_LINE "Line"
135 #define SND_USE_CASE_DEV_MIC "Mic"
136 #define SND_USE_CASE_DEV_HEADPHONES "Headphones"
137 #define SND_USE_CASE_DEV_HEADSET "Headset"
138 #define SND_USE_CASE_DEV_HANDSET "Handset"
139 #define SND_USE_CASE_DEV_BLUETOOTH "Bluetooth"
140 #define SND_USE_CASE_DEV_EARPIECE "Earpiece"
141 #define SND_USE_CASE_DEV_SPDIF "SPDIF"
142 #define SND_USE_CASE_DEV_HDMI "HDMI"
143 #define SND_USE_CASE_DEV_USB "USB"
144 #define SND_USE_CASE_DEV_DIRECT "Direct"
173 #define SND_USE_CASE_MOD_CAPTURE_VOICE "Capture Voice"
174 #define SND_USE_CASE_MOD_CAPTURE_MUSIC "Capture Music"
175 #define SND_USE_CASE_MOD_PLAY_MUSIC "Play Music"
176 #define SND_USE_CASE_MOD_PLAY_VOICE "Play Voice"
177 #define SND_USE_CASE_MOD_PLAY_TONE "Play Tone"
178 #define SND_USE_CASE_MOD_ECHO_REF "Echo Reference"
190 #define SND_USE_CASE_TQ_MUSIC "Music"
191 #define SND_USE_CASE_TQ_VOICE "Voice"
192 #define SND_USE_CASE_TQ_TONES "Tones"
242 const char *identifier,
243 const char **list[]);
413 const char *identifier,
428 const char *identifier,
459 const char *identifier,
485 const char *card_name);
518 static __inline__
int snd_use_case_card_list(
const char **list[])
struct _snd_ctl_elem_id snd_ctl_elem_id_t
Definition: control.h:82
struct _snd_mixer_selem_id snd_mixer_selem_id_t
Definition: mixer.h:219
int snd_use_case_free_list(const char *list[], int items)
Free a string list.
Definition: main.c:153
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:1646
char * snd_use_case_identifier(const char *fmt,...)
Create an identifier.
Definition: main.c:128
int snd_use_case_geti(snd_use_case_mgr_t *uc_mgr, const char *identifier, long *value)
Get current - integer.
Definition: main.c:2399
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:1508
int snd_use_case_get(snd_use_case_mgr_t *uc_mgr, const char *identifier, const char **value)
Get current - string.
Definition: main.c:2287
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:2077
int snd_use_case_mgr_close(snd_use_case_mgr_t *uc_mgr)
Close use case manager.
Definition: main.c:1598
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:2748
struct snd_use_case_mgr snd_use_case_mgr_t
Definition: use-case.h:195
int snd_use_case_set(snd_use_case_mgr_t *uc_mgr, const char *identifier, const char *value)
Set new.
Definition: main.c:2691
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:2780
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:1574