Skip to contentSkip to conversation

Random inverted audio channels

DISCUSSION Mark Brown 2 participants 2 messages Feb 15, 2008 – Feb 18, 2008

lore
Share & tools
lore

Mark Brown

author
#0 lore raw
Quoted 1 line · Alexandre BOUIN

This embedded project includes a AT91SAM9260 CPU and a WM8900 codec.

JOOI, is this the WM8900 driver in our dev branch or another one? It shouldn't make any difference either way what driver is used for the codec, though, so long as it is generating the relevant clock signals.

Quoted 8 lines

We have an issue : when we play a right channel stereo track, sound is played on right channel, but sometimes on left.
This issue could happen right after starting kernel, or later after 10-20 sounds played.
With Frank Mandarino, we've checked any issue from SSC(audio bus) or PDC (dma) controlers, but no much success.

Any idea to help us debugging this issue would be welcome !

The most likely issue here is a DMA underrun but from what you say you may already have ruled that out? It would be helpful if you could run through the debugging you've already done here.

One thing to try if your design allows it would be to try making the CPU the master. That should reduce the number of variables, at least.

#1 lore raw
Quoted 5 lines
Quoted 1 line

This embedded project includes a AT91SAM9260 CPU and a WM8900 codec.

JOOI, is this the WM8900 driver in our dev branch or another one? It shouldn't make any difference either way what driver is used for the codec, though, so long as it is generating the relevant clock signals.

We are porting a WM8900 driver from a 8731 one. It fit quite well our requirements and should not be the same as your dev branch. Sincerely, It didn't know you're working on it.

Quoted 7 lines
Quoted 1 line

We have an issue : when we play a right channel stereo track, sound

is

Quoted 2 lines

played on right channel, but sometimes on left.
This issue could happen right after starting kernel, or later after

10-20

Quoted 2 lines

sounds played.
With Frank Mandarino, we've checked any issue from SSC(audio bus) or

Quoted 8 lines

PDC

Quoted 3 lines

(dma) controlers, but no much success.

Any idea to help us debugging this issue would be welcome !

The most likely issue here is a DMA underrun but from what you say you may already have ruled that out? It would be helpful if you could run through the debugging you've already done here.

I had traced the addresses sent into PDC (soc/at91-pcm.c), and are always the same.
What other traces are you looking for ?

Quoted 2 lines

One thing to try if your design allows it would be to try making the CPU the master. That should reduce the number of variables, at least.

You're right I should try this way, so it would confirm if I have or not an issue with my LRC clock.