All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Scatter Gather DMA
  2003-03-05 16:09 Scatter Gather DMA mjander 
@ 2003-03-05 15:53 ` Jaroslav Kysela
  2003-03-05 16:20   ` tomasz motylewski
  2003-03-05 16:51 ` Takashi Iwai
  1 sibling, 1 reply; 4+ messages in thread
From: Jaroslav Kysela @ 2003-03-05 15:53 UTC (permalink / raw)
  To: mjander; +Cc: alsa-devel@alsa-project.org

On Wed, 5 Mar 2003, mjander wrote:

> Hi,
> 
> Another question... :)
> 
> The Aureal Vortex has Scatter Gather DMA's for each audio channel.
> But these SG DMA
> support only max 4 pages. Each page can have a programable size of
> upto 4 KB.
> I was studying the ALSA SG scheme and it doesnt seme to fit into
> the aureal vortex
> SG buffer scheme, because ALSA, as far as i understood, only
> allows pages of the kernel PAGE_SIZE size, and allocates as many
> pages (without cound limit ?) until the buffer size is  reached.
> But the PAGE_SIZE around 0x400 or 0x800, which is rather small.
> 
> On the Aureal vortex soundcard side i have 4 registers for page
> base address, and some sort  of config regs to configure each page
> size and the next page for each page. I just dont understand how
> could i plug this two apparently incompatible things together.
> 
> Thank you very much.

I don't see a problem here. The PAGE_SIZE is 4kB for i386. Simply
follow the code in the via82xx driver and limit the maximum count of 
periods to 4.

						Jaroslav

-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com

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

* Scatter Gather DMA
@ 2003-03-05 16:09 mjander 
  2003-03-05 15:53 ` Jaroslav Kysela
  2003-03-05 16:51 ` Takashi Iwai
  0 siblings, 2 replies; 4+ messages in thread
From: mjander  @ 2003-03-05 16:09 UTC (permalink / raw)
  To: alsa-devel

Hi,

Another question... :)

The Aureal Vortex has Scatter Gather DMA's for each audio channel.
But these SG DMA
support only max 4 pages. Each page can have a programable size of
upto 4 KB.
I was studying the ALSA SG scheme and it doesnt seme to fit into
the aureal vortex
SG buffer scheme, because ALSA, as far as i understood, only
allows pages of the kernel PAGE_SIZE size, and allocates as many
pages (without cound limit ?) until the buffer size is  reached.
But the PAGE_SIZE around 0x400 or 0x800, which is rather small.

On the Aureal vortex soundcard side i have 4 registers for page
base address, and some sort  of config regs to configure each page
size and the next page for each page. I just dont understand how
could i plug this two apparently incompatible things together.

Thank you very much.

Manuel Jander.
.
__________________________________________________
Enviado via NewPlanet WebMail en embedded.cl


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com

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

* Re: Scatter Gather DMA
  2003-03-05 15:53 ` Jaroslav Kysela
@ 2003-03-05 16:20   ` tomasz motylewski
  0 siblings, 0 replies; 4+ messages in thread
From: tomasz motylewski @ 2003-03-05 16:20 UTC (permalink / raw)
  To: Jaroslav Kysela; +Cc: alsa-devel@alsa-project.org

> I don't see a problem here. The PAGE_SIZE is 4kB for i386. Simply
> follow the code in the via82xx driver and limit the maximum count of 
> periods to 4.

This is easy solution, but a bit limiting. For example cs4281 supports max 2
periods. It is rather hard to work with it. There is a patch for ALSA 0.5 (by
Pekka Pessi) which I have ported to 0.9 which is switching DMA addresses in the
end-of-period interrupt. Works nicely, unlimited number of periods. Similar
solution could be used here. Or do you expect problems with it? 

Best regards,
--
Tomasz Motylewski



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com

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

* Re: Scatter Gather DMA
  2003-03-05 16:09 Scatter Gather DMA mjander 
  2003-03-05 15:53 ` Jaroslav Kysela
@ 2003-03-05 16:51 ` Takashi Iwai
  1 sibling, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2003-03-05 16:51 UTC (permalink / raw)
  To: mjander; +Cc: alsa-devel

At Wed,  5 Mar 2003 12:09:21 -0400,
mjander wrote:
> 
> Hi,
> 
> Another question... :)
> 
> The Aureal Vortex has Scatter Gather DMA's for each audio channel.
> But these SG DMA
> support only max 4 pages. Each page can have a programable size of
> upto 4 KB.
> I was studying the ALSA SG scheme and it doesnt seme to fit into
> the aureal vortex
> SG buffer scheme, because ALSA, as far as i understood, only
> allows pages of the kernel PAGE_SIZE size, and allocates as many
> pages (without cound limit ?) until the buffer size is  reached.

then you can define max_buffer_bytes as 4 * 4096.
then sg-allocator will allocate up to 4 pages.

> But the PAGE_SIZE around 0x400 or 0x800, which is rather small.

sorry, what are these numbers?

> On the Aureal vortex soundcard side i have 4 registers for page
> base address, and some sort  of config regs to configure each page
> size and the next page for each page. I just dont understand how
> could i plug this two apparently incompatible things together.


Takashi


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com

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

end of thread, other threads:[~2003-03-05 16:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-05 16:09 Scatter Gather DMA mjander 
2003-03-05 15:53 ` Jaroslav Kysela
2003-03-05 16:20   ` tomasz motylewski
2003-03-05 16:51 ` 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.