00001
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef __ALSA_USE_CASE_H
00039 #define __ALSA_USE_CASE_H
00040
00041 #ifdef __cplusplus
00042 extern "C" {
00043 #endif
00044
00093
00094
00095
00096
00097
00098
00099
00100 #define SND_USE_CASE_VERB_INACTIVE "Inactive"
00101 #define SND_USE_CASE_VERB_HIFI "HiFi"
00102 #define SND_USE_CASE_VERB_HIFI_LOW_POWER "HiFi Low Power"
00103 #define SND_USE_CASE_VERB_VOICE "Voice"
00104 #define SND_USE_CASE_VERB_VOICE_LOW_POWER "Voice Low Power"
00105 #define SND_USE_CASE_VERB_VOICECALL "Voice Call"
00106 #define SND_USE_CASE_VERB_IP_VOICECALL "Voice Call IP"
00107 #define SND_USE_CASE_VERB_ANALOG_RADIO "FM Analog Radio"
00108 #define SND_USE_CASE_VERB_DIGITAL_RADIO "FM Digital Radio"
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118 #define SND_USE_CASE_DEV_NONE "None"
00119 #define SND_USE_CASE_DEV_SPEAKER "Speaker"
00120 #define SND_USE_CASE_DEV_LINE "Line"
00121 #define SND_USE_CASE_DEV_HEADPHONES "Headphones"
00122 #define SND_USE_CASE_DEV_HEADSET "Headset"
00123 #define SND_USE_CASE_DEV_HANDSET "Handset"
00124 #define SND_USE_CASE_DEV_BLUETOOTH "Bluetooth"
00125 #define SND_USE_CASE_DEV_EARPIECE "Earpiece"
00126 #define SND_USE_CASE_DEV_SPDIF "SPDIF"
00127 #define SND_USE_CASE_DEV_HDMI "HDMI"
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149 #define SND_USE_CASE_MOD_CAPTURE_VOICE "Capture Voice"
00150 #define SND_USE_CASE_MOD_CAPTURE_MUSIC "Capture Music"
00151 #define SND_USE_CASE_MOD_PLAY_MUSIC "Play Music"
00152 #define SND_USE_CASE_MOD_PLAY_VOICE "Play Voice"
00153 #define SND_USE_CASE_MOD_PLAY_TONE "Play Tone"
00154 #define SND_USE_CASE_MOD_ECHO_REF "Echo Reference"
00155
00156
00157
00166 #define SND_USE_CASE_TQ_MUSIC "Music"
00167 #define SND_USE_CASE_TQ_VOICE "Voice"
00168 #define SND_USE_CASE_TQ_TONES "Tones"
00171 typedef struct snd_use_case_mgr snd_use_case_mgr_t;
00172
00179 char *snd_use_case_identifier(const char *fmt, ...);
00180
00187 int snd_use_case_free_list(const char *list[], int items);
00188
00215 int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
00216 const char *identifier,
00217 const char **list[]);
00218
00219
00277 int snd_use_case_get(snd_use_case_mgr_t *uc_mgr,
00278 const char *identifier,
00279 const char **value);
00280
00292 int snd_use_case_geti(snd_use_case_mgr_t *uc_mgr,
00293 const char *identifier,
00294 long *value);
00295
00318 int snd_use_case_set(snd_use_case_mgr_t *uc_mgr,
00319 const char *identifier,
00320 const char *value);
00321
00328 int snd_use_case_mgr_open(snd_use_case_mgr_t **uc_mgr, const char *card_name);
00329
00330
00336 int snd_use_case_mgr_reload(snd_use_case_mgr_t *uc_mgr);
00337
00343 int snd_use_case_mgr_close(snd_use_case_mgr_t *uc_mgr);
00344
00350 int snd_use_case_mgr_reset(snd_use_case_mgr_t *uc_mgr);
00351
00352
00353
00354
00355
00361 static __inline__ int snd_use_case_card_list(const char **list[])
00362 {
00363 return snd_use_case_get_list(NULL, NULL, list);
00364 }
00365
00372 static __inline__ int snd_use_case_verb_list(snd_use_case_mgr_t *uc_mgr,
00373 const char **list[])
00374 {
00375 return snd_use_case_get_list(uc_mgr, "_verbs", list);
00376 }
00377
00382 #ifdef __cplusplus
00383 }
00384 #endif
00385
00386 #endif