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>
This commit is contained in:
Chancel Liu
2022-09-30 14:44:38 +08:00
committed by Mark Brown
parent b2c2a947b3
commit bdc0f6ca1c
+1 -1
View File
@@ -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;
}