From: Chancel Liu Date: Fri, 30 Sep 2022 06:44:38 +0000 (+0800) Subject: ASoC: imx-pcm-rpmsg: Multi-channel support for sound card based on rpmsg X-Git-Tag: v6.2-rc1~126^2^2~155^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bdc0f6ca1c079ba790e0e227cff6164feae90460;p=thirdparty%2Flinux.git 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 Acked-by: Shengjiu Wang Link: https://lore.kernel.org/r/20220930064441.2548505-5-chancel.liu@nxp.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/fsl/imx-pcm-rpmsg.c b/sound/soc/fsl/imx-pcm-rpmsg.c index 3157cd5a837e3..2f310994f7ee0 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; }