aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChancel Liu <[email protected]>2022-09-30 14:44:38 +0800
committerMark Brown <[email protected]>2022-10-17 12:48:15 +0100
commitbdc0f6ca1c079ba790e0e227cff6164feae90460 (patch)
tree7cbcc1dcfcf52fa3743f804ace6f9fefd81df196
parentb2c2a947b3412f6edb9a86f5b12d6420958e67ba (diff)
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 <[email protected]> Acked-by: Shengjiu Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
-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;
}