summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_dsp.h
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@nxp.com>2018-10-04 11:17:35 +0300
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:51:56 +0800
commit1aeb3e481a292ae78906e5cb0f4f0d8b57f05ad3 (patch)
tree55b84c557d5306c12f30c4650c6b5f603be9b6e2 /sound/soc/fsl/fsl_dsp.h
parent9e49bf4e07ed80f9038c5a3e60dfa466a8270220 (diff)
MLK-18497-3: ASoC: fsl: dsp_proxy: Add new send/recv helpers
This commit adds 3 new function helpers for sending messages to DSP framework and waiting for response. While at it cleanup spaces around struct client fields. Reviewed-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com> Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_dsp.h')
-rw-r--r--sound/soc/fsl/fsl_dsp.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/sound/soc/fsl/fsl_dsp.h b/sound/soc/fsl/fsl_dsp.h
index f39a11dbbf6b..b4ab6fc1a9d4 100644
--- a/sound/soc/fsl/fsl_dsp.h
+++ b/sound/soc/fsl/fsl_dsp.h
@@ -22,22 +22,21 @@ struct xf_client {
struct xf_proxy *proxy;
/* ...allocated proxy client id */
- u32 id;
+ u32 id;
/* ...pending response queue */
- struct xf_msg_queue queue;
-
+ struct xf_msg_queue queue;
/* ...response waiting queue */
- wait_queue_head_t wait;
+ wait_queue_head_t wait;
/* ...virtual memory mapping */
- unsigned long vm_start;
-
+ unsigned long vm_start;
/* ...counter of memory mappings (no real use of it yet - tbd) */
- atomic_t vm_use;
+ atomic_t vm_use;
/* ...global structure pointer */
- void *global;
+ void *global;
+ struct xf_message m;
};
union xf_client_link {