From e2346e901bbcfc314c795659aa8dd770989dbbb9 Mon Sep 17 00:00:00 2001 From: Sugar Zhang Date: Tue, 6 Jul 2021 21:15:17 +0800 Subject: [PATCH] ASoC: rockchip: audio_pwm: Replace dmaengine with rockchip pcm rockchip pcm is a wrapper of snd dmaengine pcm with customize config, to achieve flexible config. Change-Id: I01ffe93ed90700cb0634a8b53d5fe044c0415f00 Signed-off-by: Sugar Zhang --- sound/soc/rockchip/rockchip_audio_pwm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/rockchip/rockchip_audio_pwm.c b/sound/soc/rockchip/rockchip_audio_pwm.c index 44ca66f1ed95..4d5006469503 100644 --- a/sound/soc/rockchip/rockchip_audio_pwm.c +++ b/sound/soc/rockchip/rockchip_audio_pwm.c @@ -17,6 +17,7 @@ #include #include "rockchip_audio_pwm.h" +#include "rockchip_pcm.h" #define AUDIO_PWM_DMA_BURST_SIZE (16) /* size * width: 16*4 = 64 bytes */ @@ -324,7 +325,7 @@ static int rockchip_audio_pwm_probe(struct platform_device *pdev) goto err_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: %d\n", ret); goto err_suspend;