All of lore.kernel.org
 help / color / mirror / Atom feed
* emu10k1x/AudigyLS period table
@ 2004-06-29  2:49 fmoraes
  2004-06-29 16:21 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: fmoraes @ 2004-06-29  2:49 UTC (permalink / raw)
  To: alsa-devel

This the information that James Courtier-Dutton found about the AudigyLS that also works for the emu10k1x:

#define PLAYBACK_LIST_ADDR	0x00		/* Base DMA address of a list of pointers to each period/size */
						/* One list entry: 4 bytes for DMA address, 
						 * 4 bytes for period_size << 16.
						 * One list entry is 8 bytes long.
						 * One list entry for each period in the buffer.
						 */
#define PLAYBACK_LIST_SIZE	0x01		/* Size of list in bytes << 16. E.g. 8 periods -> 0x00380000  */
#define PLAYBACK_LIST_PTR	0x02		/* Pointer to the current period being played */

Is this in anyway similar to the emu10k1 PTB scatter-gather? Just wondering if they reused the design.

Francisco



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com

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

* Re: emu10k1x/AudigyLS period table
  2004-06-29  2:49 emu10k1x/AudigyLS period table fmoraes
@ 2004-06-29 16:21 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2004-06-29 16:21 UTC (permalink / raw)
  To: fmoraes; +Cc: alsa-devel

At Mon, 28 Jun 2004 22:49:43 -0400,
fmoraes@nc.rr.com wrote:
> 
> This the information that James Courtier-Dutton found about the AudigyLS that also works for the emu10k1x:
> 
> #define PLAYBACK_LIST_ADDR	0x00		/* Base DMA address of a list of pointers to each period/size */
> 						/* One list entry: 4 bytes for DMA address, 
> 						 * 4 bytes for period_size << 16.
> 						 * One list entry is 8 bytes long.
> 						 * One list entry for each period in the buffer.
> 						 */
> #define PLAYBACK_LIST_SIZE	0x01		/* Size of list in bytes << 16. E.g. 8 periods -> 0x00380000  */
> #define PLAYBACK_LIST_PTR	0x02		/* Pointer to the current period being played */
> 
> Is this in anyway similar to the emu10k1 PTB scatter-gather? Just wondering if they reused the design.

No, it looks rather similar with the buffer descriptors used in
via82xx or intel8x0 to me.  You can take a look at via82xx code for
supporting SG-buffer.  It's a bit complicated because the period size
isn't always aligned to the page size.


Takashi


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com

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

end of thread, other threads:[~2004-06-29 16:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-29  2:49 emu10k1x/AudigyLS period table fmoraes
2004-06-29 16:21 ` Takashi Iwai

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.