ASoC: fsl_rpmsg: Register different ASoC machine devices
authorChancel Liu <chancel.liu@nxp.com>
Fri, 30 Sep 2022 06:44:39 +0000 (14:44 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 17 Oct 2022 11:48:16 +0000 (12:48 +0100)
This driver helps register ASoC machine device thus use of
PLATFORM_DEVID_AUTO macro in API can automatically create device for
each sound card based on rpmsg.

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-6-chancel.liu@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_rpmsg.c

index bf94838bdbefe47ec9a614867f9e4b84663caaba..fde3d5006ce0d2dcaebc25063afc9ce2bd4fcd9e 100644 (file)
@@ -235,7 +235,7 @@ static int fsl_rpmsg_probe(struct platform_device *pdev)
 
        rpmsg->card_pdev = platform_device_register_data(&pdev->dev,
                                                         "imx-audio-rpmsg",
-                                                        PLATFORM_DEVID_NONE,
+                                                        PLATFORM_DEVID_AUTO,
                                                         NULL,
                                                         0);
        if (IS_ERR(rpmsg->card_pdev)) {