We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c23c7c6 commit 17fa55fCopy full SHA for 17fa55f
sound/soc/fsl/fsl_rpmsg.c
@@ -229,6 +229,16 @@ static int fsl_rpmsg_probe(struct platform_device *pdev)
229
}
230
dai_drv->name = dai_name;
231
232
+ /* Setup cpu dai for sound card that sits on rpmsg-micfil-channel */
233
+ if (!strcmp(dai_name, "rpmsg-micfil-channel")) {
234
+ dai_drv->capture.channels_min = 1;
235
+ dai_drv->capture.channels_max = 8;
236
+ dai_drv->capture.rates = SNDRV_PCM_RATE_8000_48000;
237
+ dai_drv->capture.formats = SNDRV_PCM_FMTBIT_S32_LE;
238
+ if (of_device_is_compatible(np, "fsl,imx8mm-rpmsg-audio"))
239
+ dai_drv->capture.formats = SNDRV_PCM_FMTBIT_S16_LE;
240
+ }
241
+
242
if (of_property_read_bool(np, "fsl,enable-lpa")) {
243
rpmsg->enable_lpa = 1;
244
rpmsg->buffer_size = LPA_LARGE_BUFFER_SIZE;
0 commit comments