ASoC: rockchip: i2s-tdm: Replace dmaengine with rockchip pcm

rockchip pcm is a wrapper of snd dmaengine pcm with customize
config, to achieve flexible config.

Change-Id: I164e22dc3716075ccd520b74f03f554c075f25ec
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
This commit is contained in:
Sugar Zhang
2021-07-06 21:15:15 +08:00
committed by Tao Huang
parent 808eed080d
commit 9e9874fa39

View File

@@ -27,6 +27,7 @@
#include <sound/dmaengine_pcm.h>
#include "rockchip_i2s_tdm.h"
#include "rockchip_pcm.h"
#define DRV_NAME "rockchip-i2s-tdm"
@@ -1802,7 +1803,7 @@ static int rockchip_i2s_tdm_probe(struct platform_device *pdev)
if (of_property_read_bool(node, "rockchip,no-dmaengine"))
return ret;
ret = devm_snd_dmaengine_pcm_register(&pdev->dev, NULL, 0);
ret = rockchip_pcm_platform_register(&pdev->dev);
if (ret) {
dev_err(&pdev->dev, "Could not register PCM\n");
return ret;