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.
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
#ifndef __SND_AR_TOKENS_H__
|
||||
#define __SND_AR_TOKENS_H__
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
#define APM_SUB_GRAPH_PERF_MODE_LOW_POWER 0x1
|
||||
#define APM_SUB_GRAPH_PERF_MODE_LOW_LATENCY 0x2
|
||||
|
||||
@@ -118,6 +120,12 @@ enum ar_event_types {
|
||||
* LPAIF_WSA = 2,
|
||||
* LPAIF_VA = 3,
|
||||
* LPAIF_AXI = 4
|
||||
* Possible values for MI2S
|
||||
* I2S_INTF_TYPE_PRIMARY = 0,
|
||||
* I2S_INTF_TYPE_SECONDARY = 1,
|
||||
* I2S_INTF_TYPE_TERTIARY = 2,
|
||||
* I2S_INTF_TYPE_QUATERNARY = 3,
|
||||
* I2S_INTF_TYPE_QUINARY = 4,
|
||||
*
|
||||
* %AR_TKN_U32_MODULE_FMT_INTERLEAVE: PCM Interleaving
|
||||
* PCM_INTERLEAVED = 1,
|
||||
@@ -184,8 +192,8 @@ enum ar_event_types {
|
||||
#define AR_TKN_U32_MODULE_INSTANCE_ID 201
|
||||
#define AR_TKN_U32_MODULE_MAX_IP_PORTS 202
|
||||
#define AR_TKN_U32_MODULE_MAX_OP_PORTS 203
|
||||
#define AR_TKN_U32_MODULE_IN_PORTS 204
|
||||
#define AR_TKN_U32_MODULE_OUT_PORTS 205
|
||||
#define AR_TKN_U32_MODULE_IN_PORTS 204 /* deprecated */
|
||||
#define AR_TKN_U32_MODULE_OUT_PORTS 205 /* deprecated */
|
||||
#define AR_TKN_U32_MODULE_SRC_OP_PORT_ID 206
|
||||
#define AR_TKN_U32_MODULE_DST_IN_PORT_ID 207
|
||||
#define AR_TKN_U32_MODULE_SRC_INSTANCE_ID 208
|
||||
@@ -232,4 +240,12 @@ enum ar_event_types {
|
||||
#define AR_TKN_U32_MODULE_LOG_TAP_POINT_ID 260
|
||||
#define AR_TKN_U32_MODULE_LOG_MODE 261
|
||||
|
||||
#define SND_SOC_AR_TPLG_MODULE_CFG_TYPE 0x01001006
|
||||
struct audioreach_module_priv_data {
|
||||
__le32 size; /* size in bytes of the array, including all elements */
|
||||
__le32 type; /* SND_SOC_AR_TPLG_MODULE_CFG_TYPE */
|
||||
__le32 priv[2]; /* Private data for future expansion */
|
||||
__le32 data[0]; /* config data */
|
||||
};
|
||||
|
||||
#endif /* __SND_AR_TOKENS_H__ */
|
||||
|
||||
Reference in New Issue
Block a user