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" 118 #define SND_USE_CASE_DEV_NONE "None" 119 #define SND_USE_CASE_DEV_SPEAKER "Speaker" 120 #define SND_USE_CASE_DEV_LINE "Line" 121 #define SND_USE_CASE_DEV_HEADPHONES "Headphones" 122 #define SND_USE_CASE_DEV_HEADSET "Headset" 123 #define SND_USE_CASE_DEV_HANDSET "Handset" 124 #define SND_USE_CASE_DEV_BLUETOOTH "Bluetooth" 125 #define SND_USE_CASE_DEV_EARPIECE "Earpiece" 126 #define SND_USE_CASE_DEV_SPDIF "SPDIF" 127 #define SND_USE_CASE_DEV_HDMI "HDMI" 149 #define SND_USE_CASE_MOD_CAPTURE_VOICE "Capture Voice" 150 #define SND_USE_CASE_MOD_CAPTURE_MUSIC "Capture Music" 151 #define SND_USE_CASE_MOD_PLAY_MUSIC "Play Music" 152 #define SND_USE_CASE_MOD_PLAY_VOICE "Play Voice" 153 #define SND_USE_CASE_MOD_PLAY_TONE "Play Tone" 154 #define SND_USE_CASE_MOD_ECHO_REF "Echo Reference" 166 #define SND_USE_CASE_TQ_MUSIC "Music" 167 #define SND_USE_CASE_TQ_VOICE "Voice" 168 #define SND_USE_CASE_TQ_TONES "Tones" 171 typedef struct snd_use_case_mgr snd_use_case_mgr_t; 218 const char *identifier,
219 const char **list[]);
373 const char *identifier,
388 const char *identifier,
414 const char *identifier,
440 const char *card_name);
473 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:171
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