ASoC: rockchip: pdm: Replace dmaengine with rockchip pcm

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

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

View File

@@ -26,6 +26,7 @@
#include <sound/dmaengine_pcm.h>
#include <sound/pcm_params.h>
#include "rockchip_pcm.h"
#include "rockchip_pdm.h"
#define PDM_DMA_BURST_SIZE (8) /* size * width: 8*4 = 32 bytes */
@@ -798,7 +799,7 @@ static int rockchip_pdm_probe(struct platform_device *pdev)
if (of_property_read_bool(node, "rockchip,no-dmaengine"))
return 0;
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: %d\n", ret);
goto err_suspend;