summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRahul Sharma <sharah@codeaurora.org>2016-12-09 00:45:44 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-01-17 10:26:18 -0800
commit396b064d4b94c33893be677c8f8feb1e341b6496 (patch)
treec0c88bd07bf171b834875385bf86e19413b7e39a /include
parent4b3736890b25b8af6a8468f13ef8a310c7468a92 (diff)
ASoC: msm: qdsp6v2: allow mic selection for multichannel ec
Allow MIC channel selection as the primary channel requested by the application on Multichannel Echo Cancellation module. CRs-fixed: 1102004 Change-Id: I94ba0f3171b4c7ebcc9936ca4f192f68de7be034 Signed-off-by: Rahul Sharma <sharah@codeaurora.org> Signed-off-by: Derek Chen <chenche@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/sound/apr_audio-v2.h17
-rw-r--r--include/sound/q6adm-v2.h3
2 files changed, 20 insertions, 0 deletions
diff --git a/include/sound/apr_audio-v2.h b/include/sound/apr_audio-v2.h
index ceba9f7d759a..e6218b8ecc88 100644
--- a/include/sound/apr_audio-v2.h
+++ b/include/sound/apr_audio-v2.h
@@ -10032,4 +10032,21 @@ struct adm_param_fluence_sourcetracking_t {
#define AUDPROC_PARAM_ID_AUDIOSPHERE_DESIGN_MULTICHANNEL_INPUT 0x0001091D
#define AUDPROC_PARAM_ID_AUDIOSPHERE_OPERATING_INPUT_MEDIA_INFO 0x0001091E
+
+#define AUDPROC_MODULE_ID_VOICE_TX_SECNS 0x10027059
+#define AUDPROC_PARAM_IDX_SEC_PRIMARY_MIC_CH 0x10014444
+
+struct admx_sec_primary_mic_ch {
+ uint16_t version;
+ uint16_t reserved;
+ uint16_t sec_primary_mic_ch;
+ uint16_t reserved1;
+} __packed;
+
+
+struct adm_set_sec_primary_ch_params {
+ struct adm_cmd_set_pp_params_v5 params;
+ struct adm_param_data_v5 data;
+ struct admx_sec_primary_mic_ch sec_primary_mic_ch_data;
+} __packed;
#endif /*_APR_AUDIO_V2_H_ */
diff --git a/include/sound/q6adm-v2.h b/include/sound/q6adm-v2.h
index 47e8e2a73920..8c7da3b9838d 100644
--- a/include/sound/q6adm-v2.h
+++ b/include/sound/q6adm-v2.h
@@ -138,6 +138,9 @@ int adm_set_softvolume(int port_id, int copp_idx,
int adm_set_mic_gain(int port_id, int copp_idx, int volume);
+int adm_send_set_multichannel_ec_primary_mic_ch(int port_id, int copp_idx,
+ int primary_mic_ch);
+
int adm_param_enable(int port_id, int copp_idx, int module_id, int enable);
int adm_send_calibration(int port_id, int copp_idx, int path, int perf_mode,