Skip to content

Commit

Permalink
ASoC: axi-{spdif,i2s}: Remove SND_DMAENGINE_PCM_FLAG_NO_RESIDUE flag
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
larsclausen authored and broonie committed Jan 14, 2014
1 parent 478028e commit 153e66f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions sound/soc/adi/axi-i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 1 addition & 2 deletions sound/soc/adi/axi-spdif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 153e66f

Please sign in to comment.