hal: Add support for compressed voip
Add support to enable voip calls using compressed
audio formats.
Change-Id: If20493b75befbcc56945e4309c8f01384948a7b5
diff --git a/hal/audio_hw.h b/hal/audio_hw.h
index d682366..9dca5c1 100644
--- a/hal/audio_hw.h
+++ b/hal/audio_hw.h
@@ -74,6 +74,7 @@
USECASE_VOICE2_CALL,
USECASE_VOLTE_CALL,
USECASE_QCHAT_CALL,
+ USECASE_COMPRESS_VOIP_CALL,
USECASE_INCALL_REC_UPLINK,
USECASE_INCALL_REC_DOWNLINK,
@@ -168,6 +169,7 @@
audio_usecase_t usecase;
bool enable_aec;
bool enable_ns;
+ audio_format_t format;
struct audio_device *dev;
};
@@ -175,7 +177,8 @@
typedef enum {
PCM_PLAYBACK,
PCM_CAPTURE,
- VOICE_CALL
+ VOICE_CALL,
+ VOIP_CALL
} usecase_type_t;
union stream_ptr {