mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user