exynos: audiohal_comv1: Adapt secril for audiohal_comv1
Change-Id: Ie578d3d237bc3a000023691ece2ac261a76e0c22
Signed-off-by: Francescodario Cuzzocrea <bosconovic@gmail.com>
diff --git a/libaudio/audiohal_comv1/odm_specific/voice_definition.h b/libaudio/audiohal_comv1/odm_specific/voice_definition.h
index 3a54768..b849e7c 100644
--- a/libaudio/audiohal_comv1/odm_specific/voice_definition.h
+++ b/libaudio/audiohal_comv1/odm_specific/voice_definition.h
@@ -37,6 +37,11 @@
#define TTY_MODE_HCO 0x00000080
#define TTY_MODE_CLEAR 0xFFFFFF0F
+#define TTY_MODE_OFF_RIL 0
+#define TTY_MODE_FULL_RIL 1
+#define TTY_MODE_HCO_RIL 2
+#define TTY_MODE_VCO_RIL 3
+
#define HAC_MODE_OFF 0x00000100
#define HAC_MODE_ON 0x00000200
#define HAC_MODE_CLEAR 0xFFFFF0FF
diff --git a/libaudio/audiohal_comv1/odm_specific/voice_manager.h b/libaudio/audiohal_comv1/odm_specific/voice_manager.h
index cd9e4b9..0f80099 100644
--- a/libaudio/audiohal_comv1/odm_specific/voice_manager.h
+++ b/libaudio/audiohal_comv1/odm_specific/voice_manager.h
@@ -116,6 +116,7 @@
int voice_get_cur_indevice_id(struct voice_manager *voice);
bool voice_get_mic_mute(struct voice_manager *voice);
int voice_get_volume_index(struct voice_manager *voice, float volume);
+int voice_set_tty_mode(struct voice_manager *voice, int ttymode);
/* Other Functions */
int voice_set_loopback_device(struct voice_manager *voice, int mode, int rx_dev, int tx_dev);
diff --git a/libaudio/audiohal_comv1/odm_specific/voice_manager_sec.c b/libaudio/audiohal_comv1/odm_specific/voice_manager_sec.c
index 4269990..65aa9a4 100644
--- a/libaudio/audiohal_comv1/odm_specific/voice_manager_sec.c
+++ b/libaudio/audiohal_comv1/odm_specific/voice_manager_sec.c
@@ -440,7 +440,7 @@
return ;
}
-struct voice_manager* voice_init(void)
+struct voice_manager* voice_init(struct audio_device *adev)
{
struct voice_manager *voice = NULL;
char property[PROPERTY_VALUE_MAX];