ASoC: sh: Don't opencode DMAengine API calls
Use the proper wrapper functions instead of directly calling the DMAengine callback functions. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
6c7d1dfca9
commit
5d0ecb0e7d
|
@ -139,7 +139,7 @@ static int siu_pcm_wr_set(struct siu_port *port_info,
|
||||||
|
|
||||||
desc->callback = siu_dma_tx_complete;
|
desc->callback = siu_dma_tx_complete;
|
||||||
desc->callback_param = siu_stream;
|
desc->callback_param = siu_stream;
|
||||||
cookie = desc->tx_submit(desc);
|
cookie = dmaengine_submit(desc);
|
||||||
if (cookie < 0) {
|
if (cookie < 0) {
|
||||||
dev_err(dev, "Failed to submit a dma transfer\n");
|
dev_err(dev, "Failed to submit a dma transfer\n");
|
||||||
return cookie;
|
return cookie;
|
||||||
|
@ -189,7 +189,7 @@ static int siu_pcm_rd_set(struct siu_port *port_info,
|
||||||
|
|
||||||
desc->callback = siu_dma_tx_complete;
|
desc->callback = siu_dma_tx_complete;
|
||||||
desc->callback_param = siu_stream;
|
desc->callback_param = siu_stream;
|
||||||
cookie = desc->tx_submit(desc);
|
cookie = dmaengine_submit(desc);
|
||||||
if (cookie < 0) {
|
if (cookie < 0) {
|
||||||
dev_err(dev, "Failed to submit dma descriptor\n");
|
dev_err(dev, "Failed to submit dma descriptor\n");
|
||||||
return cookie;
|
return cookie;
|
||||||
|
|
Loading…
Reference in a new issue