diff options
author | Chancel Liu <chancel.liu@nxp.com> | 2022-09-30 08:44:38 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-10-17 13:48:15 +0200 |
commit | bdc0f6ca1c079ba790e0e227cff6164feae90460 (patch) | |
tree | 7cbcc1dcfcf52fa3743f804ace6f9fefd81df196 /sound/soc/fsl/imx-pcm-rpmsg.c | |
parent | ASoC: imx-pcm-rpmsg: Register different platform drivers (diff) | |
download | linux-bdc0f6ca1c079ba790e0e227cff6164feae90460.tar.xz linux-bdc0f6ca1c079ba790e0e227cff6164feae90460.zip |
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/imx-pcm-rpmsg.c')
-rw-r--r-- | sound/soc/fsl/imx-pcm-rpmsg.c | 2 |
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; } |