summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_rpmsg_i2s.h
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@freescale.com>2017-02-24 11:53:46 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:52:53 +0800
commit5d8c7ea7ce3e6f36d26e5125f5e8e13948c2fb83 (patch)
tree0466945443f341855fc390db0e6cd8097d002c80 /sound/soc/fsl/fsl_rpmsg_i2s.h
parentc040763b306ba030c4213e9a927038e9e217b885 (diff)
MLK-14258: ASoC: imx-pcm-rpmsg: sync sample rate with tx and rx
In suspend and resume, the M4 side will reset hw parameter for tx and rx, when only tx is working, the parameter of rx is a old value, which will cause the parameter is not sync with tx and rx. currently the M4 audio can only work in sync mode, so set both parameter in same time. Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Diffstat (limited to 'sound/soc/fsl/fsl_rpmsg_i2s.h')
-rw-r--r--sound/soc/fsl/fsl_rpmsg_i2s.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_rpmsg_i2s.h b/sound/soc/fsl/fsl_rpmsg_i2s.h
index 0fcc80de953f..259cb632630f 100644
--- a/sound/soc/fsl/fsl_rpmsg_i2s.h
+++ b/sound/soc/fsl/fsl_rpmsg_i2s.h
@@ -243,6 +243,13 @@
#define I2S_RESP_SUCCESS 0x2
#define I2S_RESP_FAILED 0x3
+#define RPMSG_S16_LE 0x0
+#define RPMSG_S24_LE 0x1
+
+#define RPMSG_CH_LEFT 0x0
+#define RPMSG_CH_RIGHT 0x1
+#define RPMSG_CH_STEREO 0x2
+
struct i2s_param_s {
unsigned char audioindex;
unsigned char format;