public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* RE: Problem with ALSA in 2.6.14-omap2 on OSK
@ 2005-11-23 16:36 Menon, Nishanth
  2005-11-23 16:45 ` Tony Lindgren
  0 siblings, 1 reply; 9+ messages in thread
From: Menon, Nishanth @ 2005-11-23 16:36 UTC (permalink / raw)
  To: Dirk Behme, linux-omap-open-source; +Cc: Yves Godin

Couple of things regarding the usage of dma as far as audio goes:
If the system is loaded(such as using codecs such as madplay - still not
too loaded compared to running with a video decoder (arm side)+ a couple
of other high load apps) and only one single dma channel is used to
transmit/receive, the overhead incurred in re-filling the channel can
cause glitches in high sampling rate. This is one of the reasons why I
moved across to double dma channel ping pong styled handling in oss.

There is further the fix to L/R sync issue as reported by Ajaya Babu in
a previous mail in this list for the OSS - it might hit the ALSA too if
the condition is not met properly. 

Regards,
Nishanth Menon
> -----Original Message-----
> From: linux-omap-open-source-bounces@linux.omap.com
[mailto:linux-omap-
> open-source-bounces@linux.omap.com] On Behalf Of Dirk Behme
> Sent: Wednesday, November 23, 2005 10:10 AM
> To: linux-omap-open-source@linux.omap.com
> Cc: Yves Godin
> Subject: Re: Problem with ALSA in 2.6.14-omap2 on OSK
> 
> Yves Godin wrote:
> > 	It seems that something has change in the driver for the DMA in
> > 2.6.14-omap2.
> >
> > When I play a pure tone (ALSA driver), I ear some glitches in the
audio
> > every 5-10 secconds. Everithing was correct with 2.6.14-rc1.
> >
> > From what I can see with a scope on the serial data sent to the
codec,
> > it seems that some samples (a complete buffer??) are repeated from
time
> > to time. It's easier to ear it when playing a pure tone (ex 1Khz).
> >
> > Note that my alsa driver is slightly modified to play 24 bits audio
> > samples instead of 16 bits (DMA is configured in 32 bits).
> >
> > The files from the alsa driver have not changed between 2.6.14-rc1
and
> > 2.6.14-omap2. So I supposed the changes have been made to the OMAP
dma
> > drivers.
> 
> On 2.6.15-rc2-omap1 on OSK I can reproduce this using madplay and mp3.
> All 5-10 seconds a short part is repeated.
> 
> Any news or ideas about this?
> 
> Thanks
> 
> Dirk
> _______________________________________________
> Linux-omap-open-source mailing list
> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source

^ permalink raw reply	[flat|nested] 9+ messages in thread
* RE: Problem with ALSA in 2.6.14-omap2 on OSK
@ 2005-12-13 16:18 Menon, Nishanth
  0 siblings, 0 replies; 9+ messages in thread
From: Menon, Nishanth @ 2005-12-13 16:18 UTC (permalink / raw)
  To: Dirk Behme, Daniel Petrini; +Cc: linux-omap-open-source

> Some notes to my environment. I'm using ~5MB mp3 playing over NFS with
> madplay in ramdisk. Yesterday, I had an additional idea, but no time
to
> test it yet: Do you have PREEMPT (CONFIG_PREEMPT=y) enabled? May be
this
> is the difference?
One suggestion, can u measure the time b/w subsequent writes?
Get_time_of_day or something of that sort can help. The average write
time should be within sampling rate. If not, it might point at latency
issues spend in user context.. since it is only 5 Meg, can u try a
ramdisk for the test - can isolate any issues due to network latencies..
just guessing here..
Regards,
Nishanth Menon

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

end of thread, other threads:[~2005-12-13 16:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <42848A5C5A0D1E47B026E644DD49B08E683708@mail>
2005-11-23 16:10 ` Problem with ALSA in 2.6.14-omap2 on OSK Dirk Behme
2005-11-23 16:36 Menon, Nishanth
2005-11-23 16:45 ` Tony Lindgren
2005-11-27 17:46   ` Dirk Behme
2005-11-28  9:55     ` Dirk Behme
2005-12-12 19:34       ` Daniel Petrini
2005-12-12 19:14     ` Daniel Petrini
2005-12-13 15:47       ` Dirk Behme
  -- strict thread matches above, loose matches on Subject: below --
2005-12-13 16:18 Menon, Nishanth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox