Skip to contentSkip to conversation

Random inverted audio channels

DISCUSSION Mark Brown 2 participants 2 messages Feb 18, 2008

lore
Share & tools
lore

Mark Brown

author
#0 lore raw
Quoted 3 lines · Alexandre BOUIN

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.

No problem at all - I was just asking from curiosity.

Quoted 7 lines
Quoted 3 lines

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 ?

Have you checked to make sure that the PDC is not reporting any errors?

#1 lore raw
Quoted 10 lines
Quoted 3 lines

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.

No problem at all - I was just asking from curiosity.

Quoted 1 line
Quoted 1 line

The most likely issue here is a DMA underrun but from what you say

you

Quoted 1 line
Quoted 1 line

may already have ruled that out? It would be helpful if you could

run

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

through the debugging you've already done here.

I had traced the addresses sent into PDC (soc/at91-pcm.c), and are

always

Quoted 2 lines

the same.
What other traces are you looking for ?

Have you checked to make sure that the PDC is not reporting any errors?

at91_pcm_dma_irq (soc/at91/at91-pcm.c) doesn't reports that there is underrun or overruns.

I've seen the same swap behavior with codec configured as slave.