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)
commitf16921275cc3c2442d0b95225785a601603b990f
tree712526e22bfe1e38ce5615f5c0530a47c03ccd68
parent81f70ba233d5f660e1ea5fe23260ee323af5d53a
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: a57e16cf0333 ("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