00001 00011 #ifndef __GOBI_API_SWI_AUDIO_H__ 00012 #define __GOBI_API_SWI_AUDIO_H__ 00013 00014 #ifdef __cplusplus 00015 extern "C" { 00016 #endif 00017 00018 #define MAX_LEN_IFACE_TABLE 255 00019 00028 typedef struct 00029 { 00030 BYTE *pGenerator; 00031 } GetM2MAudioProfileReq; 00032 00064 typedef struct 00065 { 00066 BYTE Profile; 00067 BYTE EarMute; 00068 BYTE MicMute; 00069 BYTE Generator; 00070 BYTE Volume; 00071 BYTE CwtMute; 00072 } GetM2MAudioProfileResp; 00073 00090 ULONG SLQSGetM2MAudioProfile ( 00091 GetM2MAudioProfileReq *pGetM2MAudioProfileReq, 00092 GetM2MAudioProfileResp *pGetM2MAudioProfileResp ); 00093 00124 typedef struct 00125 { 00126 BYTE Profile; 00127 BYTE *pEarMute; 00128 BYTE *pMicMute; 00129 BYTE *pGenerator; 00130 BYTE *pVolume; 00131 BYTE *pCwtMute; 00132 } SetM2MAudioProfileReq; 00133 00147 ULONG SLQSSetM2MAudioProfile ( 00148 SetM2MAudioProfileReq *pSetM2MAudioProfileReq ); 00149 00161 typedef struct 00162 { 00163 BYTE Profile; 00164 BYTE Generator; 00165 } GetM2MAudioVolumeReq; 00166 00175 typedef struct 00176 { 00177 BYTE Level; 00178 } GetM2MAudioVolumeResp; 00179 00196 ULONG SLQSGetM2MAudioVolume ( 00197 GetM2MAudioVolumeReq *pGetM2MAudioVolumeReq, 00198 GetM2MAudioVolumeResp *pGetM2MAudioVolumeResp ); 00199 00215 typedef struct 00216 { 00217 BYTE Profile; 00218 BYTE Generator; 00219 BYTE Level; 00220 } SetM2MAudioVolumeReq; 00221 00235 ULONG SLQSSetM2MAudioVolume ( 00236 SetM2MAudioVolumeReq *pSetM2MAudioVolumeReq ); 00237 00250 typedef struct 00251 { 00252 BYTE iFaceTabLen; 00253 BYTE iFaceTab[MAX_LEN_IFACE_TABLE]; 00254 }PCMparams; 00255 00277 typedef struct 00278 { 00279 BYTE Profile; 00280 BYTE Device; 00281 BYTE PIFACEId; 00282 PCMparams *pPCMParams; 00283 }SetM2MAudioAVCFGReq; 00284 00298 ULONG SLQSSetM2MAudioAVCFG ( 00299 SetM2MAudioAVCFGReq *pSetM2MAudioAVCFGReq ); 00300 00312 typedef struct 00313 { 00314 BYTE Enable; 00315 } SetM2MAudioLPBKReq; 00316 00330 ULONG SLQSSetM2MAudioLPBK ( 00331 SetM2MAudioLPBKReq *pSetM2MAudioLPBKReq ); 00332 00343 ULONG SLQSSetM2MAudioNVDef ( ); 00344 00353 typedef struct 00354 { 00355 BYTE Profile; 00356 } GetM2MSpkrGainReq; 00357 00366 typedef struct 00367 { 00368 WORD Value; 00369 } GetM2MSpkrGainResp; 00370 00387 ULONG SLQSGetM2MSpkrGain ( 00388 GetM2MSpkrGainReq *pSpkrGainReq, 00389 GetM2MSpkrGainResp *pSpkrGainResp ); 00390 00403 typedef struct 00404 { 00405 BYTE Profile; 00406 WORD Value; 00407 } SetM2MSpkrGainReq; 00408 00422 ULONG SLQSSetM2MSpkrGain ( 00423 SetM2MSpkrGainReq *pSpkrGainReq ); 00424 00433 typedef struct 00434 { 00435 BYTE Profile; 00436 } GetM2MAVMuteReq; 00437 00455 typedef struct 00456 { 00457 BYTE EarMute; 00458 BYTE MicMute; 00459 BYTE CwtMute; 00460 } GetM2MAVMuteResp; 00461 00478 ULONG SLQSGetM2MAVMute ( 00479 GetM2MAVMuteReq *pGetM2MAVMuteReq, 00480 GetM2MAVMuteResp *pGetM2MAVMuteResp ); 00481 00501 typedef struct 00502 { 00503 BYTE Profile; 00504 BYTE EarMute; 00505 BYTE MicMute; 00506 BYTE *pCwtMute; 00507 } SetM2MAVMuteReq; 00508 00522 ULONG SLQSSetM2MAVMute ( SetM2MAVMuteReq *pSetM2MAVMuteReq ); 00523 00524 #ifdef __cplusplus 00525 } /* extern "C" { */ 00526 #endif 00527 00528 #endif /* __GOBI_API_SWI_AUDIO_H__ */