Using preallocate pci, isa or nothing?
Hi,
I'm sorry for the html format, these are some questions according to my problems.
I'm writing an ALSA driver for a CSB337 board (AT91RM9200). There is no PCI or ISA on this board. Should I preallocate memory with:snd_pcm_lib_preallocate_pages_for_all, snd_pcm_lib_preallocate_isa_pages_for_all() or snd_pcm_lib_preallocate_pci_pages_for_all()?
There is a specific DMA (PDC) on the AT91RM9200, so i'm trying to use snd_pcm_lib_preallocate_pages_for_all() but seems complicated to understand what is needed by the ALSA pcm and what i have to write.
What does the function snd_..._pointer() mean? should i need it if i don't use ISA or PCI mecanism?
What does the function snd_pcm_period_elapsed() mean? Should i need it if i don't use ISA or PCI mecanism?
Thanks
any help would be very appreciate.
Mathieu Rondonneau
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
At Sun, 8 Feb 2004 18:29:10 -0600,
Quoted 11 lines · Mathieu Rondonneau
Hi,
I'm sorry for the html format, these are some questions according to my problems.I'm writing an ALSA driver for a CSB337 board (AT91RM9200). There is no PCI or ISA on this board. Should I preallocate memory with:
snd_pcm_lib_preallocate_pages_for_all,snd_pcm_lib_preallocate_isa_pages_for_all()orsnd_pcm_lib_preallocate_pci_pages_for_all()?
Quoted 7 lines
There is a specific DMA (PDC) on the AT91RM9200, so i'm trying to use
snd_pcm_lib_preallocate_pages_for_all()but seems complicated to understand what is needed by the ALSA pcm and what i have to write.
What does the function snd_..._pointer() mean? should i need it if i don't use ISA or PCI mecanism?
What does the functionsnd_pcm_period_elapsed()mean? Should i need it if i don't use ISA or PCI mecanism?
did you take a look at my document?
http://www.alsa-project.org/~iwai/writing-an-alsa-driver/
Takashi
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Quoted 10 lines
At Sun, 8 Feb 2004 18:29:10 -0600,
Quoted 6 lines · Mathieu Rondonneau
Hi,
I'm sorry for the html format, these are some questions according to my problems.I'm writing an ALSA driver for a CSB337 board (AT91RM9200). There is no
PCI
Quoted 7 lines
Quoted 7 lines
or ISA on this board. Should I preallocate memory with:
snd_pcm_lib_preallocate_pages_for_all,snd_pcm_lib_preallocate_isa_pages_for_all()orsnd_pcm_lib_preallocate_pci_pages_for_all()?There is a specific DMA (PDC) on the AT91RM9200, so i'm trying to use
snd_pcm_lib_preallocate_pages_for_all()but seems complicated to
understand
Quoted 2 lines
Quoted 2 lines
what is needed by the ALSA pcm and what i have to write. What does the function snd_..._pointer() mean? should i need it if i
don't
Quoted 2 lines
Quoted 2 lines
use ISA or PCI mecanism?
What does the functionsnd_pcm_period_elapsed()mean? Should i need it
if i
Quoted 9 lines
Quoted 1 line
don't use ISA or PCI mecanism?
did you take a look at my document?
http://www.alsa-project.org/~iwai/writing-an-alsa-driver/
Takashi
Yes I did, and i thank you for your work, your document is very helpfull. But, i'm not familiar with ALSA driver development.
Could I use PCI or ISA mecanism (memory allocation and dma) even if there are no PCI or ISA bus in my board?
If i don't use it, it's more work to do.
I 'm just wondering if i could use more ALSA function in order to simplify my development.
I'm sorry for my english (i'm french)
Thank you very much for your help.
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
At Wed, 11 Feb 2004 14:39:47 -0600,
Quoted 33 lines · Mathieu Rondonneau
Quoted 11 lines
At Sun, 8 Feb 2004 18:29:10 -0600,
Quoted 6 lines · Mathieu Rondonneau
Hi,
I'm sorry for the html format, these are some questions according to my problems.I'm writing an ALSA driver for a CSB337 board (AT91RM9200). There is no
PCI
Quoted 7 lines
Quoted 7 lines
or ISA on this board. Should I preallocate memory with:
snd_pcm_lib_preallocate_pages_for_all,snd_pcm_lib_preallocate_isa_pages_for_all()orsnd_pcm_lib_preallocate_pci_pages_for_all()?There is a specific DMA (PDC) on the AT91RM9200, so i'm trying to use
snd_pcm_lib_preallocate_pages_for_all()but seems complicated tounderstand
Quoted 2 lines
Quoted 2 lines
what is needed by the ALSA pcm and what i have to write. What does the function snd_..._pointer() mean? should i need it if i
don't
Quoted 2 lines
Quoted 2 lines
use ISA or PCI mecanism?
What does the functionsnd_pcm_period_elapsed()mean? Should i need itif i
Quoted 7 lines
Quoted 1 line
don't use ISA or PCI mecanism?
did you take a look at my document?
Quoted 7 lines
Quoted 2 lines
Takashi
Yes I did, and i thank you for your work, your document is very helpfull. But, i'm not familiar with ALSA driver development.
Could I use PCI or ISA mecanism (memory allocation and dma) even if there are no PCI or ISA bus in my board?
then, no.
but note that the functions you asked above have basically nothing to do with PCI or ISA. the whole preallocation meachanism is provided for the abstraction regardless of BUS type.
also, pcm and control callbacks are also irrelevant to BUS type.
Takashi
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click