Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Data Transfer Question
@ 2004-06-14 14:43 Charles Eidsness
  0 siblings, 0 replies; only message in thread
From: Charles Eidsness @ 2004-06-14 14:43 UTC (permalink / raw)
  To: alsa-devel

I'm working on an ALSA driver for an embedded MIPS processor and am 
having trouble getting it to run at a rate > 16kHz.

What I've notice when it's running at 16kHz or less the ALSA API is 
calling  my pointer function before the first interrupt, i.e.

START
call pointer
interrupt (which calls snd_pcm_period_elapsed)
call pointer
call pointer
interrupt (which calls snd_pcm_period_elapsed)
.
.
.

And everything sounds fine, but when I run at > 16kHz it doesn't call 
the pointer function before the first interrupt, and after the first 
interrupt it stops and then starts, i.e.

START
interrupt (which calls snd_pcm_period_elapsed)
call pointer
STOP
START
interrupt (which calls snd_pcm_period_elapsed)
call pointer
STOP
.
.

And ends up sounding very choppy. Can anyone help shed some light on 
what's going on? Why is the API calling the pointer function before the 
first interrupt?

You can find my code here: 
http://members.rogers.com/charles.eidsness/au1000.c

Thanks,
Charles





-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-06-14 14:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-14 14:43 Data Transfer Question Charles Eidsness

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