ASoC: rockchip: spdifrx: Replace dmaengine with rockchip pcm

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

Change-Id: I3a4f4571962fb694814173db294891d842749983
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
This commit is contained in:
Sugar Zhang
2021-07-06 21:15:20 +08:00
committed by Tao Huang
parent 469895dbd8
commit 714a0e457d

View File

@@ -17,6 +17,7 @@
#include <sound/pcm_params.h>
#include <sound/dmaengine_pcm.h>
#include "rockchip_pcm.h"
#include "rockchip_spdifrx.h"
struct rk_spdifrx_dev {
@@ -335,7 +336,7 @@ static int rk_spdifrx_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;