From 2d2b53637edbb567af50754d407ca419826e47ba Mon Sep 17 00:00:00 2001 From: Sugar Zhang Date: Thu, 20 Apr 2023 16:31:30 +0800 Subject: [PATCH] ASoC: rockchip: sai: Add support for Multi-DAIs This patch add property 'rockchip,no-dmaengine' to support register DAI without PCM, and it's usually used for Multi-DAIs which combine DAIs into a union one. Change-Id: I4e0da8fae2c692601e05118442218de0f7b4efee Signed-off-by: Sugar Zhang --- sound/soc/rockchip/rockchip_sai.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sound/soc/rockchip/rockchip_sai.c b/sound/soc/rockchip/rockchip_sai.c index ac63cb110221..57c9ff1a7136 100644 --- a/sound/soc/rockchip/rockchip_sai.c +++ b/sound/soc/rockchip/rockchip_sai.c @@ -1291,6 +1291,11 @@ static int rockchip_sai_probe(struct platform_device *pdev) if (ret) goto err_runtime_suspend; + if (device_property_read_bool(&pdev->dev, "rockchip,no-dmaengine")) { + dev_info(&pdev->dev, "Used for Multi-DAI\n"); + return 0; + } + ret = devm_snd_dmaengine_pcm_register(&pdev->dev, NULL, 0); if (ret) goto err_runtime_suspend;