Skip to contentSkip to conversation

Sound card DMA questions.

DISCUSSION James Courtier-Dutton 2 participants 2 messages Jul 20, 2004

lore
Share & tools
lore
#0 lore raw

With DMA accesses, one has a sound card connected to a PCI bus, which is then connected to the RAM.

The sound card will schedule a DMA transfer.

My questions are:
1) What size is the DMA transfer?
2) Are the min/max limits on how many bytes can be passed on a transfer?
3) When does the transfer happen. At period boundarys or when ?
4) What triggers a user land poll() to return. An irq based snd_period_elapsed() call, or something else?

And finally,
5) if I am reverse engineering a card, how can I discover these min/max values?

James

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click

#1 lore raw
Quoted 7 lines · On 20-Jul-2004 James Courtier-Dutton wrote:

With DMA accesses, one has a sound card connected to a PCI bus, which is then connected to the RAM.

The sound card will schedule a DMA transfer.

My questions are:
1) What size is the DMA transfer?

It's defined by the driver.

Quoted 1 line

2) Are the min/max limits on how many bytes can be passed on a transfer?

Usually, no. There may be limits defined by DMA-able region and card's capabilities.

Quoted 1 line

3) When does the transfer happen. At period boundarys or when ?

DMA transfers are managed entirely by the card once the driver starts them. You should ask the manufacturer for these infos. Btw they're not important from the driver's viewpoint.

Quoted 2 lines

4) What triggers a user land poll() to return. An irq based snd_period_elapsed() call, or something else?

_elapsed() doesn't require to be called from inside irq handler.

Quoted 2 lines

5) if I am reverse engineering a card, how can I discover these min/max values?

There isn't a standard procedure to reverse engeneer something.

--
Giuliano.

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click