History

ASoC: qcom: audioreach: cleanup and calibration

Merge series from srinivas.kandagatla@oss.qualcomm.com: Sorry to resend this series once again, as some of the patches seems to be dropped/rejected by email client from previous send. This patchset: - cleans up some of the audioreach tokens which are unused - adds missing documentation - add support for static calibration support which is required for ECNS an speaker protection support. Tested this with Single Mic ECNS on SM8450 platform.

Mark Brown committed 1 year ago

Commit 132e0982 parents 9963b1f da9881d4 files · +86 −20Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/sound/snd_ar_tokens.h+18−2
@@ -3,6 +3,8 @@ · 2 unmodified lines
33 #ifndef __SND_AR_TOKENS_H__
44 #define __SND_AR_TOKENS_H__
55
6+#include <linux/types.h>
7+
68 #define APM_SUB_GRAPH_PERF_MODE_LOW_POWER 0x1
79 #define APM_SUB_GRAPH_PERF_MODE_LOW_LATENCY 0x2
810
@@ -118,6 +120,12 @@ enum ar_event_types { · 109 unmodified lines
118120 * LPAIF_WSA = 2,
119121 * LPAIF_VA = 3,
120122 * LPAIF_AXI = 4
123+ * Possible values for MI2S
124+ * I2S_INTF_TYPE_PRIMARY = 0,
125+ * I2S_INTF_TYPE_SECONDARY = 1,
126+ * I2S_INTF_TYPE_TERTIARY = 2,
127+ * I2S_INTF_TYPE_QUATERNARY = 3,
128+ * I2S_INTF_TYPE_QUINARY = 4,
121129 *
122130 * %AR_TKN_U32_MODULE_FMT_INTERLEAVE: PCM Interleaving
123131 * PCM_INTERLEAVED = 1,
@@ -184,8 +192,8 @@ enum ar_event_types { · 60 unmodified lines
184192 #define AR_TKN_U32_MODULE_INSTANCE_ID 201
185193 #define AR_TKN_U32_MODULE_MAX_IP_PORTS 202
186194 #define AR_TKN_U32_MODULE_MAX_OP_PORTS 203
187−#define AR_TKN_U32_MODULE_IN_PORTS 204
188−#define AR_TKN_U32_MODULE_OUT_PORTS 205
195+#define AR_TKN_U32_MODULE_IN_PORTS 204 /* deprecated */
196+#define AR_TKN_U32_MODULE_OUT_PORTS 205 /* deprecated */
189197 #define AR_TKN_U32_MODULE_SRC_OP_PORT_ID 206
190198 #define AR_TKN_U32_MODULE_DST_IN_PORT_ID 207
191199 #define AR_TKN_U32_MODULE_SRC_INSTANCE_ID 208
@@ -232,4 +240,12 @@ enum ar_event_types { · 40 unmodified lines
232240 #define AR_TKN_U32_MODULE_LOG_TAP_POINT_ID 260
233241 #define AR_TKN_U32_MODULE_LOG_MODE 261
234242
243+#define SND_SOC_AR_TPLG_MODULE_CFG_TYPE 0x01001006
244+struct audioreach_module_priv_data {
245+ __le32 size; /* size in bytes of the array, including all elements */
246+ __le32 type; /* SND_SOC_AR_TPLG_MODULE_CFG_TYPE */
247+ __le32 priv[2]; /* Private data for future expansion */
248+ __le32 data[0]; /* config data */
249+};
250+
235251 #endif /* __SND_AR_TOKENS_H__ */