* Random inverted audio channels
@ 2008-02-15 16:39 Alexandre BOUIN
0 siblings, 0 replies; 7+ messages in thread
From: Alexandre BOUIN @ 2008-02-15 16:39 UTC (permalink / raw)
To: alsa-devel
Hi alsa-devel list,
I'm currently working on an internal project.
Here is some details :
This embedded project includes a AT91SAM9260 CPU and a WM8900 codec.
Audio driver is using ASoC API.
Audio data could be either switch from I2S or DSP A, but I prefer the second
one.
Audio Codec is master.
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 !
Regards,
Alex.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Random inverted audio channels
@ 2008-02-15 17:16 Mark Brown
2008-02-18 8:38 ` Alexandre BOUIN
0 siblings, 1 reply; 7+ messages in thread
From: Mark Brown @ 2008-02-15 17:16 UTC (permalink / raw)
To: Alexandre BOUIN; +Cc: alsa-devel, Frank Mandarino
On Fri, Feb 15, 2008 at 05:39:49PM +0100, Alexandre BOUIN wrote:
> 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 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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Random inverted audio channels
[not found] <002201c86ff1$61de9e00$259bda00$@bouin@kerlink.fr>
@ 2008-02-15 18:48 ` Timur Tabi
0 siblings, 0 replies; 7+ messages in thread
From: Timur Tabi @ 2008-02-15 18:48 UTC (permalink / raw)
To: Alexandre BOUIN; +Cc: alsa-devel
Alexandre BOUIN wrote:
> 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.
I've had a similar problem. In my case, the clock from the codec to the chip
was unstable. When I attached a 5pF capacitor to it, the clock stabilized and
the problem went away.
Try using a probe to validate the clock signal.
--
Timur Tabi
Linux kernel developer at Freescale
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Random inverted audio channels
2008-02-15 17:16 Mark Brown
@ 2008-02-18 8:38 ` Alexandre BOUIN
0 siblings, 0 replies; 7+ messages in thread
From: Alexandre BOUIN @ 2008-02-18 8:38 UTC (permalink / raw)
To: 'Mark Brown'; +Cc: alsa-devel, 'Frank Mandarino'
> > 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.
> > 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.
I had traced the addresses sent into PDC (soc/at91-pcm.c), and are always
the same.
What other traces are you looking for ?
> 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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Random inverted audio channels
@ 2008-02-18 9:54 Mark Brown
2008-02-18 10:00 ` Alexandre BOUIN
0 siblings, 1 reply; 7+ messages in thread
From: Mark Brown @ 2008-02-18 9:54 UTC (permalink / raw)
To: Alexandre BOUIN; +Cc: alsa-devel, 'Frank Mandarino'
On Mon, Feb 18, 2008 at 09:38:12AM +0100, Alexandre BOUIN wrote:
> 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.
> > 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?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Random inverted audio channels
2008-02-18 9:54 Mark Brown
@ 2008-02-18 10:00 ` Alexandre BOUIN
0 siblings, 0 replies; 7+ messages in thread
From: Alexandre BOUIN @ 2008-02-18 10:00 UTC (permalink / raw)
To: 'Mark Brown'; +Cc: alsa-devel, 'Frank Mandarino'
> > 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.
>
> > > 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?
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Random inverted audio channels
@ 2008-03-20 10:27 Alexandre BOUIN
0 siblings, 0 replies; 7+ messages in thread
From: Alexandre BOUIN @ 2008-03-20 10:27 UTC (permalink / raw)
To: alsa-devel
> I'm currently working on an internal project.
> Here is some details :
> This embedded project includes a AT91SAM9260 CPU and a WM8900 codec.
> Audio driver is using ASoC API.
> Audio data could be either switch from I2S or DSP A, but I prefer the
> second one.
> Audio Codec is master.
>
> 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.
Hi list,
I'm back on this issue. I have few questions about it and I'd hope someone
could answer :
- does someone have already used AT91 SSC controller in slave mode ? Can he
send me his register configuration and tell if he already heard and L/R
channels swaps ?
- is there a way to play a sound at the lowest software level, maybe without
using alsa or dsp devices ?
- where is the software audio buffer ?
As you can see I really want to trace any difficulties to find where comes
this problem.
As always, if you have any other ideas to test, I'll be glad to hear them.
Thanks and regards,
Alex.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-03-20 10:28 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <002201c86ff1$61de9e00$259bda00$@bouin@kerlink.fr>
2008-02-15 18:48 ` Random inverted audio channels Timur Tabi
2008-03-20 10:27 Alexandre BOUIN
-- strict thread matches above, loose matches on Subject: below --
2008-02-18 9:54 Mark Brown
2008-02-18 10:00 ` Alexandre BOUIN
2008-02-15 17:16 Mark Brown
2008-02-18 8:38 ` Alexandre BOUIN
2008-02-15 16:39 Alexandre BOUIN
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.