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:
parent
b2c2a947b3
commit
bdc0f6ca1c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue