summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVarun Balaraj <varunb@codeaurora.org>2017-07-13 13:42:12 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-07-13 01:47:39 -0700
commita48f734c3b1655d532a3c4795729cc13a7faddd6 (patch)
tree93424b2f3ce48337d8c1c36521ea3db6015d6655 /include
parent701ac49eb764851f08de0ca5ce46ed355fc6ee9c (diff)
ASoC: msm: Support mixer controls for Pan/scale & downmix
Add changes to register and receive parameters for pan/scale and downmix operations. Change-Id: If0e747304595f9ed3bd19b25e3f4eab2db382a67 Signed-off-by: Varun Balaraj <varunb@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/sound/apr_audio-v2.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/sound/apr_audio-v2.h b/include/sound/apr_audio-v2.h
index 00cba88b6082..a1d8b04d08ac 100644
--- a/include/sound/apr_audio-v2.h
+++ b/include/sound/apr_audio-v2.h
@@ -625,11 +625,30 @@ struct audproc_softvolume_params {
*/
#define AUDPROC_PARAM_ID_MFC_OUTPUT_MEDIA_FORMAT 0x00010913
+/* ID of the Channel Mixer module, which is used to configure
+ * channel-mixer related parameters.
+ * This module supports the AUDPROC_CHMIXER_PARAM_ID_COEFF parameter ID.
+ */
+#define AUDPROC_MODULE_ID_CHMIXER 0x00010341
+
/* ID of the Coefficient parameter used by AUDPROC_MODULE_ID_CHMIXER to
*configure the channel mixer weighting coefficients.
*/
#define AUDPROC_CHMIXER_PARAM_ID_COEFF 0x00010342
+/* Payload of the per-session, per-device parameter data of the
+ * #ADM_CMD_SET_PSPD_MTMX_STRTR_PARAMS_V5 command or
+ * #ADM_CMD_SET_PSPD_MTMX_STRTR_PARAMS_V6 command.
+ * Immediately following this structure are param_size bytes of parameter
+ * data. The structure and size depend on the module_id/param_id pair.
+ */
+struct adm_pspd_param_data_t {
+ uint32_t module_id;
+ uint32_t param_id;
+ uint16_t param_size;
+ uint16_t reserved;
+} __packed;
+
struct audproc_mfc_output_media_fmt {
struct adm_cmd_set_pp_params_v5 params;
struct adm_param_data_v5 data;