lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright (C) 2019 ZTE, China |
| 4 | * |
| 5 | * This is the header file for the voice lib. |
| 6 | * |
| 7 | */ |
| 8 | |
| 9 | #ifndef __VOICE_LIB_H |
| 10 | #define __VOICE_LIB_H |
xf.li | bdd93d5 | 2023-05-12 07:10:14 -0700 | [diff] [blame] | 11 | #include <linux/volte_drv.h> |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 12 | |
xf.li | bdd93d5 | 2023-05-12 07:10:14 -0700 | [diff] [blame] | 13 | #define AVOICE_TEAK_2G_3G_DEV_NUM 2 |
| 14 | #define AVOICE_SOFT_3G_DEV_NUM 4 |
| 15 | #define AVOICE_4G_DEV_NUM 1 |
| 16 | #define AVOICE_5G_DEV_NUM 1 |
| 17 | |
| 18 | #ifdef _USE_VOICE_ALSA |
| 19 | |
| 20 | |
| 21 | typedef enum |
| 22 | { |
| 23 | AVOICE_TEAK_2G_3G = 0, |
| 24 | AVOICE_SOFT_3G_NB, |
| 25 | AVOICE_SOFT_3G_WB, |
| 26 | AVOICE_4G_NB, |
| 27 | AVOICE_4G_WB, |
| 28 | AVOICE_5G_NB, |
| 29 | AVOICE_5G_WB, |
| 30 | MAX_AVOICE_MODE |
| 31 | }T_Alsa_Voice_Mode; |
| 32 | int alsa_voice_open(int vmode); |
| 33 | int alsa_voice_close(int vmode); |
| 34 | |
| 35 | |
| 36 | #endif |
| 37 | |
| 38 | /* Voice process channel selection. */ |
| 39 | typedef enum |
| 40 | { |
| 41 | VP_PATH_HANDSET = 0, |
| 42 | VP_PATH_SPEAKER, |
| 43 | VP_PATH_HEADSET, |
| 44 | VP_PATH_BLUETOOTH, |
| 45 | VP_PATH_BLUETOOTH_NO_NR, |
| 46 | VP_PATH_HSANDSPK, |
| 47 | |
| 48 | VP_PATH_OFF = 255, |
| 49 | |
| 50 | MAX_VP_PATH = VP_PATH_OFF |
| 51 | } T_ZDrv_VpPath; |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 52 | int voice_close(T_Voice_Para *para); |
| 53 | int voice_open(T_Voice_Para *para); |
| 54 | int voice_Vploop(int *path); |
| 55 | int zDrvVolte_PreOpen(T_ZDrvVolte_Cfg *cfgParam); |
| 56 | void zDrvVolte_PreClose(void); |
| 57 | |
| 58 | #endif |