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