From 469895dbd81fc15f6d0a695c1800f6cfe09861df Mon Sep 17 00:00:00 2001 From: Sugar Zhang Date: Tue, 6 Jul 2021 21:15:19 +0800 Subject: [PATCH] ASoC: rockchip: spdif: Replace dmaengine with rockchip pcm rockchip pcm is a wrapper of snd dmaengine pcm with customize config, to achieve flexible config. Change-Id: I35c8058c929c9e23992010655e2f9b7bc49f632d Signed-off-by: Sugar Zhang --- sound/soc/rockchip/rockchip_spdif.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/rockchip/rockchip_spdif.c b/sound/soc/rockchip/rockchip_spdif.c index e8b6a2e0207e..465530d66e1c 100644 --- a/sound/soc/rockchip/rockchip_spdif.c +++ b/sound/soc/rockchip/rockchip_spdif.c @@ -22,6 +22,7 @@ #include #include +#include "rockchip_pcm.h" #include "rockchip_spdif.h" enum rk_spdif_type { @@ -352,7 +353,7 @@ static int rk_spdif_probe(struct platform_device *pdev) goto err_pm_suspend; } - 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"); goto err_pm_suspend;