ASoC: rockchip: add config for rockchip dmaengine pcm register
This patch makes the rockchip i2s pcm configurable by adding rockchip pcm config for devm_snd_dmaengine_pcm_register. Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include <sound/dmaengine_pcm.h>
|
||||
|
||||
#include "rockchip_i2s.h"
|
||||
#include "rockchip_pcm.h"
|
||||
|
||||
#define DRV_NAME "rockchip-i2s"
|
||||
|
||||
@@ -674,7 +675,7 @@ static int rockchip_i2s_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\n");
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user