From 5d8c7ea7ce3e6f36d26e5125f5e8e13948c2fb83 Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Fri, 24 Feb 2017 11:53:46 +0800 Subject: 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 --- sound/soc/fsl/fsl_rpmsg_i2s.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sound/soc/fsl/fsl_rpmsg_i2s.h') 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; -- cgit v1.2.3