summaryrefslogtreecommitdiff
path: root/sound/soc/fsl
diff options
context:
space:
mode:
authorChancel Liu <chancel.liu@nxp.com>2022-09-30 09:44:38 +0300
committerMark Brown <broonie@kernel.org>2022-10-17 14:48:15 +0300
commitbdc0f6ca1c079ba790e0e227cff6164feae90460 (patch)
tree7cbcc1dcfcf52fa3743f804ace6f9fefd81df196 /sound/soc/fsl
parentb2c2a947b3412f6edb9a86f5b12d6420958e67ba (diff)
downloadlinux-bdc0f6ca1c079ba790e0e227cff6164feae90460.tar.xz
ASoC: imx-pcm-rpmsg: Multi-channel support for sound card based on rpmsg
Some sound card based on rpmsg may support multi-channel. The number of channels can be sent to Cortex-M in rpmsg for process. Signed-off-by: Chancel Liu <chancel.liu@nxp.com> Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com> Link: https://lore.kernel.org/r/20220930064441.2548505-5-chancel.liu@nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl')
-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 3157cd5a837e..2f310994f7ee 100644
--- a/sound/soc/fsl/imx-pcm-rpmsg.c
+++ b/sound/soc/fsl/imx-pcm-rpmsg.c
@@ -178,7 +178,7 @@ static int imx_rpmsg_pcm_hw_params(struct snd_soc_component *component,
msg->s_msg.param.channels = RPMSG_CH_STEREO;
break;
default:
- ret = -EINVAL;
+ msg->s_msg.param.channels = params_channels(params);
break;
}