All of lore.kernel.org
 help / color / mirror / Atom feed
* sDMA on i.mx7d
@ 2017-02-14 22:24 Alexandre Belloni
  2017-02-15  7:25 ` Stefan Agner
  0 siblings, 1 reply; 13+ messages in thread
From: Alexandre Belloni @ 2017-02-14 22:24 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

I've been trying to get a PCM3168s codec with a Colibri iMX7 using TDM
on SAI2.
I've got it working properly with the 4.1.35 kernel from Toradex (based
on the 4.1.15 from Freescale).
It is working fine with and without providing a firmware to the sDMA.

But, I couldn't get that to work with v4.9. I actually managed to
reproduce the issue using the SGTL5000 so I don't have any patch on top
of v4.9.

I really suspect the DMA driver as the issue varies with the selected
period/buffer size.

Basically, the samples in a period are in the correct order but the
periods are mixed up.

This is what I'm playing in a loop:
http://free-electrons.com/~alexandre/source.png

This is the output I get:
http://free-electrons.com/~alexandre/playback.png

The configuration for the cyclic transfer seems to be fine and I don't
know enough about the sdma to investigate further.
I can try to backport b7d2648ac3d4 "dmaengine: imx-sdma: Add i.MX7
support" to v4.8 and test I you think that can be useful

-- 
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-02-20  8:27 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-14 22:24 sDMA on i.mx7d Alexandre Belloni
2017-02-15  7:25 ` Stefan Agner
2017-02-15 10:36   ` Fabio Estevam
2017-02-15 11:07   ` Alexandre Belloni
2017-02-15 22:44     ` Stefan Agner
2017-02-16 10:42       ` Alexandre Belloni
2017-02-16 15:36         ` Fabio Estevam
2017-02-16 16:40           ` Alexandre Belloni
2017-02-16 16:47             ` Lucas Stach
2017-02-16 17:08               ` Alexandre Belloni
2017-02-17  9:13                 ` EXT: " Han, Nandor (GE Healthcare)
2017-02-19 21:55                   ` Fabio Estevam
2017-02-20  8:27                     ` Han, Nandor (GE Healthcare)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.