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