msm: audio: qdsp6v2: Add 4GV wb/nb support in mvs driver
Support for 4GV-wb mode and 4GV-nb mode in mvs driver
and add support for min-max rate.
Change-Id: Iacd33ecfbdf278eb59b3e662c725d21fb60e4ab3
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
diff --git a/include/linux/msm_audio_mvs.h b/include/linux/msm_audio_mvs.h
index 37a6ee7..c934aee 100644
--- a/include/linux/msm_audio_mvs.h
+++ b/include/linux/msm_audio_mvs.h
@@ -94,14 +94,30 @@
MVS_G729A_ERASURE
};
+struct min_max_rate {
+ uint32_t min_rate;
+ uint32_t max_rate;
+};
+
struct msm_audio_mvs_config {
uint32_t mvs_mode;
uint32_t rate_type;
+ struct min_max_rate min_max_rate;
uint32_t dtx_mode;
};
#define MVS_MAX_VOC_PKT_SIZE 640
+struct q6_msm_audio_mvs_frame {
+ union {
+ uint32_t frame_type;
+ uint32_t packet_rate;
+ } header;
+ uint32_t len;
+ uint8_t voc_pkt[MVS_MAX_VOC_PKT_SIZE];
+
+};
+
struct msm_audio_mvs_frame {
uint32_t frame_type;
uint32_t len;