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 <sugar.zhang@rock-chips.com>
This commit is contained in:
Sugar Zhang
2023-04-20 16:31:30 +08:00
parent 54b0bc7bac
commit 2d2b53637e

View File

@@ -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;