linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* sound driver on mpc823
@ 2001-04-18 18:29 Kyle Harris
  2001-04-18 20:34 ` Dan Malek
  0 siblings, 1 reply; 4+ messages in thread
From: Kyle Harris @ 2001-04-18 18:29 UTC (permalink / raw)
  To: linuxppc-embedded


Hi,

I'm working on a sound driver for the LM4548 (ac97 codec). I've taken
Dan Malek's cs4218_tdm driver and ported it to 2.4 kernel for a starting
point. I have a couple questions I hope someone can help me with.

The CPM reports underrun errors. The driver does not set the LAST bit
for any buffer descriptors and setting this bit prevents this error. But
only for a few bytes. If I set the data length to be greater than 16
bytes I still get underrun errors. The bit_clk (L1TCLK) is 12.288 MHz
and sync (L1RSYNC) is 48 kHz.

1) Why is the LAST bit never set? It seems this causes the application
to block waiting for completion. Which I guess is OK if the application
continues to send data to the driver. But is this desirable? How is the
device closed in this case?

2) Why do underrun errors occur even when the LAST bit is set? Is the
CPM unable to keep up at this data rate? Is this significant, or does
the driver/codec recover?

Thanks, Kyle.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2001-04-18 22:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-18 18:29 sound driver on mpc823 Kyle Harris
2001-04-18 20:34 ` Dan Malek
2001-04-18 21:05   ` Kyle Harris
2001-04-18 22:49     ` Dan Malek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).