OK, so I buffered the file into RAM before playing it, and I increased the dma irq priority (and decreased the other ones). It's better, but the problem is still there. I also used the highest priority dma's event queue. I surely missed something in the dma or McBSP configuration. How could I debug dma transfers? Le 20/06/2013 08:42, Clemens Ladisch a écrit : > Cyril GERMAINE wrote: >> I'm trying to play a stereo raw file (a blank channel, and the other >> one with sound), and I'm facing a synchronization problem : the two >> channels sometimes swap (left becomes right and right becomes left). >> It's like it sometimes misses a sample, so the interleaved frames seem >> to shift. >> >> It's getting less frequent when I increase FRAME_SIZE > This sounds like a problem where the driver's interrupt handler does > not manage to reprogram the DMA controller for the next period fast > enough. > >> - SOC TI Davinci DM365 (ARM9 architecture) >> >> How can I prevent it? Is it possible? > I'm just guessing, but something is interfering with the DMA interrupt, > and that something probably is the interrupt of some other driver. > > Try playing a sine wave that is pregenerated instead of loaded from > disk on the fly; this would rule out the storage driver. > > > Regards, > Clemens > > ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user