]> 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)
commitaf8212bc0762d4449bbd43d03bfd6c1b7b09b9b4
tree712526e22bfe1e38ce5615f5c0530a47c03ccd68
parent291f3a266c2fb4cc67da2041222dede88422e1f3
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: 6b6ac765c441 ("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