blob: 6788b7722df7287995a73ac11528e31e3d6eebe8 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001
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.libdd93d52023-05-12 07:10:14 -070011#include <linux/volte_drv.h>
lh9ed821d2023-04-07 01:36:19 -070012
xf.libdd93d52023-05-12 07:10:14 -070013#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;
32int alsa_voice_open(int vmode);
33int 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;
lh9ed821d2023-04-07 01:36:19 -070052 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