Commit bdc0f6ca authored by Chancel Liu's avatar Chancel Liu Committed by Mark Brown

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: default avatarChancel Liu <chancel.liu@nxp.com>
Acked-by: default avatarShengjiu Wang <shengjiu.wang@gmail.com>
Link: https://lore.kernel.org/r/20220930064441.2548505-5-chancel.liu@nxp.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent b2c2a947
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment