]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: pxa_dma: fix cyclic transfers
authorRobert Jarzmik <robert.jarzmik@free.fr>
Tue, 16 Feb 2016 21:54:02 +0000 (22:54 +0100)
committerVinod Koul <vinod.koul@intel.com>
Thu, 3 Mar 2016 15:36:45 +0000 (21:06 +0530)
commitcdfe84e9cb791f8f10297d47f8547294248ac542
tree712526e22bfe1e38ce5615f5c0530a47c03ccd68
parentfc059194424790f3ec210889115aaee771322de5
dmaengine: pxa_dma: fix cyclic transfers

While testing audio with pxa2xx-ac97, underrun were happening while the
user application was correctly feeding the music. Debug proved that the
cyclic transfer is not cyclic, ie. the last descriptor did not loop on
the first.

Another issue is that the descriptor length was always set to 8192,
because of an trivial operator issue.

This was tested on a pxa27x platform.

Fixes: 06a178c3954e ("dmaengine: pxa: add pxa dmaengine driver")
Reported-by: Vasily Khoruzhick <anarsoul@gmail.com>
Tested-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/pxa_dma.c