summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/imx-pcm-rpmsg.c
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2018-08-08 13:34:33 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:53:03 +0800
commit6b270ced20e40ffa32c46e5fa475138c5c5b01fd (patch)
treea3b936b6d077e720f1319dbc3f5a2b6febe50054 /sound/soc/fsl/imx-pcm-rpmsg.c
parent610f643cd35763a6e144075bc4a8f0a42e19a7f8 (diff)
MLK-19155: ASoC: fsl_rpmsg: fix the volume is low for S24_LE
The format send to M4 through rpmsg is wrong, that make the driver treat the data as S32_LE, it looks like data is right shift 8 bit. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> (cherry picked from commit 508550b70e80339d3d49594ffc23946dd80b0c82)
Diffstat (limited to 'sound/soc/fsl/imx-pcm-rpmsg.c')
-rw-r--r--sound/soc/fsl/imx-pcm-rpmsg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-pcm-rpmsg.c b/sound/soc/fsl/imx-pcm-rpmsg.c
index 03f184a458ec..4caf8326b738 100644
--- a/sound/soc/fsl/imx-pcm-rpmsg.c
+++ b/sound/soc/fsl/imx-pcm-rpmsg.c
@@ -61,7 +61,7 @@ static int imx_rpmsg_pcm_hw_params(struct snd_pcm_substream *substream,
if (params_format(params) == SNDRV_PCM_FORMAT_S16_LE)
rpmsg->send_msg.param.format = RPMSG_S16_LE;
- else if (params_format(params) == SNDRV_PCM_FORMAT_S24_3LE)
+ else if (params_format(params) == SNDRV_PCM_FORMAT_S24_LE)
rpmsg->send_msg.param.format = RPMSG_S24_LE;
else
rpmsg->send_msg.param.format = RPMSG_S32_LE;