ASoC: axi-{spdif,i2s}: Remove SND_DMAENGINE_PCM_FLAG_NO_RESIDUE flag
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 11 Jan 2014 13:02:20 +0000 (14:02 +0100)
committerMark Brown <broonie@linaro.org>
Tue, 14 Jan 2014 21:28:39 +0000 (21:28 +0000)
The pl330 driver properly reports that it does not have residue reporting
support, which means the PCM dmanegine driver is able to figure this out on its
own. So there is no need to set the flag manually. Removing the flag has the
advantage that once the pl330 driver gains support for residue reporting it will
automatically be used by the generic dmaengine PCM driver.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/adi/axi-i2s.c
sound/soc/adi/axi-spdif.c

index 7f91a86dd734bdd71b08ae4ab808f8b1df7e1cde..6058c1fd50708c9543a50cb6defa31d48b9cd59f 100644 (file)
@@ -236,8 +236,7 @@ static int axi_i2s_probe(struct platform_device *pdev)
        if (ret)
                goto err_clk_disable;
 
-       ret = devm_snd_dmaengine_pcm_register(&pdev->dev, NULL,
-                       SND_DMAENGINE_PCM_FLAG_NO_RESIDUE);
+       ret = devm_snd_dmaengine_pcm_register(&pdev->dev, NULL, 0);
        if (ret)
                goto err_clk_disable;
 
index 8db7a9920695d108396692ffe6afd9138e98dc27..198e3a4640f6e6f8a0806c6db8cc3746cb2d5bef 100644 (file)
@@ -229,8 +229,7 @@ static int axi_spdif_probe(struct platform_device *pdev)
        if (ret)
                goto err_clk_disable;
 
-       ret = devm_snd_dmaengine_pcm_register(&pdev->dev, NULL,
-                       SND_DMAENGINE_PCM_FLAG_NO_RESIDUE);
+       ret = devm_snd_dmaengine_pcm_register(&pdev->dev, NULL, 0);
        if (ret)
                goto err_clk_disable;